PDA

View Full Version : Returning only the photo count from list.php. What does this error message mean?


reiger
16th of October 2006 (Mon), 16:25
Back in July I linked EE1.5 list.php to the genealogy portion of my website. When the gen php displayed details of a person, it also showed the following custom message:
Found [X] photos of this person. Click here to view. (http://www.reigerfamily.com/gallery/list.php?exhibition=all&search_row=all&keyword=I11,):
The custom message was generated from a copy of EE1.5 list.php with all necessary search parameters set, the necessary print lines commented out, and my own print line added. Clicking the link took you to the EE1.5 list.php searching for the individual's keyword. Nothing special. It worked just fine.

Now I've upgraded to EE2.0, and I've upgraded the copy of EE list.php for gen page. I haven't changed anything else on the site except EE. Now I get error messages. Here are the messages I recieve from the gen.php page.
Notice: Only variables should be assigned by reference in ./gen/includes/functions_db.php on line 195
Notice: Only variables should be assigned by reference in ./gen/includes/functions_db.php on line 305
Notice: Undefined index: gedfile in ./gen/includes/functions_name.php on line 290


If I move the require("list.php"); line from its current location to the very end of the ged php file, I get no errors. I don't want the photo link below the footer though. I know this isn't really an EE problem, but something about EE has changed from 1.5 to 2.0. I'd appreciate any insight into what I can do to make EE work better on my gen page. Here's a link to my page showing the errors:

http://www.reigerfamily.com/gen/individual.php?pid=I11&ged=RONREIGER2.GED

Pekka
16th of October 2006 (Mon), 18:21
I think that is because latest versions of PHP 4 do not tolerate referencing issues as they did before. The error means there is simply some buggy code by latest PHP standards. Better contact who wrote the scripts.

That position of include "brings the error visible" is probably due to loss of error_reporting("0") function loosing its scope.

reiger
16th of October 2006 (Mon), 19:26
Thank you for the response, Pekka. And thank you for EE. I love it. I reviewed and installed quite a few gallery apps for choosing EE. And 2.0 was worth the wait!

As far as I know the only thing that has changed on the server has been that I upgraded EE2.0. The error messages started as soon as I upgraded EE.

I'm a php novice. I can only tinker if someone gives me a starting point. Are you saying if I add error control in the genealogy php files that are currently complaining, that should solve the problem?

Pekka
16th of October 2006 (Mon), 19:40
Thank you for the response, Pekka. And thank you for EE. I love it. I reviewed and installed quite a few gallery apps for choosing EE. And 2.0 was worth the wait!

As far as I know the only thing that has changed on the server has been that I upgraded EE2.0. The error messages started as soon as I upgraded EE.

I'm a php novice. I can only tinker if someone gives me a starting point. Are you saying if I add error control in the genealogy php files that are currently complaining, that should solve the problem?

Error control

error_reporting(0);

just hides the error. It does not solve it. You should solve it and understand why it is there, so that it does not break you pages without knowing. See http://www.easysoft.com/support/kb/kb00921.html