The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,980
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page