pldtm Posted December 1, 2004 Share Posted December 1, 2004 hello, I've just install the recent snapshot 12/11/2004 and 30/11/2004 for a test and for me it's the same : all modules (in admin menu modules). here are the message : Fatal error: Call to undefined function: tep_db_query() in d:\wamp\www\osc\catalog\catalog\includes\modules\payment\authorizenet.php on line 486 Fatal error: Call to undefined function: tep_db_query() in d:\wamp\www\osc\catalog\catalog\includes\modules\shipping\flat.php on line 69 Fatal error: Call to undefined function: tep_db_query() in d:\wamp\www\osc\catalog\catalog\includes\modules\order_total\ot_loworderfee.php on line 58 just installed and i looked the admin side to see if all is ok. Any help needed if you had it and found why. I have another site (oldrer) and it's ok thanks :'( PL DTM ----------------------------------------- Sur un malentendu, ... ?a pourrait marcher Link to comment Share on other sites More sharing options...
peterr Posted December 2, 2004 Share Posted December 2, 2004 Hi, Have you done a search on all the source code to see if you can find: function tep_db_query I have another site (oldrer) and it's ok<{POST_SNAPBACK}> the function 'tep_db_query' is usually defined in /includes/functions/database.php If you are using a snapshot, were not all the "tep_" functions to be renamed ?? (I'm not clear on this). If so, then try searching (in the snapshot source) for ......... function db_query Peter Link to comment Share on other sites More sharing options...
pldtm Posted December 2, 2004 Author Share Posted December 2, 2004 it seems it is not rewrited yet. but i'm not goot enough to say it or to rewrite it thanks pldtm :'( PL DTM ----------------------------------------- Sur un malentendu, ... ?a pourrait marcher Link to comment Share on other sites More sharing options...
pythonicavocado Posted December 7, 2004 Share Posted December 7, 2004 me too. I got my version from CVS just now, and find that I get this error: Fatal error: Call to undefined function: tep_db_query() in /Library/WebServer/Documents/shop/includes/modules/payment/authorizenet.php on line 486 I must say it is rather hard for a python programmer to understand PHP. Namespaces are a honking great idea. PHP should use them. :-) Should we file a bug report on this, or is someone working on it already? Link to comment Share on other sites More sharing options...
pythonicavocado Posted December 7, 2004 Share Posted December 7, 2004 I see there is a bug report for this already. And this CVS commit message shows you how to fix this problem: http://www.oscommerce.com/archive/tep_comm...04/11/1860.html You need to switch to their new global Database object: instead of using tep_db_query, use: global $osC_Database; $osC_Database->simpleQuery() Details are left as an exercise for the reader. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.