From: SourceForge.net <no...@so...> - 2005-08-03 00:05:27
|
Bugs item #1249459, was opened at 2005-08-01 21:42 Message generated for change (Comment added) made by angek You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108956&aid=1249459&group_id=8956 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: User Group: v1.7 Status: Open Resolution: None Priority: 5 Submitted By: Gavin Treadgold (gtreadgold) Assigned to: Nobody/Anonymous (nobody) Summary: Fatal error in espdatalib.inc on line 133 Initial Comment: I've create a survey, and create a php template as per instructions in handler-prefix.php. I've removed the trailing spaces/newlines on a couple of files but I still get the following error. Fatal error: Call to a member function on a non-object in /home/.../public_html/surveys/admin/include/lib/espdatalib.inc on line 133 phpESP.inc.php has been configured with $ESPCONFIG['base_url'] = $ESPCONFIG['proto'] . $server['HTTP_HOST'] . '/surveys/'; This is the current 1.7.5 version. ---------------------------------------------------------------------- >Comment By: Kon Angelopoulos (angek) Date: 2005-08-03 10:05 Message: Logged In: YES user_id=198398 had a quick look and I believe the problem lies in the db_qstr() where it is assumed that $cfg['adodb_conn'] is set. Can you please add this: if (!isset($cfg['adodb_conn'])){ esp_init_adodb(); } just before the line: $result = $cfg['adodb_conn']->qstr($data); and let us know if it corrects the problem. ---------------------------------------------------------------------- Comment By: Gavin Treadgold (gtreadgold) Date: 2005-08-01 21:50 Message: Logged In: YES user_id=840967 I forgot to note, survey works fine through the default access method... http://hostname/surveys/public/survey.php?name=surveyname Its only when trying to insert in a template that the error occurs. handler-prefix is first line, and handler is at appropriate point in template. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108956&aid=1249459&group_id=8956 |