Project

General

Profile

Actions

Bug #212

closed

php_mrc module

Added by Gabriel Lander over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Eric Hou
Category:
Web interface
Target version:
-
Start date:
03/16/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
Show in known bugs:
Workaround:

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?


Related issues 1 (0 open1 closed)

Related to Leginon - Bug #669: php MRC module does not work with php version greater than 5.2Duplicate06/16/2010

Actions
Actions #1

Updated by Eric Hou over 14 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

Actions #2

Updated by Eric Hou over 14 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.

Actions #3

Updated by Eric Hou over 14 years ago

  • Status changed from Assigned to Closed

This problem should be solved.

Actions

Also available in: Atom PDF