Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

What causes this error, PHP Notice: Use of undefined constant

Discussion in 'General Discussion' started by basketmen, Apr 10, 2015.

  1. basketmen

    basketmen Well-Known Member

    Joined:
    Sep 9, 2010
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    66
    I just moved to new host
    In this new host i always got error_log, even with this simple php file :
    PHP:
    <?php define(Y,120); ?>
    this is the error_log content:

    i can add single quote wrapping the Y like this to fix it
    PHP:
    <?php define('Y',120); ?>
    but there are a lot of code like that, it is better if i dont need to change the files,
    but just change the hosting required, what is it actually? is it because using litespeed?

    in old hosting there is cgi-fcgi information cgi-fcgi.jpg

    in new hosting is using litespeed
    litespeed.jpg
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice