• Resolved Anonymous User 18808699

    (@anonymized-18808699)


    Astra is one of the only themes that have this problem on PHP version 8

    Fatal error: Uncaught Error: Call to undefined function ctype_xdigit() in /home/xslrir/domains/xslrx.ir/public_html/wp-content/themes/astra/inc/core/common-functions.php:50 Stack trace: #0 /home/xslrir/domains/xslrx.ir/public_html/wp-content/themes/astra/inc/class-astra-dynamic-css.php(187): astra_get_foreground_color() #1 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/class-wp-hook.php(292): Astra_Dynamic_CSS::return_output() #2 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters() #3 /home/xslrir/domains/xslrx.ir/public_html/wp-content/themes/astra/inc/core/class-astra-enqueue-scripts.php(285): apply_filters() #4 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/class-wp-hook.php(292): Astra_Enqueue_Scripts->enqueue_scripts() #5 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #6 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/plugin.php(484): WP_Hook->do_action() #7 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/script-loader.php(2027): do_action() #8 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/class-wp-hook.php(292): wp_enqueue_scripts() #9 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #10 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/plugin.php(484): WP_Hook->do_action() #11 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/general-template.php(3009): do_action() #12 /home/xslrir/domains/xslrx.ir/public_html/wp-content/themes/astra/header.php(26): wp_head() #13 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/template.php(730): require_once('/home/xslrir/do...') #14 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/template.php(676): load_template() #15 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/general-template.php(48): locate_template() #16 /home/xslrir/domains/xslrx.ir/public_html/wp-content/themes/astra/page.php(20): get_header() #17 /home/xslrir/domains/xslrx.ir/public_html/wp-includes/template-loader.php(106): include('/home/xslrir/do...') #18 /home/xslrir/domains/xslrx.ir/public_html/wp-blog-header.php(19): require_once('/home/xslrir/do...') #19 /home/xslrir/domains/xslrx.ir/public_html/index.php(17): require('/home/xslrir/do...') #20 {main} thrown in /home/xslrir/domains/xslrx.ir/public_html/wp-content/themes/astra/inc/core/common-functions.php on line 50

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @xslrx

    It seems that there is a PHP module missing. That is “ctype_xdigit”

    Please refer to this screenshot- https://share.bsf.io/mXurgmWj

    For some reason, your host decided to setup PHP without this core function. Unfortunately, you’ll have to contact the host to re-enable it for you.

    I hope that helps. Do let me know if the problem still persists. ??

    Hi there,

    I’ve got the same Problem. If i activate Astra while PHP 8.0 is active the site crashes:

    Fatal error: Array and string offset access syntax with curly braces is no longer supported in /root/htdocs/wordpress/wp-content/plugins/astra-addon/admin/bsf-core/auto-update/admin-functions.php on line 11

    If i grade down to 7.4 everything is working fine!

    Is there a solution for this?

    Running Astra 3.7.6 and WP 5.8.3

    Thanks & best regards

    ————-

    Sorry, i’ve found the problem! The Astra Pro Addon was outdated and crashed the site. Used it from an older installation. After updating the addon everything is working fine. If anyone is able, you can delete my post.

    • This reply was modified 2 years, 10 months ago by beatcore. Reason: Found solution!

    Hello @beatcore / @xslrx

    Glad to hear that you were able to resolve this issue. On WordPress forums, the thread Starter can mark the topic as resolved.

    Hope that helps. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Astra theme shows Fatal Error on PHP 8.0’ is closed to new replies.