My site itself works well, though I cannot acces the wp−admin page after updated the theme via admin panel. I updated the theme again via FTP,but the problem wasn’t solved.
Please help me.
Hey Ayumi,
I tried checking out the files via ftp but I am getting this error:
Response: 550 PWD: Permission denied
Error: Failed to retrieve directory listing
Best regards,
Nikko
I’m sorry! I unlocked the country access limit, please try again.
Hi,
Thanks for unlocking it. This is fixed, the issue was you are getting a fatal error because the version of php you are using 5.2.17 can’t read anonymous function (which is available in php version 5.3) which is used in enfold\config-layerslider\LayerSlider\layerslider.php (line 109-118):
add_action('after_setup_theme', function() {
define('LS_ROOT_URL', apply_filters('layerslider_root_url', plugins_url('', __FILE__)));
layerslider_loaded();
});
// Load locales
add_action('plugins_loaded', function() {
load_plugin_textdomain('LayerSlider', false, LS_PLUGIN_SLUG . '/locales/' );
});
To fix it, I have replaced it with this code:
add_action('after_setup_theme', 'ls_after_setup_theme');
function ls_after_setup_theme() {
define('LS_ROOT_URL', apply_filters('layerslider_root_url', plugins_url('', __FILE__)));
layerslider_loaded();
}
// Load locales
add_action('plugins_loaded', 'ls_plugins_loaded');
function ls_plugins_loaded() {
load_plugin_textdomain('LayerSlider', false, LS_PLUGIN_SLUG . '/locales/' );
}
Please update your php version to atleast 5.6, otherwise if you do an update make sure to modify this file again. Hope it’s all good :)
Best regards,
Nikko
Thank you for your help. I appreciate. That works fine. I will update my php version.