CB 2 PHP Error in Apache Error Log

csgo

Verified User
Joined
Feb 29, 2012
Messages
47
I have a LOT of the following errors in the Apache Error Log:

"PHP: syntax error, unexpected '&' in /usr/local/lib/php.ini on line 112"

Line 112 of php.ini is: Production Value: E_ALL & ~E_DEPRECATED

Here is the section of PHP.INI involved:

; error_reporting
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
Production Value: E_ALL & ~E_DEPRECATED

I uncommented out the "Production Value" line because many customers were getting error messages showing up on their websites, but I didn't change any of the text... just uncommented out the line. It fixes the customers problems but throws the syntax error in the Apache Error Log.

Anyone have any idea why?

Thanks,
-Joe
 
You should comment out back that "Production Value:", it's not the variable, it's only an explanation.

Your error logging should be enabled in line:
error_reporting = E_ALL & ~E_DEPRECATED



 
It is not a setting, please comment out "Production Value" line again to solve your problem. error_reporting is the setting name you're probably looking for.
 
Back
Top