Home » » Solved - Function ereg() Wordpress on PHP 5.x - 7.x

Solved - Function ereg() Wordpress on PHP 5.x - 7.x

Posted by E-Learning on Wednesday, January 27, 2016

This Errors :

Fatal error: Uncaught Error: Call to undefined function ereg() in /usr/share/nginx/html/demo/photoparm/wp-content/themes/photopharm/header.php:36 Stack trace: #0 /usr/share/nginx/html/demo/photoparm/wp-includes/template.php(555): require_once() #1 /usr/share/nginx/html/demo/photoparm/wp-includes/template.php(514): load_template('/usr/share/ngin...', true) #2 /usr/share/nginx/html/demo/photoparm/wp-includes/general-template.php(45): locate_template(Array, true) #3 /usr/share/nginx/html/demo/photoparm/wp-content/themes/photopharm/archive.php(1): get_header() #4 /usr/share/nginx/html/demo/photoparm/wp-includes/template.php(557): require('/usr/share/ngin...') #5 /usr/share/nginx/html/demo/photoparm/wp-includes/template.php(514): load_template('/usr/share/ngin...', false) #6 /usr/share/nginx/html/demo/photoparm/wp-includes/general-template.php(171): locate_template(Array, true, false) #7 /usr/share/nginx/html/demo/photoparm/wp-content/themes/photopharm/index.php(1): get_template_part('archive') #8 /usr/share/nginx/html/demo/ph in /usr/share/nginx/html/demo/photoparm/wp-content/themes/photopharm/header.php on line 36

Open and edit file header.php
change

ereg()
To
preg_match()


Hosting Unlimited Indonesia

0 comments:

Donate Bitcoin :
19QsXRcfUEKW9AVbGkJFB6WJPvn6uRboNr