Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot redeclare class po


Guest

Recommended Posts

Fatal error: Cannot redeclare class po in /home/jchaters/public_html/catalog/includes/modules/payment/po.php on line 13

 

This is the error I am recieving. I have checked the install twice but I do not have a clue what to do now. Can you help please. Thank You, Jim

What is redeclare class?

Link to comment
Share on other sites

If you look at any of the stock payment modules that come with osC, you will see a line near the top of the file that says something like

 class moneyorder {
   var $code, $title, $description, $enabled;

The error you're receiving usually happens when there are 2 files that are trying to be parsed which have the same "class" name. You should try to find where else the statement "class po" is being made and either remove the unnecessary duplicate from your server or rename one of them.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

If you look at any of the stock payment modules that come with osC, you will see a line near the top of the file that says something like
 class moneyorder {
? ?var $code, $title, $description, $enabled;

The error you're receiving usually happens when there are 2 files that are trying to be parsed which have the same "class" name. You should try to find where else the statement "class po" is being made and either remove the unnecessary duplicate from your server or rename one of them.

 

I have checked as you mentioned and I do not see any of the other payment types with the same class. Do you have any other suggestions? Thank You very much for your time, Jim

Link to comment
Share on other sites

I have checked as you mentioned and I do not see any of the other payment types with the same class. Do you have any other suggestions? Thank You very much for your time, Jim

 

 

I have since removed all the other payment types and I am still recieving this error. Thank You, Jim

Link to comment
Share on other sites

Did you check that one remaining file to see if "class po" appears twice within the same file?

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

if you are developing locally, search for a program named 'Windows GREP' and then use it to find your duplicate code. it is quick and with it you can find anything you need in a matter of seconds . . .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...