- This topic has 3 replies, 2 voices, and was last updated 1 year, 9 months ago by Andrew Misplon.
Tagged: error_log template-tags.php
- AuthorPosts
- February 9, 2023 at 7:57 pm #17198
TerryMGParticipantHi 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 126else {
$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.
February 10, 2023 at 9:02 pm #17199
Andrew MisplonKeymasterHi Terry
Thanks for getting in touch. Please, try deleting the debug.log file and let me know if the warning occurs again.
Cheers
Andrew
February 10, 2023 at 10:19 pm #17200
TerryMGParticipantHi Andrew,
I can’t find the debug.log file – what directory would I find that in?
February 11, 2023 at 9:09 am #17201
Andrew MisplonKeymasterHi Terry
WP_DEBUG_LOG
can be added and set to true in your wp-config.php file.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!
- AuthorPosts
The topic ‘error_log message’ is closed to new replies.