-
AuthorPosts
-
April 6, 2019 at 10:23 pm #1087861
Hi
My enfold site was on an old GoDaddy installation running PHP 5.2 and Enfold Version: 3.1.3. I have just migrated it over to WordPress Siteground hosting.
When i visit the site at alaniswright.com i get this error:
Fatal error: Uncaught Error: Function name must be a string in /home/alaniswr/public_html/wp-content/themes/enfold/framework/php/class-style-generator.php:123 Stack trace: #0 /home/alaniswr/public_html/wp-includes/class-wp-hook.php(286): avia_style_generator->create_styles(”) #1 /home/alaniswr/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/alaniswr/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /home/alaniswr/public_html/wp-includes/general-template.php(2668): do_action(‘wp_head’) #4 /home/alaniswr/public_html/wp-content/themes/enfold/header.php(49): wp_head() #5 /home/alaniswr/public_html/wp-includes/template.php(704): require_once(‘/home/alaniswr/…’) #6 /home/alaniswr/public_html/wp-includes/template.php(653): load_template(‘/home/alaniswr/…’, true) #7 /home/alaniswr/public_html/wp-includes/general-template.php(41): locate_template(Array, true) #8 /home/alaniswr/public_html/wp-content/themes/enfold/template-builder.php(12): get_header() #9 /home/a in /home/alaniswr/public_html/wp-content/themes/enfold/framework/php/class-style-generator.php on line 123
When i try to access the enfold settings link on wp-admin i get this error:
Fatal error: Uncaught Error: Function name must be a string in /home/alaniswr/public_html/wp-content/themes/enfold/framework/php/class-htmlhelper.php:222 Stack trace: #0 /home/alaniswr/public_html/wp-content/themes/enfold/framework/php/class-htmlhelper.php(131): avia_htmlhelper->render_single_element(Array) #1 /home/alaniswr/public_html/wp-content/themes/enfold/framework/php/class-adminpages.php(205): avia_htmlhelper->create_container_based_on_slug(Array, ‘avia_active_con…’) #2 /home/alaniswr/public_html/wp-includes/class-wp-hook.php(286): avia_adminpages->render_page(”) #3 /home/alaniswr/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #4 /home/alaniswr/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #5 /home/alaniswr/public_html/wp-admin/admin.php(253): do_action(‘toplevel_page_a…’) #6 {main} thrown in /home/alaniswr/public_html/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 222
Would welcome your suggestions on how to fix this
Cheers
April 7, 2019 at 9:54 am #1087913Hi Alan
Alright, so my first question would be:
You had PHP 5.2 and Enfold 3.1.3 before, which versions are you having now?
And which WordPress version are you using?The error message looks like the theme update is failed.
If you replace the theme folder manually it is important that you delete the old folder and move in the new one, otherwise you will some old leftovers which cause issues.I hope this helps – cheers.
MichaelApril 7, 2019 at 11:09 am #1087948Hi
My old GoDaddy hosting is using PHP 5.2, WordPress 4.1.26
My new Siteground hosting is using PHP 7.1, WordPress 5.1.1.Both are usingEnfold 3.1.3
All i’ve done so far is back up the site from GoDaddy using UpdraftPlus then restored it on SiteGround, via UpdraftPlus also. So there was no old folder to delete.
Any ideas on how best to get this up and running again?
Cheers
April 7, 2019 at 11:28 am #1087956Hi alanjameswright,
Enfold 3.1.3 will not work with WordPress 5.1.1 and php7. You need to update your theme, better to the latest version.
Best regards,
VictoriaApril 7, 2019 at 11:50 am #1087965That worked perfectly. Thanks!
April 8, 2019 at 9:29 am #1088191 -
AuthorPosts
- You must be logged in to reply to this topic.