-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch Failed: Cannot read property 'isUpdatable' of undefined #526
Comments
What version of Grav is this? What other plugins do you have installed? |
sorry. |
ok thanks we'll look at this today. |
BTW, can you post your |
I need more informations to understand this issue. Could you explain step by step what you did? What version of grav you were on, what did you try to do and if you are able to reproduce this again? |
Mmm.. could be some connectivity issue. Do you have access to the command line? If so, try running |
Does this happen again? I've never been able to replicate. |
I think the JS needs to be a bit more conservative and handle the error before it escalates to this |
The problem is on the PHP side we assume this is always fine. The payload should contain a proper error json so that the JS can see it and display it, giving more details about what's going on. As you changed it now, it will just silently hide the issue which I think is not the right behavior. Lines 517 to 545 in 5852eb5
I would love to know when you guys get that error, what's in the response payload. If you could inspect via Chrome the network panel, see what's in the Response and paste it here that would be great. Or even just let us know of a consistent way of reproducing this. |
@w00fz Yep I think the problem is the good old "Cannot connect to the GPM" as I reproduced it by simply turning off my Wifi connection. I now silenced but I also want to make it so that when it's checking automatically, no annoying error pops up. When you click the "Check for updates" button, an error shows up telling it cannot reach the GPM. Could not distinguish the 2 cases now. |
Have this message too on a clean install. Hmm Chrome has it too.
|
Check these suggestions first: https://learn.getgrav.org/troubleshooting/common-problems#cannot-connect-to-the-gpm |
Thanks for the suggestions. I have no SSH option because I'm on a shared host. |
And none of the solutions proposed in https://learn.getgrav.org/troubleshooting/common-problems#cannot-connect-to-the-gpm work? |
I have both curl and openssl, I have no idea if there is a proxy on my host. Furthermore, I now suffer of difficulties to connect from home - I got the message "the connection was refused - server may be busy or overloaded..." and I have to keep trying until I get in. Is this related to the other connection problem? |
I talked with my host assistance, the problem seem to be Zend Opcache, that I had to disable adding the line |
Glad you were able to resolve this! I'm also closing this issue due from inactivity from the topic author, assuming the issue has been resolved. Feel free to reopen if otherwise. |
When I Check for Updates……
TypeError: Cannot read property 'isUpdatable' of undefined
at e.value (http://xxx/user/plugins/admin/themes/grav/js/admin.min.js?c861a4d78a:4:3340)
at n. (http://xxx/user/plugins/admin/themes/grav/js/admin.min.js?c861a4d78a:4:7031)
at n.emit (http://xxxx/user/plugins/admin/themes/grav/js/admin.min.js?c861a4d78a:3:30430)
at http://xxxx/user/plugins/admin/themes/grav/js/admin.min.js?c861a4d78a:1:3273
The text was updated successfully, but these errors were encountered: