I see lots of: Notice: Use of undefined constant/variable messages

From PhpCOIN Documentation

Jump to: navigation, search

Due to a change of requirements between php versions, it became necessary to define and/or initialize all the constants and variables used in php. It is unlikely that the developers will make the necessary code changes to phpCOIN v1.x.x.

If you start to see lots of error messages on screen or in your log files eg.

Notice: Use of undefined constant _HC_PKG_LANG - assumed '_HC_PKG_LANG' in 
~\phpcoin\config.php on line 52 Notice: Use of undefined constant _DB_PKG_LANG_ENABLE - assumed '_DB_PKG_LANG_ENABLE' in
~\phpcoin\config.php on line 53 Notice: Use of undefined constant _HC_PKG_THEME - assumed '_HC_PKG_THEME' in
~\phpcoin\config.php on line 64 Notice: Use of undefined constant _DB_PKG_THEME_ENABLE - assumed '_DB_PKG_THEME_ENABLE'
in ~\phpcoin\config.php on line 65 Notice: Undefined variable: _CONFIGGED in ~\phpcoin\config.php on line 76 Notice: Use of undefined constant URL - assumed 'URL' in ~\phpcoin\config.php on line 137 Notice: Use of undefined constant URL - assumed 'URL' in ~\phpcoin\config.php on line 138 Notice: Use of undefined constant _HC_PKG_THEME - assumed '_HC_PKG_THEME' in
~\phpcoin\config.php on line 140 Notice: Use of undefined constant _HC_PKG_THEME - assumed '_HC_PKG_THEME' in
~\phpcoin\config.php on line 141 Notice: Use of undefined constant DIR - assumed 'DIR' in ~\phpcoin\config.php on line 146 Notice: Use of undefined constant _HC_PKG_LANG - assumed '_HC_PKG_LANG' in
~\phpcoin\config.php on line 153 etc etc etc

The work-round to this issue is to change the php.ini settings from

error_reporting = E_ALL 

to

error_reporting = E_ALL & ~E_NOTICE

You may also want to switch off on-screen reporting as this should really only be used for development/debugging purposes, and is commonly disabled on forward facing production servers.

Personal tools

Inscrita el Registro Mercantil de Mallorca Tomo 2140, Hoja No. PM-51034, Folio 135
This website owned and operated by: Technology Services RPVW S.L. CIF# B57345084
Avda Constitucion 48 Bajos Alaro 07340 Baleares SPAIN
Tel:+34 971518362    Fax: +34 971518368    eMail: support@phpcoin.com