Hello guys,
can someone help me. A fatal error shows up nn my website http://www.bigshockracing.cz
Fatal error: Can’t use function return value in write context in /www/doc/www.bigshockracing.cz/www/wp-content/themes/enfold/header.php on line 6
Thanks a lot for any solution. It is after last update.
Regards
Martin
Hey Martin,
If you recently updated enfold theme to 4.2.6 and get an error here is what you should do to resolve this issue:
1. Deactivate all plugins.
2. Update the PHP version being used by your hosting server to PHP 7 by getting in touch with your hosting company.
Access your site with FTP or log in to your control panel and access the site via File Manager and perform the below steps:
3. Replace the header.php file in wp-content/themes/enfold folder with an updated version of the header.php file.
4. Access your WordPress site root folder and rename the current .htaccess file to .htaccess.bak. Login to WordPress admin area go to settings > permalinks > select “Post name” and save changes.
5. Define a higher memory limit in WordPress and if possible increasing the memory on the hosting server.
To increase the WordPress memory limit please access wp-config.php file and add the below line
define('WP_MEMORY_LIMIT', '256M');
For a detailed explanation please check this link http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
and you can contact your service provider to increase the memory limit.
If none of the above works for you please go ahead and delete the “enfold” folder in wp-content/themes/ and upload a fresh copy of the “enfold” theme files.
Best regards,
Vinay