-
Notifications
You must be signed in to change notification settings - Fork 15
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
Illegal string offset #60
Comments
I get the same when importing posts with WP CLI
|
This has started to occur dozens to hundreds of times each minute in a production environment following the deployment of Altis 5.
same spread of warnings experienced by @pdewouters Lines 587 through 592 of that file: // Prevent upscaling.
$image_args['width'] = min( (int) $image_args['width'], (int) $full_size_meta['width'] );
$image_args['height'] = min( (int) $image_args['height'], (int) $full_size_meta['height'] );
// Respect $content_width settings.
list( $width, $height ) = image_constrain_size_for_editor( $image_meta['width'], $image_meta['height'], $size, 'display' ); This error is correlated in logs with the following errors within WP core's media code:
The relevant lines are within the |
@nathanielks' investigation of the production spike we saw in these after deploy was because object cache had an empty value for certain records. We believe that |
To add on the above, this is what I did to discover the issue. It starts with this script:
The above script will spawn up to 8 parallel executions of
This will produce log output like:
The ID of the attachment is prepended to each log item, which I could then use for testing a specific post attachment. I queried a specific post to see if attachment metadata existed in the database, and it did:
This led me to think it was an object cache issue. Sure enough:
|
I hit enter before I could complete. All that to say, clearing the object cache should resolve these errors/warnings. That said, I do not presently know why the object cache was filled with an empty value. That remains to be investigated. |
The text was updated successfully, but these errors were encountered: