{"id":1937,"date":"2022-03-30T15:37:37","date_gmt":"2022-03-30T13:37:37","guid":{"rendered":"https:\/\/www.wp-moon.com\/?p=1937"},"modified":"2022-03-30T15:41:24","modified_gmt":"2022-03-30T13:41:24","slug":"fix-bugs-with-astra-theme","status":"publish","type":"post","link":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/","title":{"rendered":"Fix bugs with Astra theme"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/themes\/astra\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Astra<\/a> is a very popular WordPress theme and quite reliable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But if you have one of these errors below, you can find the solution here.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Fatal error: Uncaught Error: Call to undefined function ctype_xdigit() in \/wp-content\/themes\/astra\/inc\/core\/common-functions.php:50 Stack trace: #0 \/wp-content\/themes\/astra\/inc\/class-astra-dynamic-css.php(187): astra_get_foreground_color() #1 \/wp-includes\/class-wp-hook.php(292): Astra_Dynamic_CSS::return_output() #2 \/wp-includes\/plugin.php(212): WP_Hook-&gt;apply_filters() #3 \/wp-content\/themes\/astra\/inc\/core\/class-astra-enqueue-scripts.php(285): apply_filters() #4 \/wp-includes\/class-wp-hook.php(292): Astra_Enqueue_Scripts-&gt;enqueue_scripts() #5 \/wp-includes\/class-wp-hook.php(316): WP_Hook-&gt;apply_filters() #6 \/wp-includes\/plugin.php(484): WP_Hook-&gt;do_action() #7 \/wp-includes\/script-loader.php(2027): do_action() #8 \/wp-includes\/class-wp-hook.php(292): wp_enqueue_scripts() #9 \/wp-includes\/class-wp-hook.php(316): WP_Hook-&gt;apply_filters() #10 \/wp-includes\/plugin.php(484): WP_Hook-&gt;do_action() #11 \/wp-includes\/general-template.php(3009): do_action() #12 \/wp-content\/themes\/astra\/header.php(26): wp_head() #13 \/wp-includes\/template.php(730): require_once('\/...') #14 \/wp-includes\/template.php(676): load_template() #15 \/wp-includes\/general-template.php(48): locate_template() #16 \/wp-content\/themes\/astra\/page.php(20): get_header() #17 \/wp-includes\/template-loader.php(106): include('\/...') #18 \/wp-blog-header.php(19): require_once('\/...') #19 \/index.php(17): require('\/...') #20 {main} thrown in \/wp-content\/themes\/astra\/inc\/core\/common-functions.php on line 50<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Fatal error: Array and string offset access syntax with curly braces is no longer supported in \/wp-content\/plugins\/astra-addon\/admin\/bsf-core\/auto-update\/admin-functions.php on line 11<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">First, the &#8220;<em>Fatal error: Uncaught Error: Call to undefined function ctype_xdigit()<\/em>&nbsp;&#8221; error means your PHP requires a module that&#8217;s isn&#8217;t installed. It happens for example when you switched to a new <a href=\"https:\/\/www.wp-moon.com\/wordpress-has-detected-that-your-site-is-running-on-an-insecure-version-of-php\/\" title=\"WordPress has detected that your site is running on an insecure version of PHP\">PHP version<\/a> (like PHP 8). We recommand you to check if all your old modules from PHP 7.x are now the same on your PHP 8 migration. Usually, you can do it on your Webhosting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If this doesn&#8217;t help, we also recommend you make sure that your theme (and plugins related to the theme) are <a href=\"https:\/\/www.wp-moon.com\/error-with-adding-or-updating-plugins-themes\/\" title=\"Error with adding or updating plugins &#038; themes\">up to date<\/a>, either for the free or for the pro version of this theme.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Astra is a very popular WordPress theme and quite reliable. If you have one of these errors, you can find the solution.<\/p>\n","protected":false},"author":2,"featured_media":1938,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[163],"tags":[],"class_list":["post-1937","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-themes-issues"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fix bugs with Astra theme - WP Moon<\/title>\n<meta name=\"description\" content=\"Astra is a very popular WordPress theme and quite reliable. If you have one of these errors below, you can find the solution.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix bugs with Astra theme - WP Moon\" \/>\n<meta property=\"og:description\" content=\"Astra is a very popular WordPress theme and quite reliable. If you have one of these errors below, you can find the solution.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Moon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpmoonwebsite\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-30T13:37:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-30T13:41:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2022\/03\/screenshot.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"572\" \/>\n\t<meta property=\"og:image:height\" content=\"429\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alexandre G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@alexgaboriau\" \/>\n<meta name=\"twitter:site\" content=\"@WPMoon4\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alexandre G\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix bugs with Astra theme - WP Moon","description":"Astra is a very popular WordPress theme and quite reliable. If you have one of these errors below, you can find the solution.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/","og_locale":"en_US","og_type":"article","og_title":"Fix bugs with Astra theme - WP Moon","og_description":"Astra is a very popular WordPress theme and quite reliable. If you have one of these errors below, you can find the solution.","og_url":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/","og_site_name":"WP Moon","article_publisher":"https:\/\/www.facebook.com\/wpmoonwebsite","article_published_time":"2022-03-30T13:37:37+00:00","article_modified_time":"2022-03-30T13:41:24+00:00","og_image":[{"width":572,"height":429,"url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2022\/03\/screenshot.jpg","type":"image\/jpeg"}],"author":"Alexandre G","twitter_card":"summary_large_image","twitter_creator":"@alexgaboriau","twitter_site":"@WPMoon4","twitter_misc":{"Written by":"Alexandre G","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/#article","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/"},"author":{"name":"Alexandre G","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d"},"headline":"Fix bugs with Astra theme","datePublished":"2022-03-30T13:37:37+00:00","dateModified":"2022-03-30T13:41:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/"},"wordCount":134,"commentCount":0,"publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2022\/03\/screenshot.jpg","articleSection":["Fix Errors With WordPress Themes"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/","url":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/","name":"Fix bugs with Astra theme - WP Moon","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/#primaryimage"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2022\/03\/screenshot.jpg","datePublished":"2022-03-30T13:37:37+00:00","dateModified":"2022-03-30T13:41:24+00:00","description":"Astra is a very popular WordPress theme and quite reliable. If you have one of these errors below, you can find the solution.","breadcrumb":{"@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/#primaryimage","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2022\/03\/screenshot.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2022\/03\/screenshot.jpg","width":572,"height":429,"caption":"astra theme issues"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wp-moon.com\/en\/fix-bugs-with-astra-theme\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wp-moon.com\/en\/"},{"@type":"ListItem","position":2,"name":"Fix Errors With WordPress Themes","item":"https:\/\/www.wp-moon.com\/en\/category\/themes-issues\/"},{"@type":"ListItem","position":3,"name":"Fix bugs with Astra theme"}]},{"@type":"WebSite","@id":"https:\/\/www.wp-moon.com\/en\/#website","url":"https:\/\/www.wp-moon.com\/en\/","name":"WP Moon","description":"","publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wp-moon.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wp-moon.com\/en\/#organization","name":"WP Moon","url":"https:\/\/www.wp-moon.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/logo.png","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/logo.png","width":290,"height":95,"caption":"WP Moon"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wpmoonwebsite","https:\/\/x.com\/WPMoon4"]},{"@type":"Person","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d","name":"Alexandre G","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","caption":"Alexandre G"},"description":"Alexandre, Web Developer &amp; Website Editor. I've been using WordPress for over 10 years in my professional environment and on personal projects. I created WP Moon to teach you how to use this CMS, solve your problems and show you all the tricks.","sameAs":["https:\/\/www.croque-pixel.com\/","https:\/\/x.com\/alexgaboriau","https:\/\/www.youtube.com\/@wp_moon\/videos"],"url":"https:\/\/www.wp-moon.com\/en\/author\/wp-moon\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/comments?post=1937"}],"version-history":[{"count":0,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1937\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media\/1938"}],"wp:attachment":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media?parent=1937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/categories?post=1937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/tags?post=1937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}