Okay
  Public Ticket #1761027
Error On Install trying to preview or activate
Closed

Comments

  •  2
    pennylanemini started the conversation

    Hi I’ve just tried installing salient on a fresh install and am getting Parse error: syntax error, unexpected T_FUNCTION in salient\functions.php on line 6354

    add_filter(‘loop_shop_per_page’, function($cols){ global $nectar_woo_products_per_page; return $nectar_woo_products_per_page; }, 20);

    It is erroring out on this line I can’t activate or preview the theme?


    I'm running php 5.2.1.7

  •  2
    pennylanemini replied

    Please ignore this is resolved

  • leokwok2001 replied

    hi , pennylanemini , i have same  error, how to sove it ? please help thx!

  •  8,997
    Tahir replied

    Hey 

    Your PHP Settings are likely not correct. Also ensure you are running PHP version 7.1 and not 7.2 as its incompatible .

    You can verify your PHP configuration limits by installing a simple plugin called WordPress phpinfo http://wordpress.org/extend/plugins/wordpress-php-info/

    Recommended PHP configuration limits are as follows:

    • max_execution_time 60
    • memory_limit 256M
    • post_max_size 48M
    • upload_max_filesize 48M

    Please have your hosting provider fix this for you so it can be installed correctly. 

    Thanks 


    ThemeNectar Support Team