Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   PHP Warning: A non-numeric value encountered in css.php on lines 137 and 138 (http://forum.bytesforall.com/showthread.php?t=24055)

aharonium Apr 14, 2019 10:57 PM

PHP Warning: A non-numeric value encountered in css.php on lines 137 and 138
 
I've noticed the following lines showing up in my error log with PHP 7.0+:

Code:

PHP Warning:  A non-numeric value encountered in /.../wp-content/themes/atahualpa/css.php on line 137
PHP Warning:  A non-numeric value encountered in /.../wp-content/themes/atahualpa/css.php on line 138

I'm using Atahualpa version: 3.7.24.

I searched the forum -- apologies if this is duplicated in any other post. Thank you for all your help over the years.

juggledad Apr 15, 2019 08:22 AM

Please go to ATO->Export/Import Settings - export your settings and attach them to a reply (use the paper clip icon)

aharonium Apr 15, 2019 09:10 AM

1 Attachment(s)
Thank you juggledad. See attached Atahualpa settings.

juggledad Apr 15, 2019 11:34 AM

Do you have any clue as to what was going on when the warning shows up?

where are you seeing that message i.e. what error log?

aharonium Apr 15, 2019 04:35 PM

The error_log is generated in Wordpress Debugging Mode.

I think the error is generated when a viewer visits the site.

juggledad Apr 16, 2019 12:11 PM

Do you have define( 'WP_DEBUG', false ); set in your wp_config.php?

I haven't been able to recreate this so I don't know what is causing it. If you can figure out what causes it, I can take a look and come up with a solution.

aharonium Dec 17, 2019 04:25 AM

After a long while, I took another look at the error_log.

The errors disappeared when I added Layout MIN and MAX width numbers into the Style and Configure Layout Options.

When I removed the numbers and saved, the errors returned. So the issue appears to be that blank MIN/MAX Width layout options will produce these error messages for some reason.

Also, I did not mention this earlier but it seems like it could be relevant. There is one more error -- a PHP Warning -- that shows up just before the other errors I mentioned before.

Code:

[17-Dec-2019 10:50:20 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /.../wp-includes/class-wp-hook.php on line 288
[17-Dec-2019 10:50:20 UTC] PHP Warning:  A non-numeric value encountered in /.../wp-content/themes/atahualpa/css.php on line 137
[17-Dec-2019 10:50:20 UTC] PHP Warning:  A non-numeric value encountered in /.../wp-content/themes/atahualpa/css.php on line 138

That PHP Warning error continued to show even after I took care of the issue causing the other errors.

Code:

[17-Dec-2019 11:15:17 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /.../wp-includes/class-wp-hook.php on line 288
[17-Dec-2019 11:15:19 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /.../wp-includes/class-wp-hook.php on line 288
[17-Dec-2019 11:15:27 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /.../wp-includes/class-wp-hook.php on line 288

I'm running PHP 7.1.

juggledad Dec 27, 2019 01:34 AM

Once again do you know what you are doing when that occurs?
What plugins do you have active?
What version of WordPress?

aharonium Jan 1, 2020 01:24 AM

After much troubleshooting, I seem to have nailed down the problem to two plugins: "collapsing categories" (causing the first set of errors), and "collapsing pages" (causing the other error), both venerable old wordpress plugins.

Sorry for the disruption and thank you for your generous patience.

juggledad Jan 3, 2020 04:18 AM

Glad you figured it out!


All times are GMT -6. The time now is 02:34 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.