Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Fatal error: in vendor_order_data.php


CatDadRick

Recommended Posts

Not sure if this is a PHP5/MySQL5 compatibility issue, but prior to upgrading my server I didn't get this error.

 

When I log on as my test customer and go to Account > Order History and click View to view an order, I get an empty box where the order information should be. In my log file I get this error message...

PHP Fatal error:  Using $this when not in object context in /var/www/catalog/includes/classes/vendor_order_data.php on line 17, referer: https://secure.rlknight.com/account_history.php

 

This is the code (catalog/includes/classes/vendor_order_date.php) at line 17 and immediately after...

	$this->products[$index2] = array('Vid' => $vendor_order['vendors_id'],
									   'Vname' => $vendor_order['vendors_name'],
										'Vmodule' => $vendor_order['shipping_module'],
										'Vmethod' => $vendor_order['shipping_method'],
										'Vcost' => $vendor_order['shipping_cost'],
										'Vship_tax' => $vendor_order['shipping_tax'],
										'Vnoname' => 'Shipper',
										 'spacer' => '-');

 

Can someone help me solve this?

 

Thanks,

Rick

Link to comment
Share on other sites

  • 7 months later...
Not sure if this is a PHP5/MySQL5 compatibility issue, but prior to upgrading my server I didn't get this error.

 

When I log on as my test customer and go to Account > Order History and click View to view an order, I get an empty box where the order information should be. In my log file I get this error message...

PHP Fatal error:  Using $this when not in object context in /var/www/catalog/includes/classes/vendor_order_data.php on line 17, referer: https://secure.rlknight.com/account_history.php

 

This is the code (catalog/includes/classes/vendor_order_date.php) at line 17 and immediately after...

	$this->products[$index2] = array('Vid' => $vendor_order['vendors_id'],
									   'Vname' => $vendor_order['vendors_name'],
										'Vmodule' => $vendor_order['shipping_module'],
										'Vmethod' => $vendor_order['shipping_method'],
										'Vcost' => $vendor_order['shipping_cost'],
										'Vship_tax' => $vendor_order['shipping_tax'],
										'Vnoname' => 'Shipper',
										 'spacer' => '-');

 

Can someone help me solve this?

 

Thanks,

Rick

 

Hey Rick

I'm having the same problem! Did you get any solution yet?

Thanks

Rosie

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