• Resolved cfuksman

    (@cfuksman)


    Hi,

    After updating to PHP 8 ( site was runing on Php 7.4) your plugin make WP crash

    This is the error I get when entering revovery mode

    /home/parchesparafrees/public_html/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/vendor/symfony/polyfill-mbstring/Mbstring.php. Mensaje de error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in /home/parchesparafrees/public_html/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/vendor/symfony/polyfill-mbstring/Mbstring.php:407 Stack trace: #0 /home/parchesparafrees/public_html/wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/vendor/symfony/polyfill-mbstring/bootstrap.php(45): Symfony\Polyfill\Mbstring\Mbstring::mb_check_encoding('Actualizaci\xC3\xB3n ...', 'ASCII') #1 /home/parchesparafrees/public_html/wp-includes/wp-db.php(3141): mb_check_encoding('Actualizaci\xC3\xB3n ...', 'ASCII') #2 /home/parchesparafrees/public_html/wp-includes/wp-db.php(3252): wpdb->check_ascii('Actualizaci\xC3\xB3n ...') #3 /home/parchesparafrees/public_html/wp-includes/wp-db.php(2562): wpdb->strip_invalid_text(Array) #4 /home/parchesparafrees/public_html/wp-includes/wp-db.php(2432): wpdb->process_fields('pf_wc_admin_not...', Array, NULL) #5 /home/parchesparafrees/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/DataStore.php(168): wpdb->update('pf_wc_admin_not...', Array, Array) #6 /home/parchesparafrees/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(179): Automattic\WooCommerce\Admin\Notes\DataStore->update(Object(Automattic\WooCommerce\Admin\Notes\Note)) #7 /home/parchesparafrees/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(216): WC_Data_Store->update(Object(Automattic\WooCommerce\Admin\Notes\Note)) #8 /home/parchesparafrees/public_html/wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php(254): WC_Data->save() #9 /home/parchesparafrees/public_html/wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php(284): WC_Notes_Run_Db_Update::update_done_notice('11') #10 /home/parchesparafrees/public_html/wp-includes/class-wp-hook.php(307): WC_Notes_Run_Db_Update::show_reminder(Object(WP_Screen)) #11 /home/parchesparafrees/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #12 /home/parchesparafrees/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #13 /home/parchesparafrees/public_html/wp-admin/includes/class-wp-screen.php(421): do_action('current_screen', Object(WP_Screen)) #14 /home/parchesparafrees/public_html/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen() #15 /home/parchesparafrees/public_html/wp-admin/admin.php(212): set_current_screen() #16 /home/parchesparafrees/public_html/wp-admin/index.php(10): require_once('/home/parchespa...') #17 {main} thrown

    I revert to php 7.4 but can you tell me whan to do to fish this and be able to run PHP 8

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author alekv

    (@alekv)

    Hi @cfuksman

    Thanks for reporting this. Generally I wouldn’t recommend switching to PHP 8.1 yet. There’s tons of warnings for deprecated functions coming still from WordPress and WooCommerce.

    For now I’ve added a polyfill for the function that threw the error in your case. But, I wasn’t able to replicate the error, so I’m not sure if it will work.

    I’ll release the next version containing the polyfill in a day or two.

    Regards
    Aleksandar

    Thread Starter cfuksman

    (@cfuksman)

    Hi Aleksandar,

    Thanks for you answer. Is PHP 8.0 Not 8.1 what we try.
    is the same?

    Best

    Plugin Author alekv

    (@alekv)

    Probably it’s the same issue. Yes.

    Plugin Author alekv

    (@alekv)

    @cfuksman

    I published a new version which probably will fix the error which you are experiencing.

    Let me know if it works now.

    Thanks
    Aleksandar

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Update to PHo 8 crash WP’ is closed to new replies.