[Resolved] error_log message

  • Author
    Posts
  • #17198

    TerryMG
    Participant

    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.

    #17199

    Andrew Misplon
    Keymaster

    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

    #17200

    TerryMG
    Participant

    Hi Andrew,

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

    #17201

    Andrew Misplon
    Keymaster

    Hi Terry

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

    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!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘error_log message’ is closed to new replies.

Scroll to top