Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

My host upgraded my site from PHP4 to PHP5 last night. My site started having display problems and I couldn't get into the admin side of my store. I made the updates suggested in

http://www.oscommerce.com/community/contributions,4654

and changing this code in the catalog/admin/includes/classes/upload.php

// self destruct

$this = null;

return false;

}

to:

// self destruct

// $this = null;

unset($this);

 

Only one problem still exists (as far as I know). When I try to go to order details, I get the following error

 

Fatal error: Cannot re-assign $this in store/includes/modules/payment/paypal.php on line 25

 

Line 25 makes reference to

 

// class constructor

function paypal($paypal_ipn_id = '') {

global $order;

if (tep_not_null($paypal_ipn_id)) { // admin ipn info

include_once(DIR_FS_CATALOG_MODULES . 'payment/paypal/classes/ipn_query.class.php');

$this = new ipn_query($paypal_ipn_id);

} else { //catalog payment module

$this->code = 'paypal';

$this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE;

$this->description = MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION;

$this->sort_order = MODULE_PAYMENT_PAYPAL_SORT_ORDER;

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

if ((int)MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) {

$this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID;

}

if (is_object($order)) $this->update_status();

$this->form_paypal_url = 'https://' . MODULE_PAYMENT_PAYPAL_DOMAIN . '/cgi-bin/webscr';

$this->cc_explain_url = tep_href_link('popup_paypal.php', '', 'SSL');

}

}

 

 

Please let me if other changes will need to be made in my Paypay IPN 2.6a installation.

 

Thanks

Posted

After much frustration, I was unable to fix this problem. My host also tried to fix the problem after the PHP5 upgrade and could not. What I ended up doing was upgrading to IPNv3, and after a little debugging, my site is back up and running.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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