VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: davidC on September 19, 2013, 16:29:10 PM

Title: Error when changing shipment method or payment method
Post by: davidC on September 19, 2013, 16:29:10 PM
Hello,

I got this message on a Joomla 2.5.11 with a VM 2.0.22c, when I change shipment method or payment method on the cart in the shop :

Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "VmImage" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in .../components/com_virtuemart/views/cart/tmpl/default_pricelist.php on line 144

Someone to help me?
Thanks
Title: Re: Error when changing shipment mode or payment mode
Post by: davidC on September 20, 2013, 09:48:42 AM
I activate the VM debugging and I see a weird thing in the object $this->cart->products :

          [image] => __PHP_Incomplete_Class Object
                (
                    [__PHP_Incomplete_Class_Name] => VmImage




Title: Re: Error when changing shipment mode or payment mode
Post by: Milbo on September 21, 2013, 11:43:49 AM
"when I change shipment mode or payment mode on the front office :"

I am sorry, what do you mean with mode? and what do you mean with front office. Do you mean the checkout?
Title: Re: Error when changing shipment mode or payment mode
Post by: davidC on September 23, 2013, 10:16:17 AM
Hello,

I'm sorry for my english.
I'm talking about the payment and shipment methods.
And the problem appears when I am on the cart of my shop.
I click on Choose the shipment method and when I validate my choice.
I obtain the error. I made a screen capture.

Thanks


[attachment cleanup by admin]
Title: Re: Error when changing shipment method or payment method
Post by: davidC on September 30, 2013, 16:07:48 PM
Am I the only one who encounter this issue ?
Title: Re: Error when changing shipment method or payment method
Post by: Milbo on October 01, 2013, 11:40:50 AM
What is your max_memory and which payment plugins do you use?
Title: Re: Error when changing shipment method or payment method
Post by: w2kr on May 07, 2014, 07:16:19 AM
I'll getting a similar error see below
It happens when on the cart you are trying to select the payments.  I have two payment setup.  Paypal and VM standard.

After the error occurs you can refresh the site go back to the cart and the selected payment method is now selected.

I have these two setting in the .htaccess to increase the memory and confirmed that it has taken effect via the joomla -> system information > php settings.
php_value max_execution_time 512
php_value memory_limit 256M

One other bit of information is that this has just started happening and no software changes were happening to the site.

Fatal error: main() [<a href='function.main'>function.main</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;VmImage&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/eco21378/public_html/templates/eco/html/com_virtuemart/cart/default_pricelist.php on line 272

Running joomla 2.5.17 and Virtuemart 2.0.20b