• Resolved Bánffy Szabolcs

    (@centralnethu)


    Hello,

    The following error message has been thrown (only on the admin page) for weeks. When this happens, it puts the woo plugin into maintenance mode and disables everything that relies on it, members, subscription...

    If I exit the restore script, it works again, but it happens every day.

    There is no error on the frontend page.

    It can be solved by renaming class-wc-helper-updater.php, but maybe this is not the right solution :)

    Php: 8.3.28
    Woo: 10.4.3
    WP: 6.9

    Is there a solution for this?

    Uncaught Error: Cannot access offset of type string on string
    in /home/xxx/public_html/wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php on line 451

    Call stack:

    WC_Helper_Updater::get_update_data()
    wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php:76
    WC_Helper_Updater::transient_update_plugins(stdClass)
    wp-includes/class-wp-hook.php:343
    WP_Hook::apply_filters(stdClass, array)
    wp-includes/plugin.php:205
    apply_filters('pre_set_site_transient_update_plugins', stdClass, 'update_plugins')
    wp-includes/option.php:2654
    set_site_transient('update_plugins', stdClass)
    wp-includes/update.php:609
    wp_update_plugins()
    wp-includes/update.php:1060
    _maybe_update_plugins('')
    wp-includes/class-wp-hook.php:341
    WP_Hook::apply_filters(NULL, array)
    wp-includes/class-wp-hook.php:365
    WP_Hook::do_action(array)
    wp-includes/plugin.php:522
    do_action('admin_init')
    wp-admin/admin.php:180
    require_once('/home/xxx/public_html/wp-admin/admin.php')
    wp-admin/post.php:12
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @centralnethu,

    Thank you for providing the detailed error message and context. The error “Cannot access offset of type string on string” in the WooCommerce admin helper updater file is a known issue that was addressed in version 10.4. Since you mentioned you are running 10.4.3, this should ideally have been resolved already.

    To proceed, here are some steps to help isolate and fix the problem:

    • Please double-check that the active version is indeed 10.4.3 and that no caching or server-side process is causing an older version to run.
    • Clear any server caches, object caches, or caching plugins you may have, as stale cached data might cause unexpected behavior.
    • Temporarily disable all other plugins except WooCommerce to rule out any conflicts affecting the updater process.
    • Temporarily switch to a default WordPress theme (e.g., Twenty Twenty-Three) to eliminate theme conflicts.
    • Try updating your PHP to version 8.4 and see if that does that fix.

    If you still face the same issue, please share your System Status Report (WooCommerce → Status) if the issue persists, so we can investigate further. You can paste it here using https://pastebin.com/ or https://gist.github.com/.

    I hope that helps. Let us know if you need anything else.

    Plugin Support thelmachido a11n

    (@thelmachido)

    It’s been a while since we heard back from you for this reason we are closing this thread. 

    If WooCommerce has been useful for your store and you appreciate the support you’ve received, we’d truly appreciate it if you could leave us a quick review here: 

     https://wordpress.org/support/plugin/woocommerce/reviews/#new-post

    Feel free to open a new forum topic if you run into any other problem. 

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

You must be logged in to reply to this topic.