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

    How 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!

    #803997

    Cant even login to wordpress!

    #804356

    Hi,

    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,
    Nikko

    #804361

    Nikko, 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?

    #804424

    Hi,

    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,
    Nikko

    #804470

    Would it work to roll back to a previous version of Enfold?

    #804471

    managed to put up coming soon page, but now that won’t show either? was working about 2 hours ago?

    #804769

    Hi,

    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

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