Support » Fixing WordPress » Use of undefined constant HEADER_IMAGE_WIDTH

  • Resolved shadez

    (@shadez)


    Hello fellow coders,
    Its been a while i coded in WP, but even then am stumped by this error which just popped up on my website :-

    
    Warning: Use of undefined constant HEADER_IMAGE_WIDTH - assumed 'HEADER_IMAGE_WIDTH' (this will throw an Error in a future version of PHP) in /home/wp-content/themes/AutoNetwork/functions.php on line 56
    
    Warning: Use of undefined constant HEADER_IMAGE_HEIGHT - assumed 'HEADER_IMAGE_HEIGHT' (this will throw an Error in a future version of PHP) in /home/wp-content/themes/AutoNetwork/functions.php on line 56
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/wp-content/themes/AutoNetwork/functions.php:56) in /home/wp-login.php on line 421
    

    How will HEADER_IMAGE_WIDTH be an undefined constant???!!!
    Am debugging. Will try injecting via ftp after removing that line of code maybe.

    Anyways, anybody got any idea wtf happened?
    TIA. Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    PHP is seeing the string HEADER_IMAGE_WIDTH and assuming it’s a constant because it’s in all CAPS but there’s no define('HEADER_IMAGE_WIDTH', somevalue);

    You use a commercial theme/plugin and need support, so please use their official support channel. We feel they are best equipped to support their products.

    http://press75.com/support/

    Commercial products are not supported in these forums. .

    Thanks @sterndata, and happy to see you.
    Its something that stupid ain’t it? And to say i wrote this theme code some 10 years back. But it worked until now. Strange.
    Anyways thanks again and sorry for the trouble.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use of undefined constant HEADER_IMAGE_WIDTH’ is closed to new replies.