Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #786394

    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

    #787070

    I’m sorry! I unlocked the country access limit, please try again.

    #787474

    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

    #787665

    Thank you for your help. I appreciate. That works fine. I will update my php version.

    #787773

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.