Author Topic: Error when changing shipment method or payment method  (Read 1750 times)

davidC

  • Beginner
  • *
  • Posts: 6
Error when changing shipment method or payment method
« 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

davidC

  • Beginner
  • *
  • Posts: 6
Re: Error when changing shipment mode or payment mode
« Reply #1 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





Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Error when changing shipment mode or payment mode
« Reply #2 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?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

davidC

  • Beginner
  • *
  • Posts: 6
Re: Error when changing shipment mode or payment mode
« Reply #3 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]

davidC

  • Beginner
  • *
  • Posts: 6
Re: Error when changing shipment method or payment method
« Reply #4 on: September 30, 2013, 16:07:48 pm »
Am I the only one who encounter this issue ?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Error when changing shipment method or payment method
« Reply #5 on: October 01, 2013, 11:40:50 am »
What is your max_memory and which payment plugins do you use?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

w2kr

  • Beginner
  • *
  • Posts: 31
Re: Error when changing shipment method or payment method
« Reply #6 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