Server Error: Cannot Access Offset of Type String on String in common.php
-
Hello Support Team,
I am experiencing an issue with plugin and have started receiving the following error messages in
debug.log:Request URI: /wp-admin/admin-ajax.php?action=wp_ewwwio_scan_async&nonce=4ff63042ce&lock_key
PHP Fatal error:Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/ewww-image-optimizer/common.php:8416
Stack trace:
#0 /wp-content/plugins/ewww-image-optimizer/bulk.php(1185): ewww_image_optimizer_remove_duplicate_records()
#1 /wp-content/plugins/ewww-image-optimizer/aux-optimize.php(1625): ewww_image_optimizer_optimized_list()
#2 /wp-content/plugins/ewww-image-optimizer/aux-optimize.php(1874): ewww_image_optimizer_image_scan()
#3 /wp-content/plugins/ewww-image-optimizer/classes/class-async-scan.php(39): ewww_image_optimizer_aux_images_script()
#4 /wp-content/plugins/ewww-image-optimizer/classes/class-async-request.php(157): EWWW\Async_Scan->handle()
#5 /wp-includes/class-wp-hook.php(324): EWWW\Async_Request->maybe_handle()
#6 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#7 /wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /wp-admin/admin-ajax.php(207): do_action()
#9 {main}
thrown in /wp-content/plugins/ewww-image-optimizer/common.php on line 8416Upon further investigation using xdebug, I noticed
$duplicatevariable does not contain an'id'field, which seems to be causing the error.
Screenshot with xdebug data: https://prnt.sc/pOo26h2fknQj
The topic ‘Server Error: Cannot Access Offset of Type String on String in common.php’ is closed to new replies.