-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error: PHP Illegal offset type in isset or empty #11553
Comments
I experienced the same. I debuged a bit. It's because in this function at some time not a string is passed in but an object (type:
cc @icewind1991 @PVince81 - I think you had experience with the app loading stuff and it seems to be something like that. |
Hint: Changing from the admin page directly to files (do nothing) and going back to the admin page creates about 69 (!) Error PHP log entries. Somewhere in between, spreaded around without visible pattern are 3 messages: |
@kedanli reported seeing this on OC 7.0.3 RC 1 on Windows Server. If the "types" value is correct in the database, then maybe there's some kind of race condition that tries to read the "types" value from the internal cache but doesn't succeed. Needs further research. I suspect app loading order issue. |
@MorrisJobke any clue how to reproduce this ? It doesn't happen on my env. |
@karlitschek @MTRichards @craigpg potential showstopper. This error was already reported 4 times. Does not happen in all environments. |
As mentioned. The only question is how should I fix that. I also have this. I can supply a workaround fix, but I'm not comfortable with this. I will prepare a PR and you can decide, what to do. |
Ok thanks. Because without being able to understand the root cause I can't fix this. |
Also the question is why this happens in the first place, and why it doesn't happen on all envs... |
@PVince81 Can you enable the contacts app? This is the instance which is handed in instead of a string. |
I found the root cause: when loading an app with I'll try and move the |
The fix will be released with 7.0.3 |
@PVince81 |
I think it's because multiple apps are being loaded, not only one. |
Also note that every ajax call from the JS side (to non-static resources) needs to re-init the whole PHP state, so app code needs to be reloaded for every ajax call. |
ubuntu 14.04, mysql, php 5.5.9, owncloud 8.0 pre alpha (git), external storage, no encryption, installed via ocdev base
I updated my dev environment today with a git pull (also on each app) which I last did about 2 weeks ago.
Owncloud responded with a maintenance upgrade. After taking a look into the owncloud logs I have found following, where the php error message is present in tons of.
Error PHP
Illegal offset type in isset or empty at /xxx/lib/private/app.php#138
Debug
core starting upgrade from 7.8.1.0 to 7.8.1.0
When I leave the admin page and goto files, back to admin, new "error php" messages like above are generated.
The text was updated successfully, but these errors were encountered: