Is this line in your config.php?
define(‘WP_DEBUG_DISPLAY’, false);
Laurena
Thread Starter
KLyne
(@klyne)
Hi Laurena
Thanks for your reply!
Yes, I see that in my webroot / wordpress / wp-config.php
Am I even looking in the right spot? I’m on my web host provider, under the control panel in file manager…
Any other thoughts? Pulling out hair over here…
Kristina
Thread Starter
KLyne
(@klyne)
Hi Laurena
Thanks for your reply!
Yes, I see that in my webroot / wordpress / wp-config.php
Am I even looking in the right spot? I’m on my web host provider, under the control panel in file manager…
Any other thoughts? Pulling out hair over here…
Kristina
Yes… there are a couple of ways to turn off display errors. You are in CPanel… can you see a php.ini in your root folder?
Here is an interesting link about your error… I’m guessing it is right in your theme. Have you checked in with the theme vendor? Assuming you are right updated. Is this a new error? https://make.ww.wp.xz.cn/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/
Thread Starter
KLyne
(@klyne)
Yes – there is a php.ini in my root folder.
Yes – this is a new error…it happened right after I upgraded my theme a few days ago.
No, I haven’t checked with the theme vendor. I’m on holidays and on a laptop so I don’t have all my purchase details on this computer AND of course CANNOT remember all the passwords, etc. to get their technical support.
I did read that article link you attached (thank you!) and did add:
@ini_set
into the wp-conf.php as well as the php.ini (caused error message and no data/images etc. appeared on my site).
I am questioning the wp-conf.php as it seems to be mostly green notes from the author…and doesn’t look like the html above but rather more css script. (From my limited knowledge).
From my original Warning message…I have finally tracked down and see line 1210 in webroot / wp-includes / wp-db.php
But don’t know what to do to correct it…
I would guess your top goal right now would be to shut of the display_errors! That will at least hide the error message (that isn’t necessarily interfering with functionality) until it can be repaired.
In your php.ini, is there anything about display_errors or error reporting? Try changing it to
display_errors = off
or adding that line in, if it is not there?
And btw, wp-config.php can appear the way you described. This doesn’t sound like a wp-config issue. It’s likely an error being thrown by the theme update and will likely be solved by the vendor, eventually.
Thread Starter
KLyne
(@klyne)
I agree, my main goal is to hide that warning.
There is nothing in the ini.php re: display errors. I added the line in. Nothing happens.
Any other ideas?
Stubborn!
Ok, to double check your current settings (so we aren’t chasing ghosts), you could do php info as per these instructions:
http://www.inmotionhosting.com/support/website/php/create-phpinfo-page-to-see-php-settings
That will help to confirm that display errors are actually turned on and we are on the right track.
Thread Starter
KLyne
(@klyne)
OK…resolved by a design/coding whiz (thank you Luis!)
edited php in:
wp-config.php
//define('WP_DEBUG', false);
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);