Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php error on check-out


Luki_be

Recommended Posts

Posted

I'm trying oscommerce out but when i check out after a buy i get a blank page with following php error:

 

Warning: payment(includes/modules/payment/cod.php): failed to open stream: No such file or directory in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 39

 

Warning: payment(includes/modules/payment/cod.php): failed to open stream: No such file or directory in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 39

 

Warning: payment(): Failed opening 'includes/modules/payment/cod.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 39

 

Fatal error: Cannot instantiate non-existent class: cod in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 41

 

Can somebody point me out on how to correct it? Probably a wrong path but i can't figure out where to adjust is.

 

TIA

Posted

This is an easy on just comment out line 39 of the payment.php file and your problem will be fixed.

 

I'm trying oscommerce out but when i check out after a buy i get a blank page with following php error:

 

Warning: payment(includes/modules/payment/cod.php): failed to open stream: No such file or directory in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 39

 

Warning: payment(includes/modules/payment/cod.php): failed to open stream: No such file or directory in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 39

 

Warning: payment(): Failed opening 'includes/modules/payment/cod.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 39

 

Fatal error: Cannot instantiate non-existent class: cod in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 41

 

Can somebody point me out on how to correct it? Probably a wrong path but i can't figure out where to adjust is.

 

TIA

Posted
This is an easy on just comment out line 39 of the payment.php file and your problem will be fixed.

 

Well, not for me lol:

 

here's the code:

for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {

include(DIR_WS_LANGUAGES . $language . '/modules/payment/' . $include_modules[$i]['file']);

include(DIR_WS_MODULES . 'payment/' . $include_modules[$i]['file']);

 

$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];

 

If i comment out the include(DIR_WS_MODULES . 'payment/' . $include_modules[$i]['file']);

i get the same error for the other include. Commenting out that one to i get:

Fatal error: Cannot instantiate non-existent class: authorizenet in /home/www/dzinelab/projects/ecommerce/catalog/includes/classes/payment.php on line 41

 

line 41 is the $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];

 

Commenting that one out leaves me with a loop: the same page get's loaded everytime.

Posted
This is an easy on just comment out line 39 of the payment.php file and your problem will be fixed.

don't mislead people, as the php error shows only failed to open stream: No such file or directory in

 

 

 

seems to me missing file:

include(DIR_WS_LANGUAGES . $language . '/modules/payment/' . $include_modules[$i]['file']);

include(DIR_WS_MODULES . 'payment/' . $include_modules[$i]['file']);

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted
don't mislead people, as the php error shows only failed to open stream: No such file or directory in

seems to me missing file:

include(DIR_WS_LANGUAGES . $language . '/modules/payment/' . $include_modules[$i]['file']);

include(DIR_WS_MODULES . 'payment/' . $include_modules[$i]['file']);

 

tnx for the response but is there any way to know which file is missing then?

 

TIA

Posted
tnx for the response but is there any way to know which file is missing then?

 

TIA

 

Yes there is...if you have a backup copy on your computer, open the same file you want to check and go line by line and see if there is anything different, or just copy over that file and replace it with that one. Make sure you back up the one you are using though just incase. I have had to do this a few times myself. I have the complete osCommerce.zip file on my computer, and when something goes bad or I do something stupid by not backing up something first, I always have a way to correct it with my orginal back up. This may be the hardest way, but you may find what your looking for.

 

Thanks

 

Mike

Posted
Yes there is...if you have a backup copy on your computer, open the same file you want to check and go line by line and see if there is anything different, or just copy over that file and replace it with that one. Make sure you back up the one you are using though just incase. I have had to do this a few times myself. I have the complete osCommerce.zip file on my computer, and when something goes bad or I do something stupid by not backing up something first, I always have a way to correct it with my orginal back up. This may be the hardest way, but you may find what your looking for.

 

Thanks

 

Mike

 

Yo Mike, i did save the zip file to my laptop and did a compare check with Winmerge. This came up with no faults. Just to make sure i acopied the original file over the old one... which gives me more errors of missing files lol.

 

All this started after adding the portuguese language to OS... maybe i should do a clean install (again)

Posted
Yo Mike, i did save the zip file to my laptop and did a compare check with Winmerge. This came up with no faults. Just to make sure i acopied the original file over the old one... which gives me more errors of missing files lol.

 

All this started after adding the portuguese language to OS... maybe i should do a clean install (again)

 

Problem solved: uploaded wrong file.... Mike's trick did work at all :-)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...