Cron log php notices

Discussion in 'Installation/Configuration' started by pawan, Apr 2, 2012.

  1. pawan

    pawan Member

    in my /var/log/ispconig
    there are lots of log files created like cron.log1.gz, corn.log4.gz etc.

    the contents of the file shows lots of php notices:
    Code:
    PHP Notice:  Constant ISPC_APP_TITLE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 58
    PHP Notice:  Constant ISPC_APP_VERSION already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 59
    PHP Notice:  Constant DEVSYSTEM already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 60
    PHP Notice:  Constant DB_TYPE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 73
    PHP Notice:  Constant DB_HOST already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 74
    PHP Notice:  Constant DB_DATABASE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 75
    how I should address this please help.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check your php,ini files, especially the cli/php.ini and set the error reporting level to:

    E_ALL & ~E_NOTICE
     
  3. pawan

    pawan Member

    I have set the error reporting level in apach2/php.ini and cli/php.ini
    as
    PHP:
    error_reporting E_ALL & ~E_NOTICE
    The content of the log file after adding the error reporting is like this:

    Code:
    expr: syntax error
    PHP Notice:  Constant ISPC_APP_TITLE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 58
    PHP Notice:  Constant ISPC_APP_VERSION already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 59
    PHP Notice:  Constant DEVSYSTEM already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 60
    PHP Notice:  Constant DB_TYPE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 73
    PHP Notice:  Constant DB_HOST already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 74
    PHP Notice:  Constant DB_DATABASE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 75
    PHP Notice:  Constant DB_USER already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 76
    PHP Notice:  Constant DB_PASSWORD already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 77
    PHP Notice:  Constant DB_CHARSET already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 78
    PHP Notice:  Constant ISPC_ROOT_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 93
    PHP Notice:  Constant ISPC_LIB_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 94
    PHP Notice:  Constant ISPC_CLASS_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 95
    PHP Notice:  Constant ISPC_WEB_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 96
    PHP Notice:  Constant ISPC_THEMES_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 97
    PHP Notice:  Constant ISPC_WEB_TEMP_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 98
    PHP Notice:  Constant ISPC_CACHE_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 99
    PHP Notice:  Constant ISPC_LOG_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 100
    PHP Notice:  Constant FS_DIV already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 109
    PHP Notice:  Constant SERVER_ROOT already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 110
    PHP Notice:  Constant INCLUDE_ROOT already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 111
    PHP Notice:  Constant CLASSES_ROOT already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 112
    PHP Notice:  Constant LOGLEVEL_DEBUG already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 165
    PHP Notice:  Constant LOGLEVEL_WARN already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 166
    PHP Notice:  Constant LOGLEVEL_ERROR already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 167
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you use a file /usr/local/ispconfig/server/lib/config.inc.local.php which defines constants from /usr/local/ispconfig/server/lib/config.inc.php gaian. Please remove all constant definitions from /usr/local/ispconfig/server/lib/config.inc.local.php
     
  5. pawan

    pawan Member

    Thanks Till, I removed everything from /usr/local/ispconfig/server/lib/config.inc.local.php and all the errors relating to constants is gone, but I am still getting some errors mainly

    Code:
    expr: syntax error
    expr: syntax error
    expr: syntax error
    expr: syntax error
    expr: syntax error
    and this errors comes up in log every minute. where should I look for this?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I have no idea from which file they come. Have you added or edited any source files from ispconfig? I just ask as I dont see these errors on my installations.
     
  7. pawan

    pawan Member

    Thank you so much. I am not sure about the modification.
    I will look in to it and report the source of the problem once located.
     

Share This Page