If this is your first visit, check our documentation. To post, register or login.
Forums / PayPal Express Checkout support / Received error after patch installed

Received error after patch installed

Locked

Started by iang000 on 3 May 2007, 5:54 AM · Views: 1,736

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
3 May 2007, 5:54 AM
#1
iang000 avatar

iang000

New Zenner

Join Date:
May 2007
Location:
Los Angeles
Posts:
63
Plugin Contributions:
0

Received error after patch installed

I uploaded the new patch for Paypal and when I tried to go to the admin module for payments I get this error:

Cannot redeclare class paypal in /data/14/1/76/6/1239332/user/1321401/htdocs/zencart/catalog/includes/modules/payment/paypal.php on line 23

Do I need to re-upload the patch?

3 May 2007, 3:22 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Received error after patch installed

Try reloading the patch ...

Make sure that you did not rename the old file and leave it there as these are self-loading directories ...

If you want to rename a file and leave it, use something like:
paypal.php_OLDFILE

This will prevent a payment module from being loaded twice ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 May 2007, 4:13 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Received error after patch installed

Thanks for the update and glad that you are back on track ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 May 2007, 10:08 PM
#5
designsbymish avatar

designsbymish

New Zenner

Join Date:
Mar 2007
Posts:
7
Plugin Contributions:
0

Re: Received error after patch installed

I'm still receiving this same exact error and I've tried reuploading the most recent patch files (March 17) about three times. I don't see any of the older files either. Also, I don't have Paypal under my payment modules any more? confused

5 May 2007, 2:11 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Received error after patch installed

Most recent PayPal patch is the 21st ...
http://www.zen-cart.com/forum/showthread.php?t=56216

Look in the directory, via FTP of:
/includes/modules/payments

Peek at each file on your server do they each contain a line something like, using moneyorder.php for example:

  class moneyorder {

Peek at each file on your server in the directory:
/includes/languages/english/modules/payments

Do these each contain lines starting with define

Do you have any files that are in the:
/includes/modules/payments

That do not have a match in:
/includes/languages/english/modules/payments

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 May 2007, 7:30 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Received error after patch installed

DesignsByMish:

I'm still receiving this same exact error and I've tried reuploading the most recent patch files (March 17) about three times. I don't see any of the older files either. Also, I don't have Paypal under my payment modules any more? confused

You most likely installed a payment module file into the languages folder instead of the payment module folder.

Make sure you loaded the files to the correct folders as embedded in the patch/zip file.
http://www.zen-cart.com/forum/showthread.php?p=365905#post365905

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 May 2007, 6:32 PM
#8
designsbymish avatar

designsbymish

New Zenner

Join Date:
Mar 2007
Posts:
7
Plugin Contributions:
0

Re: Received error after patch installed

The good news is my shopping cart now works...the bad news is I can't get into my admin panel and am getting this message:

Warning: main() [function.main]: open_basedir restriction in effect. File(/includes/autoload_func.php) is not within the allowed path(s): (/home/****:/usr/lib/php:/usr/local/lib/php:/tmp) in /home//public_html/store/admin/includes/application_top.php on line 147

Warning: main(/includes/autoload_func.php) [function.main]: failed to open stream: Operation not permitted in /home/****/public_html/store/admin/includes/application_top.php on line 147

Warning: main() [function.main]: open_basedir restriction in effect. File(/includes/autoload_func.php) is not within the allowed path(s): (/home/****:/usr/lib/php:/usr/local/lib/php:/tmp) in /home//public_html/store/admin/includes/application_top.php on line 147

Warning: main(/includes/autoload_func.php) [function.main]: failed to open stream: Operation not permitted in /home/****/public_html/store/admin/includes/application_top.php on line 147

Fatal error: main() [function.require]: Failed opening required '/includes/autoload_func.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/****/public_html/store/admin/includes/application_top.php on line 147 I had been attempting to upload this patch that I had also missed before: zen-cart-v1.3.7-xss-patch.zip and that's when my admin panel went down.

I'm going to attempt to upload fresh files from the install package itself and disregard that xss patch. The ********** **are replacing my username.