brewtzaff Posted June 28, 2006 Posted June 28, 2006 Hello again, once again I've got a problem, which I couldn't fix with the different solutions found on the www.... :( So, when I change the order status (admin/orders.php) from what ever to an other, I get this error: Fatal error: Cannot redeclare tep_db_connect() (previously declared in D:\web\xampp\htdocs\oscom\catalog\admin\includes\functions\database.php:13) in D:\web\xampp\htdocs\oscom\catalog\admin\includes\functions\database.php on line 25 I tried to upload a fresh copy of the admin dir, but this didn't change anything.... Any good idea? Here is my database.php (-> line 25) function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } if ($$link) mysql_select_db($database); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysql_close($$link); } Cheers Brewtzaff
adsoma Posted June 28, 2006 Posted June 28, 2006 I have the same problem...did you fix already??? IF YES!!! PLEASE TELL ME HOW!! regards Adrian Soltero
adsoma Posted June 28, 2006 Posted June 28, 2006 Hello again, once again I've got a problem, which I couldn't fix with the different solutions found on the www.... :( So, when I change the order status (admin/orders.php) from what ever to an other, I get this error: Fatal error: Cannot redeclare tep_db_connect() (previously declared in D:\web\xampp\htdocs\oscom\catalog\admin\includes\functions\database.php:13) in D:\web\xampp\htdocs\oscom\catalog\admin\includes\functions\database.php on line 25 I tried to upload a fresh copy of the admin dir, but this didn't change anything.... Any good idea? Here is my database.php (-> line 25) function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } if ($$link) mysql_select_db($database); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysql_close($$link); } Cheers Brewtzaff I have the same problem...did you fix already??? IF YES!!! PLEASE TELL ME HOW!! regards Adrian Soltero
OceanRanch Posted June 28, 2006 Posted June 28, 2006 http://www.oscommerce.info/kb/osCommerce/G...on_Problems/198 Tom
brewtzaff Posted June 28, 2006 Author Posted June 28, 2006 http://www.oscommerce.info/kb/osCommerce/G...on_Problems/198 Tom Thanks Tom, but the kb describes the prob like this: ...The following error message is shown when a main code file has been uploaded to the languages directory by accident. And as I said, I delete the admin folder completely, and put it back, but w/o positif result.... -> adsoma: No still the same sh... brewtzaff
adsoma Posted June 28, 2006 Posted June 28, 2006 Thanks Tom, but the kb describes the prob like this: ...The following error message is shown when a main code file has been uploaded to the languages directory by accident. And as I said, I delete the admin folder completely, and put it back, but w/o positif result.... -> adsoma: No still the same sh... brewtzaff I fixed.....thanks bye
Guest Posted June 28, 2006 Posted June 28, 2006 I've installed OSC and followed all the steps included in the install guide and I've come up with this error when trying to view the index page in the catalog. Warning: main(includes/application_top.php): failed to open stream: No such file or directory in /home/darkwer/public_html/monsterpawn/catalog/index.php on line 13 Warning: main(includes/application_top.php): failed to open stream: No such file or directory in /home/darkwer/public_html/monsterpawn/catalog/index.php on line 13 Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/darkwer/public_html/monsterpawn/catalog/index.php on line 13 The Admin side seems to be working without a problem. I must have missed something along the way. Has anyone dealt with this error before?
brewtzaff Posted June 29, 2006 Author Posted June 29, 2006 I fixed.....thanksbye Adsoma, could you please tell me how you did? Cheers brewtzaff
brewtzaff Posted June 29, 2006 Author Posted June 29, 2006 Ok, the problem is closed, it was a problem in my email.php modified to use a smtp mod Cheers brewtzaff
nixona Posted July 3, 2006 Posted July 3, 2006 Would you mind sharing the fix with the rest of the class? I've also just installed the SMTP contrib and am getting this error... Ok, the problem is closed, it was a problem in my email.php modified to use a smtp mod Cheers brewtzaff
brewtzaff Posted July 3, 2006 Author Posted July 3, 2006 HI, I used this contrib: http://www.oscommerce.com/community/contributions,901 now I use this one which fixed my problem: http://www.oscommerce.com/community/contributions,4013 Watch out, you need to add a line of code to fix a little problem with yahoo, gmail, etc... Here is the link: http://www.oscommerce.com/forums/index.php?sho...=&st=0& Hope this work for you too Brewtzaff
nixona Posted July 3, 2006 Posted July 3, 2006 OK I installed the contrib you mentioned and I stopped getting the errors. BUT, email is not coming through. I need to put a port in to the smtp settings somehow. I tried myserver.com:80 and then adding $params["port"] = "80"; between the host and auth lines in email.php to no avail. I saw in class.phpmailer and class.smtp where my info could be added, threw it in there and still doesn't work. I'm in a little over my head on this, can anyone help? I'm using a hosting companie's secure smtp server on port 80. I was able to make email work from the catalog side of things (Welcome emails, contact us, etc) but the admin side just isn't going as well. Can anyone help?
Guest Posted July 5, 2006 Posted July 5, 2006 Hi Nixona Sorry that I don't have any help, i'm in the same situation as you. My SMTP server is an exchange server on my LAN, I'm referencing the server by LAN IP address (and exchange username and password format, i.e. username excludes email domain name). I'm trying to figure out a way to debug the class.smtp.php file, but as you, I'm new to PHP. If I find anything I'll post it. Please can you update the post if you come up with anything? Thanks!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.