Error Warning Each Time Theme Updated

Each time we update our theme a warning message appears at the top of our website and we’re required to manually edit code to remove it. For example, we updated to WordPress 5.9 and are running Pro-Child Theme.

The warning message that appeared was…
“PHP Warning: ini_set() has been disabled for security reasons in /home/fritz17/public_html/wp-content/themes/pro/cornerstone/includes/classes/Tss/StyleParser.php on line 203.”

The fix is to change line 203 in StyleParser.php FROM
ini_set(‘xdebug.max_nesting_level’, 500);
TO
@ini_set(‘xdebug.max_nesting_level’, 500);

The “@” is the PHP code operator meaning to suppress any warning message. That fix would be simple and riskless for the theme maker to make to their code.

Hello John,

Thanks for writing in!

If you have access to your php.ini file look for the disable_functions item and remove ini_set from the list. Depending on your server setup you may also need to restart Apache for this to take effect.

If you do not have access to php.ini you will need to ask your Sys Admin or hosting provider to make the change.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.