{"id":1768,"date":"2020-07-02T10:50:00","date_gmt":"2020-07-02T08:50:00","guid":{"rendered":"https:\/\/www.wp-moon.com\/?p=1768"},"modified":"2022-04-26T14:09:10","modified_gmt":"2022-04-26T12:09:10","slug":"errors-when-switching-to-php-7-3-or-7-4","status":"publish","type":"post","link":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/","title":{"rendered":"ERRORS when switching to PHP 7.3 or 7.4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You webserver is on PHP 7 and you have an error listed bellow :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ERRORS when switching to PHP 7.4 \u2013 Warning: preg_match(): Allocation of JIT memo<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Warning: preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in \/wp-includes\/wp-db.php on line 1754<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Warning: preg_replace(): JIT compilation failed: no more memory in \/wordpress\/wp-includes\/formatting.php on line 2110 Warning: preg_match(): JIT compilation failed: no more memory in \/wordpress\/wp-includes\/functions.php on line 4947 Warning: preg_replace(): JIT compilation failed: no more memory in \/wordpress\/wp-includes\/functions.php on line 4843 Warning: preg_match(): JIT compilation failed: no more memory in \/wordpress\/wp-includes\/functions.php on line 4947 Warning: preg_match(): JIT compilation failed: no more memory in \/wordpress\/wp-includes\/functions.php on line 4947<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">The reason<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It can happen  when you upgrade the PHP version and <strong>some extensions<\/strong> <em>(php extensions<\/em>) <strong>are missing<\/strong>. For example <em>MySQL extension<\/em> which is required by WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The solution<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Try to see into your hosting dashboard if some extensions are missing, like mysql extensions for example.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If it doesn&#8217;t work, try to fix it. You can edit your file <em>php.ini<\/em> (create it if it doesn&#8217;t exist) at the root of your FTP and add :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pcre.jit=0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Try again to run your WordPress. If it doesn&#8217;t work, then you should downgrade your PHP version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On your host, choose an old php version. For example, if your version is PHP 7.3, downgrade to 7.2, then 7.1 and so on&#8230; until your website works. Then, start upgrading again PHP, in the same way. Stop if an error appears and verify if all extensions are installed or not.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You webserver is on PHP 7 and you have an error listed bellow : Or : Or : The reason It can happen when you upgrade the PHP version and some extensions (php extensions) are missing. For example MySQL extension which is required by WordPress. The solution Try to see into your hosting dashboard if &hellip; <a href=\"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ERRORS when switching to PHP 7.3 or 7.4<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":1769,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[53],"class_list":["post-1768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fix-errors","tag-php-7-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ERRORS when switching to PHP 7.3 or 7.4 - WP Moon<\/title>\n<meta name=\"description\" content=\"You webserver is on PHP 7 and you have an error listed bellow : ERRORS when switching to PHP 7.4 \u2013 Warning: preg_match(): Allocation of JIT memo Or :\" \/>\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\/errors-when-switching-to-php-7-3-or-7-4\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ERRORS when switching to PHP 7.3 or 7.4 - WP Moon\" \/>\n<meta property=\"og:description\" content=\"You webserver is on PHP 7 and you have an error listed bellow : ERRORS when switching to PHP 7.4 \u2013 Warning: preg_match(): Allocation of JIT memo Or :\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/\" \/>\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=\"2020-07-02T08:50:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-26T12:09:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/06\/PHP7-4.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\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=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ERRORS when switching to PHP 7.3 or 7.4 - WP Moon","description":"You webserver is on PHP 7 and you have an error listed bellow : ERRORS when switching to PHP 7.4 \u2013 Warning: preg_match(): Allocation of JIT memo Or :","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\/errors-when-switching-to-php-7-3-or-7-4\/","og_locale":"en_US","og_type":"article","og_title":"ERRORS when switching to PHP 7.3 or 7.4 - WP Moon","og_description":"You webserver is on PHP 7 and you have an error listed bellow : ERRORS when switching to PHP 7.4 \u2013 Warning: preg_match(): Allocation of JIT memo Or :","og_url":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/","og_site_name":"WP Moon","article_publisher":"https:\/\/www.facebook.com\/wpmoonwebsite","article_published_time":"2020-07-02T08:50:00+00:00","article_modified_time":"2022-04-26T12:09:10+00:00","og_image":[{"width":1080,"height":675,"url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/06\/PHP7-4.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/#article","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/"},"author":{"name":"Alexandre G","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d"},"headline":"ERRORS when switching to PHP 7.3 or 7.4","datePublished":"2020-07-02T08:50:00+00:00","dateModified":"2022-04-26T12:09:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/"},"wordCount":163,"commentCount":0,"publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/06\/PHP7-4.jpg","keywords":["PHP 7"],"articleSection":["Fix Errors"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/","url":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/","name":"ERRORS when switching to PHP 7.3 or 7.4 - WP Moon","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/#primaryimage"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/06\/PHP7-4.jpg","datePublished":"2020-07-02T08:50:00+00:00","dateModified":"2022-04-26T12:09:10+00:00","description":"You webserver is on PHP 7 and you have an error listed bellow : ERRORS when switching to PHP 7.4 \u2013 Warning: preg_match(): Allocation of JIT memo Or :","breadcrumb":{"@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/#primaryimage","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/06\/PHP7-4.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/06\/PHP7-4.jpg","width":1080,"height":675,"caption":"error PHP 7-4"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wp-moon.com\/en\/errors-when-switching-to-php-7-3-or-7-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wp-moon.com\/en\/"},{"@type":"ListItem","position":2,"name":"Fix Errors","item":"https:\/\/www.wp-moon.com\/en\/category\/fix-errors\/"},{"@type":"ListItem","position":3,"name":"ERRORS when switching to PHP 7.3 or 7.4"}]},{"@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\/1768","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=1768"}],"version-history":[{"count":0,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media\/1769"}],"wp:attachment":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media?parent=1768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/categories?post=1768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/tags?post=1768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}