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?
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
Please ignore this is resolved
hi , pennylanemini , i have same error, how to sove it ? please help thx!
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:
Please have your hosting provider fix this for you so it can be installed correctly.
Thanks
ThemeNectar Support Team