Resolved

error_log message

Ultra Theme started by TerryMG Feb 9, 2023 3 replies
TerryMG Feb 9, 2023 · 7:57 pm #17198

Hi Andrew,

I just upgraded PHP from 7.4.33 to 8.0.27, and I don’t know if these errors were already in the error_log or not. I don’t see any issue with the site, but I thought I should report this in case there is something that needs to be done. WordPress 6.1.1, Ultra 2.6.4

[09-Feb-2023 19:07:15 UTC] PHP Warning: Trying to access array offset on value of type bool in /home2/foobar/public_html/foobar/wp-content/themes/ultra/inc/template-tags.php on line 124
[09-Feb-2023 19:07:15 UTC] PHP Warning: Trying to access array offset on value of type bool in /home2/foobar/public_html/foobar/wp-content/themes/ultra/inc/template-tags.php on line 125
[09-Feb-2023 19:07:15 UTC] PHP Warning: Trying to access array offset on value of type bool in /home2/foobar/public_html/foobar/wp-content/themes/ultra/inc/template-tags.php on line 126
[09-Feb-2023 19:13:10 UTC] PHP Warning: Trying to access array offset on value of type bool in /home2/foobar/public_html/foobar/wp-content/themes/ultra/inc/template-tags.php on line 124
[09-Feb-2023 19:13:10 UTC] PHP Warning: Trying to access array offset on value of type bool in /home2/foobar/public_html/foobar/wp-content/themes/ultra/inc/template-tags.php on line 125
[09-Feb-2023 19:13:10 UTC] PHP Warning: Trying to access array offset on value of type bool in /home2/foobar/public_html/foobar/wp-content/themes/ultra/inc/template-tags.php on line 126

else {
$image = wp_get_attachment_image_src( $logo, ‘full’ );
124 $src = $image[0];
125 $height = $image[2];
126 $width = $image[1];

Note that this site does NOT have a logo, if that makes any difference.

Note that the other site did not generate this message, same versions of every thing, but it does have a logo.

Andrew Misplon Puro Feb 10, 2023 · 9:02 pm #17199

Hi Terry

Thanks for getting in touch. Please, try deleting the debug.log file and let me know if the warning occurs again.

Cheers

Andrew

TerryMG Feb 10, 2023 · 10:19 pm #17200

Hi Andrew,

I can’t find the debug.log file – what directory would I find that in?

Andrew Misplon Puro Feb 11, 2023 · 9:09 am #17201

Hi Terry

WP_DEBUG_LOG can be added and set to true in your wp-config.php file.

https://wordpress.org/documentation/article/debugging-in-wordpress/

No worries, though; I misread your initial message. Please, let me know if the warning occurs again in your error_log. I take it you’re looking at your hosting PHP error log?

Thanks!

4 posts
Closed This topic is closed to new replies. Still stuck? Start a new topic in Ultra Theme.