PHP Warning: A non-numeric value encountered in renew.php on line 135

This error message is being written to the logs on our website every few seconds. Redacted version here, full version in a private note.

The server is running PHP 7.4, WordPress 5.5.3, and a child version of Pro theme version 3.2.3.

[Sat Nov 14 17:29:14.997174 2020] [proxy_fcgi:error] [pid 6740] [client] AH01071: Got error 'PHP message: PHP Warning:  A non-numeric value encountered in /home/[redacted]/[domain]/wp-content/themes/pro/framework/functions/frontend/generated-css/renew.php on line 131PHP message: PHP Warning:  A non-numeric value encountered in /home/[redacted]/[domain]/wp-content/themes/pro/framework/functions/frontend/generated-css/renew.php on line 135', referer: [domain]

Hello Sarah,

Thanks for writing in! The PHP warning occurred because you haven’t set the Layout Sizing. Please go to X > Theme Options > Layout & Design and set the “Site Width” to at least 88%. If nothing is helping, provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

Thanks. I had the Site Width set already to 90%. I’ll make a secure note with login details

Hello Sarah,

Line 135 in the file: /wp-content/themes/pro/framework/functions/frontend/generated-css/renew.php is this:

width: <?php echo 100 - 3.20197 - $x_layout_content_width . '%'; ?>;

Anyways, this is just a PHP Warning and you do not have to worry about as it does not affect any of the site features and functionalities. We will take note of this and check the code with the developers. It will be updated in the next release update cycle. In the meantime, you can get rid of the PHP notices by disabling the debug mode. You can do this by opening wp-config.php and adding:

define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

Thank you for your understanding.

Thanks, I appreciate the bug report.

This is a production site so debug is already off – the warning is showing up in our logs, not on the site itself. It’s being written to the logs every few seconds.

You’re most welcome Sarah.
We really appreciate for this feedback.

Hi @sarahwefald,

Thanks again for the heads up about this issue! We’ve taken a look and have corrected it for the next version of Pro.

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