• Resolved mattwmc2001

    (@mattwmc2001)


    New update breaks my WP site, when I disable the updated plugin, site works fine.

    Says: There has been a critical error on this website.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Zahlan

    (@elzahlan)

    Hi,

    can you enable debug mode and share the error you are getting, this will help identify the problem so I can fix it

    I had the same experience this morning. The plugin caused a fatal flaw in the REST API. When I disabled the categories images plugin, it was fixed. I just updated to WordPress 6.9 (on PHP 8.2)

    Categories Images causes a fatal error during rest_api_init, breaking /wp-json/ and any plugin that relies on REST.

    Uncaught TypeError: Cannot access offset of type string on string in categories-images.php:460.

    Disabling the plugin immediately restores REST functionality, except that my categories don’t have featured images right now. it’s not a huge deal, but I’d love to get this plugin back in action.

    Thanks!



    Thread Starter mattwmc2001

    (@mattwmc2001)

    I uploaded the previous version and it works.

    Thread Starter mattwmc2001

    (@mattwmc2001)

    debug log shows:

    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/mattwmc/public_html/wp-content/plugins/categories-images/categories-images.php:460
    Stack trace:

    0 …/wp-includes/class-wp-hook.php(341): ZCategoriesImages->zInitRestApi(Object(WP_REST_Server))

    1 …/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)

    2 …/wp-includes/plugin.php(522): WP_Hook->do_action(Array)

    3 …/wp-includes/rest-api.php(636): do_action(‘rest_api_init’, Object(WP_REST_Server))

    4 …/wp-includes/rest-api.php(460): rest_get_server()

    5 …/wp-includes/class-wp-hook.php(341): rest_api_loaded(Object(WP))

    6 …/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(”, Array)

    7 …/wp-includes/plugin.php(570): WP_Hook->do_action(Array)

    8 …/wp-includes/class-wp.php(418): do_action_ref_array(‘parse_request’, Array)

    9 …/wp-includes/class-wp.php(821): WP->parse_request(”)

    10 …/wp-includes/functions.php(1343): WP->main(”)

    11 …/wp-blog-header.php(16): wp()

    12 …/index.php(17): require(‘/home/mattwmc/p…’)

    13 {main}

    thrown in …/wp-content/plugins/categories-images/categories-images.php on line 460

    • This reply was modified 2 months, 3 weeks ago by mattwmc2001.
    Plugin Author Zahlan

    (@elzahlan)

    Thanks guys for sharing the error logs.

    I found the potential bug, fixed it, and release a patch, it should work fine now after updating the plugin to the latest version 3.3.1, please let me know if you still facing any issues.

    Regards,

    Zahlan

    Thank you for the quick turn around. I was able to update and re-activate the plugin and everything is fine!

    Plugin Author Zahlan

    (@elzahlan)

    You’re very welcome! I’m glad to hear everything is back to normal. If you encounter any other issues, feel free to reach out.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.