-
AuthorPosts
-
June 5, 2017 at 3:52 pm #803994
Help updated theme to latest and then got this error!
PHP Parse error: syntax error, unexpected T_FUNCTION in F:\Domains\iua.co.za\wwwroot\wp-content\themes\enfold\config-layerslider\LayerSlider\layerslider.php on line 111
I read the minimum required PHP version is higher than 5.3.
I have been told that the host highest version is 5.3How can i fix this? Host doesn’t have backup! and I’m about to be fired…..
Tried to overwrite theme with an older version but nothing worked……. HELP!
June 5, 2017 at 3:55 pm #803997Cant even login to wordpress!
June 6, 2017 at 7:42 am #804356Hi,
You can access to wordpress now. I have fixed it by changing this code at the bottom of layerslider.php:
add_action('after_setup_theme', function() { layerslider_loaded(); }); // Load locales add_action('plugins_loaded', function() { load_plugin_textdomain('LayerSlider', false, LS_PLUGIN_SLUG . '/locales/' ); });
to this:
add_action('after_setup_theme', 'after_setup_theme'); function ls_after_setup_theme() { layerslider_loaded(); }; // Load locales add_action('plugins_loaded', 'ls_plugins_loaded'); function ls_plugins_loaded() { load_plugin_textdomain('LayerSlider', false, LS_PLUGIN_SLUG . '/locales/' ); };
The backend is okay but the frontend shows this error:
PHP Parse error: syntax error, unexpected T_STRING in wwwroot\wp-content\themes\enfold\config-layerslider\LayerSlider\helpers\phpQuery.php on line 2
however, if I try to edit phpQuery.php file, I always get failed to transfer :(
Best regards,
NikkoJune 6, 2017 at 7:48 am #804361Nikko, cant thank you enough!
what do i do about failed transfer “however, if I try to edit phpQuery.php file, I always get failed to transfer :(” is this a server error?
June 6, 2017 at 10:16 am #804424Hi,
I have checked it and it seems that the problem is namespace isn’t supported in the current version of php you have (5.2.17). Can you get your host to update it to atleast 5.3?
Best regards,
NikkoJune 6, 2017 at 12:26 pm #804470Would it work to roll back to a previous version of Enfold?
June 6, 2017 at 12:32 pm #804471managed to put up coming soon page, but now that won’t show either? was working about 2 hours ago?
June 7, 2017 at 2:16 am #804769Hi,
I’m not really sure about the coming soon not working, but as for the rollback, I think that would work but it should be version 3 of Enfold which is a bit outdated already.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.