News:

Looking for documentation? Take a look on our wiki

Main Menu

Error when changing shipment method or payment method

Started by davidC, September 19, 2013, 16:29:10 PM

Previous topic - Next topic

davidC

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

davidC

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





Milbo

"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?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

davidC

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]

davidC


Milbo

What is your max_memory and which payment plugins do you use?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

w2kr

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