Tagged: Autoptimize
Hello,
I just noticed a bug.
I have Enfold 5.6.10 version and WordPress 6.4.2, and autoptimize 3.1.10.
I wanted to duplicate a post, in order to edit the newer. Once the post is duplicated, when I click on modify (the new post), the editor is blank, and I received a WP error email from the website sayin :
Error details
======================
Error type E_ERROR caused at line 343 in file \wp-content\plugins\autoptimize\classes\autoptimizeMetabox.php.
Error message : Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in \wp-content\plugins\autoptimize\classes\autoptimizeMetabox.php:343
Stack trace:
#0 \wp-content\plugins\autoptimize\classes\autoptimizeMetabox.php(56): autoptimizeMetabox->check_ao_opt_sanity()
#1 \wp-admin\includes\template.php(1456): autoptimizeMetabox->ao_metabox_content()
#2 \wp-admin\includes\post.php(2369): do_meta_boxes()
#3 \wp-admin\edit-form-blocks.php(316): the_block_editor_meta_boxes()
#4 \wp-admin\post.php(187): require(‘…’)
#5 {main}
thrown
It seems, the duplicate content in not well register in database :-\
Thanks.