Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

PHP Warning: A non-numeric value encountered in css.php on lines 137 and 138


  #1  
Old Apr 14, 2019, 10:57 PM
aharonium
 
7 posts · Dec 2013
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.
  #2  
Old Apr 15, 2019, 08:22 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Please go to ATO->Export/Import Settings - export your settings and attach them to a reply (use the paper clip icon)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 15, 2019, 09:10 AM
aharonium
 
7 posts · Dec 2013
Thank you juggledad. See attached Atahualpa settings.
Attached Files
File Type: txt ata-opensiddurorg-20190415.txt (38.8 KB, 1571 views)
  #4  
Old Apr 15, 2019, 11:34 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Apr 15, 2019, 04:35 PM
aharonium
 
7 posts · Dec 2013
The error_log is generated in Wordpress Debugging Mode.

I think the error is generated when a viewer visits the site.
  #6  
Old Apr 16, 2019, 12:11 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Dec 17, 2019, 04:25 AM
aharonium
 
7 posts · Dec 2013
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.
  #8  
Old Dec 27, 2019, 01:34 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Once again do you know what you are doing when that occurs?
What plugins do you have active?
What version of WordPress?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Jan 1, 2020, 01:24 AM
aharonium
 
7 posts · Dec 2013
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.
  #10  
Old Jan 3, 2020, 04:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Glad you figured it out!
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
css.php, php error, php warning

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: call_user_func_array() georgenoise Installation/Upgrade Issues 3 Apr 15, 2019 08:37 AM
PHP warning help please... webmom Header configuration & styling 9 Aug 11, 2014 06:35 PM
Warning in php code carpin Montezuma Theme 12 Dec 20, 2012 06:21 PM
How to change dashed lines into solid lines? simple23227 Atahualpa 3 Wordpress theme 1 Nov 18, 2012 10:57 AM


All times are GMT -6. The time now is 04:33 AM.


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