Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error?


aejeffor

Recommended Posts

Posted

hello all. I am having an issue with a fatal error on my index.php page. I was installing the Puchase without account module when this error occured, so i reverted to my backup, that was fully tested and working when backed up. Unfortunately I get the same error with my backed up OSC files as well.

 

the error is the following:

 

Fatal error: Call to undefined method currencies::calculate_price() in /home/shop/includes/classes/shopping_cart.php on line 272

 

the shoppingcart.php file has not been modified and is the standard osc release file.

 

If anyone has seen this before, i would love some help.

 

 

thanks in advance!

Posted

from your post, you appear to have an extra : in index.php

 

currencies::calculate_price()

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted
from your post, you appear to have an extra : in index.php

 

currencies::calculate_price()

this is an original index.php file that hasnt changed since 2006. how could that be if it hasnt been edited?

Posted

well, i just narrowed it down, though. i turned off the STS module (template system) and the error goes away, so it must be an extra : in one of the templates... i hope

Posted

so i have disabled the STS template system and the error is gone, the page displays, but on the top right under "Shopping Cart" the same error appears now.

 

Any ideas?

Posted

Got it figured out....just an FYI, it was the following was added to the end of the first line in application_top.php

 

this is the original first line:

$Id: application_top.php 1833 2008-01-30 22:03:30Z hpdl $

 

for some readon I had added "$exp" to that line.

 

who knows how or why, but i removed the "exp" and its working again.

 

Thanks for the help sam

Posted

Okay, the error is still there....I thought I had fixed it, but it turns out it only appears when there is an item in the shopping cart and it appears where the subtotal would display normally. So it is having issues calculating the subtotal somehow.

 

Here is the error message again. And it only shows up wherever the subtotal is displayed.

 

Fatal error: Call to undefined method currencies::calculate_price() in /home/username/public_html/shop/includes/classes/shopping_cart.php on line 272

 

Any ideas please?

Archived

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

×
×
  • Create New...