Bug #212
closedphp_mrc module
0%
Description
Hi all,
I'm not sure who I should direct this question to now that Denis is gone - it has to do with the php_mrc module.
We're trying to move our apache server & database to a new machine, and while we've installed everything in an identical fashion, (latest svn version of myami) the php_mrc module doesn't seem to work properly. The module is installed correctly, it's finding & reading the mrc file fine, but the important function "mrctoimage" doesn't seem to be converting the mrc to an image correctly. It's hard to tell, because we're not sure how to debug something like this.
The only difference between the old and the new machine is that the old machine is intel i386, and the new one is amd x86_64.
Both are running the same OS/distro/mysql/apache2 versions.
We notice this line showing up in the error log hundreds & hundreds of times, but we don't know if it's significant or not:
Notice: Use of undefined constant id - assumed 'id' in
/var/www/myamiweb/inc/viewer.inc on line 104
Notice: Use of undefined constant name - assumed 'name' in
/var/www/myamiweb/inc/viewer.inc on line 106
Notice: Use of undefined constant id - assumed 'id' in
/var/www/myamiweb/inc/viewer.inc on line 109
Notice: Use of undefined constant name - assumed 'name' in
/var/www/myamiweb/inc/viewer.inc on line 110
Any ideas where we can start debugging this?
Updated by Eric Hou almost 15 years ago
- Status changed from New to Assigned
Hi Gabriel!
Different version of php will have different type of Notice. You can turn off the Notice error in PHP.ini.
I think to fix those Notice is to go to those lines and change
$session[id] and $session[name] to $session['id'] and $session['name']
The error was saying id and name are undefined constant. and actually id and name are string in this case. Our version's php does not through out the error.
Thanks.
Eric Hou
Updated by Eric Hou almost 15 years ago
Here is the email from Denis:
Hi Gabe,
This seems to be related to the error reporting setting in php.ini
I know now in the newer PHP release error_reporting = E_ALL
but it should really be set to:
error_reporting = E_ALL & ~E_NOTICE
(show all errors, except coding standards warnings)
-Denis.
Updated by Eric Hou over 14 years ago
- Status changed from Assigned to Closed
This problem should be solved.