Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Downloads Controller Problem among other fatal errors


airolg

Recommended Posts

I have been reading this forum for 12 hours now, and I found Ian's loaded files and all the fixes and installed them (I hope). Then I downloaded Linda's latest Downloads Controller 5.3 and the PayPal IPN add-on and the Easy Populate add-on.

 

I have three problems that are keeping me awake. <grin> Hope someone is awake that can help.

 

If a buyer tries to log in, this fatal error appears:

 

Fatal error: Cannot redeclare downloads_controller_orders_status() (previously declared in /user/blah blah blah/httpsdocs/catalog/includes/functions/downloads_controller.php:20) in /usr/blah blah blah/httpsdocs/catalog/includes/functions/downloads_controller.php on line 19

 

I take it that it's installed twice? How do I find out where to eliminate one? Or am I off base on this?

 

 

In the Admininstrator screen, I click on "Payments" and I get this fatal error:

 

Fatal error: Call to undefined function: tep_get_free_charger() in /usr/blha blah blah /httpdocs/catalog/includes/modules/payment/freecharger.php on line 25

 

Which states:

 

$this->enabled = ((MODULE_PAYMENT_FREECHARGER_STATUS == 'false') ? true : false);

 

Should this be true? Or did I not do something somewhere??

 

Then I got this warning:

 

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/blah blah blah/httpdocs/catalog/admin/categories.php on line 14

 

Fatal error: Failed opening required 'includes/functions/categories_description.php' (include_path='.:/usr/local/psa/apache/lib/php') in /usr/blah blah blah/httpdocs/catalog/admin/categories.php on line 14

 

So, should I just start over? I had it working about 12 hours ago, but without the bells and whistles. Is there anyone out there that has encountered these problems and is willing to help, comment or guess a solution? Or just point me in the right direction; I'm willing to research them. Should I start chipping away at removing the add-ons?

 

Thanks for any and all help. I've learned so much through the search, like how to process an .sql file, and I do appreciate this forum, but none of the search terms I used had any help with my error scenarios.

 

Thanks...

Link to comment
Share on other sites

tep_get_free_charger is not part of Downloads Controller v5.3 and is not in the file:

 

/includes/modules/payments/freecharger.php

 

Check and see if you have the old version in there rather than the new version.

 

There are no more IF statements around the $this->enabled= line in the modules for v5.3

Link to comment
Share on other sites

I didn't mean to imply the problems were all associated with the Download Controller 5.3, sorry. I did download the Free Shipping 5.0, as well.

 

In the Admininstrator screen, I click on "Payments" and I get this fatal error:

 

Fatal error: Call to undefined function: tep_get_free_charger() in /usr/blha blah blah /httpdocs/catalog/includes/modules/payment/freecharger.php on line 25

 

Here's this section of the code--which includes an if statement. Is there a later version than 5.0?

 

// BOF: WebMakers.com Added: Free Payments and Shipping

if ( tep_get_free_charger($this->code) ) {

$this->enabled = ((MODULE_PAYMENT_FREECHARGER_STATUS == 'false') ? true : false);

$payment='freecharger';

}

// EOF: WebMakers.com Added: Free Payments and Shipping

 

Am I looking in the wrong place?

Link to comment
Share on other sites

I didn't mean to imply the problems were all associated with the Download Controller 5.3, sorry. I did download the Free Shipping 5.0, as well.

 

In the Admininstrator screen, I click on "Payments" and I get this fatal error:

 

Fatal error: Call to undefined function: tep_get_free_charger() in /usr/blha blah blah /httpdocs/catalog/includes/modules/payment/freecharger.php on line 25

 

Here's this section of the code--which includes an if statement. Is there a later version than 5.0?

 

// BOF: WebMakers.com Added: Free Payments and Shipping

if ( tep_get_free_charger($this->code) ) {

$this->enabled = ((MODULE_PAYMENT_FREECHARGER_STATUS == 'false') ? true : false);

$payment='freecharger';

}

// EOF: WebMakers.com Added: Free Payments and Shipping

 

Am I looking in the wrong place?

 

Downloads Controller v5.3 has the Free Shipping and Payment Modules and is newer than the Free Shipper v5.0

 

The two are confusing one another.

 

Get rid of Free Shipper and Payment v5.0 and just use the Downloads Controller v5.3

 

None of the shipping or payment modules need that IF around the $this->enabled

 

That is most of your problem is crossing the two add-ons. One is for one version of oscommerce and one is for the MS1 and newer snapshots (Downloads Controller v5.3)

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...