PHP Notice: unserialize(): Error when editing post with metaboxes
- This topic has 3 replies, 2 voices, and was last updated 6 years ago by
Anh Tran.
-
AuthorPosts
-
September 24, 2019 at 10:58 PM #16277
[email protected]
Participant24-Sep-2019 15:50:46 UTC] PHP Notice: unserialize(): Error at offset 0 of 21 bytes in /srv/www/wp-content/object-cache.php on line 559
[24-Sep-2019 15:50:46 UTC] PHP Stack trace:
[24-Sep-2019 15:50:46 UTC] PHP 1. {main}() /srv/www/wp-admin/post.php:0
[24-Sep-2019 15:50:46 UTC] PHP 2. include() /srv/www/wp-admin/post.php:178
[24-Sep-2019 15:50:46 UTC] PHP 3. the_block_editor_meta_boxes() /srv/www/wp-admin/edit-form-blocks.php:404
[24-Sep-2019 15:50:46 UTC] PHP 4. do_meta_boxes() /srv/www/wp-admin/includes/post.php:2250
[24-Sep-2019 15:50:46 UTC] PHP 5. RW_Meta_Box->show() /srv/www/wp-admin/includes/template.php:1310
[24-Sep-2019 15:50:46 UTC] PHP 6. RWMB_Field::call() /srv/www/wp-content/plugins/meta-box/inc/meta-box.php:259
[24-Sep-2019 15:50:46 UTC] PHP 7. RWMB_Object_Choice_Field::show() /srv/www/wp-content/plugins/meta-box/inc/field.php:582
[24-Sep-2019 15:50:46 UTC] PHP 8. RWMB_Field::call() /srv/www/wp-content/plugins/meta-box/inc/fields/object-choice.php:28
[24-Sep-2019 15:50:46 UTC] PHP 9. RWMB_Post_Field::query() /srv/www/wp-content/plugins/meta-box/inc/field.php:582
[24-Sep-2019 15:50:46 UTC] PHP 10. wp_cache_get_last_changed() /srv/www/wp-content/plugins/meta-box/inc/fields/post.php:144
[24-Sep-2019 15:50:46 UTC] PHP 11. wp_cache_get() /srv/www/wp-includes/functions.php:6550
[24-Sep-2019 15:50:46 UTC] PHP 12. WP_Object_Cache->get() /srv/www/wp-content/object-cache.php:107
[24-Sep-2019 15:50:46 UTC] PHP 13. unserialize() /srv/www/wp-content/object-cache.php:559September 25, 2019 at 10:11 AM #16280Anh Tran
KeymasterHi Paul,
I see you're using a cache plugin which supports object cache. The error comes from that part (file
wp-content/object-cache.php). Can you please check that? Maybe try another cache plugin, or update it to the latest version.FYI: Meta Box uses WordPress function
wp_cache_get_last_changed, and this function calls object cache.September 25, 2019 at 6:18 PM #16284[email protected]
ParticipantWe're using https://github.com/pressjitsu/pj-object-cache-red and there were no issues with it so far. Decided to let you know.
September 27, 2019 at 10:16 AM #16316Anh Tran
KeymasterI see. That's a way to use Redis (object cache) to cache the whole page. Can you try deactivate the plugin to see if the problem still occurs. And also check your disk/ram space. Maybe Redis uses too much space, which cause the data broken, and can't be unserialized.
-
AuthorPosts
- You must be logged in to reply to this topic.