• Resolved Elvis Morales

    (@elvismdev)


    Hello, I just upgraded the plugin to the just released v2.24.0 and it immediately started to throw out some critical errors.

    An error of type E_ERROR was caused in line 83 of the file /var/www/wordpress/wp-content/plugins/give/src/Framework/Support/Facades/CurrencyFacade.php. Error message: Uncaught Error: Class "NumberFormatter" not found in /var/www/wordpress/wp-content/plugins/give/src/Framework/Support/Facades/CurrencyFacade.php:83
    Stack trace:
    #0 /var/www/wordpress/wp-content/plugins/give/src/Framework/Support/Facades/Facade.php(43): Give\Framework\Support\Facades\CurrencyFacade->formatToLocale()
    #1 /var/www/wordpress/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php(94): Give\Framework\Support\Facades\Facade::__callStatic()
    #2 /var/www/wordpress/wp-content/plugins/give/src/DonationForms/ListTable/Columns/LevelsColumn.php(84): Give\Framework\Support\ValueObjects\Money->formatToLocale()
    #3 /var/www/wordpress/wp-content/plugins/give/src/DonationForms/ListTable/Columns/LevelsColumn.php(49): Give\DonationForms\ListTable\Columns\LevelsColumn->getLevels()
    #4 /var/www/wordpress/wp-content/plugins/give/src/Framework/ListTable/ListTable.php(91): Give\DonationForms\ListTable\Columns\LevelsColumn->getCellValue()
    #5 /var/www/wordpress/wp-content/plugins/give/src/DonationForms/Endpoints/ListDonationForms.php(128): Give\Framework\ListTable\ListTable->items()
    #6 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1171): Give\DonationForms\Endpoints\ListDonationForms->handleRequest()
    #7 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request()
    #8 /var/www/wordpress/wp-includes/rest-api.php(535): WP_REST_Server->dispatch()
    #9 /var/www/wordpress/wp-content/plugins/give/src/DonationForms/DonationFormsAdminPage.php(119): rest_do_request()
    #10 /var/www/wordpress/wp-content/plugins/give/src/DonationForms/DonationFormsAdminPage.php(82): Give\DonationForms\DonationFormsAdminPage->preloadDonationForms()
    #11 [internal function]: Give\DonationForms\DonationFormsAdminPage->loadScripts()
    #12 /var/www/wordpress/wp-content/plugins/give/src/Helpers/Hooks.php(43): call_user_func_array()
    #13 /var/www/wordpress/wp-includes/class-wp-hook.php(308): Give\Helpers\Hooks::Give\Helpers\{closure}()
    #14 /var/www/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #15 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
    #16 /var/www/wordpress/wp-admin/admin-header.php(118): do_action()
    #17 /var/www/wordpress/wp-admin/admin.php(239): require_once('...')
    #18 {main}
      thrown

    From the WordPress backend the donation forms, donation and donors screens doesn’t load and makes the site brake into this error above.

    Please test and review thoroughly and release a new bugfix version to wordpress.org.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @elvismdev,
    Glad you reached out about this! It isn’t an error that needs a bug fix, this actually means you don’t have the required PHP INTL extension installed. This isn’t a new requirement in 2.24.0, it means you are likely updating from an older version. Most folks would need to reach out to their host, but I believe (based on the other ticket we are working on) that you may be handling the hosting side? Either way getting that extension installed with be the best way to get that error cleared up! Let me know if you have any questions about this, I’m happy to hop in and help.

    Thread Starter Elvis Morales

    (@elvismdev)

    Hi @stephanieliy ,

    This was resolved after installing the php-intl extension and restarting my server on Linode.

    sudo apt-get install -y php-intl
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Errors after upgrade to v2.24.0’ is closed to new replies.