-
AuthorPosts
-
May 2, 2017 at 11:33 am #786279
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.May 2, 2017 at 2:52 pm #786394Hey 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 listingBest regards,
NikkoMay 3, 2017 at 12:34 pm #787070I’m sorry! I unlocked the country access limit, please try again.
May 3, 2017 at 11:57 pm #787474Hi,
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,
NikkoMay 4, 2017 at 9:44 am #787665Thank you for your help. I appreciate. That works fine. I will update my php version.
May 4, 2017 at 1:00 pm #787773 -
AuthorPosts
- You must be logged in to reply to this topic.
