Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Joomla Virtuemart Template - DarkMart (SKU# FLEX-00011)

TOPIC: shopping car errors

shopping car errors 11 years 1 month ago #3039

your support help me a lot with back end issues I had , I thought everything was running as normal but when I ad items to the shopping , the shopping car ends with several errors

like this one Warning: Creating default object from empty value in /homepages/28/d457121182/htdocs/plugins/system/vm2_cart/vm2_cart.php on line 61

Strict Standards: Non-static method VirtueMartModelCustomfields::CustomsFieldCartModDisplay() should not be called statically, assuming $this from incompatible context in /homepages/28/d457121182/htdocs/plugins/system/vm2_cart/vm2_cart.php on line 82

and another 7 more here is the link

yolacollection.com/index.php?option=com_virtuemart&view=cart

thanks!
EXCELLENT SUPPORT!!
The administrator has disabled public write access.

shopping car errors 11 years 1 month ago #3044

Hi Alfredo,

These are just php warnings - meaning they are are shown by the php engine to asist developers.

But for a production site your php reporting is set much too high.

Please check your Joomla config error reporting setting but it also can be set by your host in the server php.ini.

the setting should be only show errors (these that are showing are warnings)
Some are the warnings are from Core VM files ....

If this doesn't solve it (it should) then you can add this line of code in the offending files just after the access line.
So files:
plugins/system/vm2_cart/vm2_cart.php
templates/flexible_darkmart/html/mod_vm2cart/default.php
templates/flexible_darkmart/html/com_virtuemart/cart/default_pricelist.php
administrator/components/com_virtuemart/helpers/vmtable.php

at the top of each is
defined('_JEXEC') or 	die( 'Direct Access to ' . basename( __FILE__ ) . ' is not allowed.' ) ;

add beneath so it looks like
//Report runtime errors
error_reporting(E_ERROR);
 

but the real solution as I say is turn dobe your reporting - having it at this level is pointless..

Regards,

John
Last Edit: 11 years 1 month ago by John.
The administrator has disabled public write access.

shopping car errors 11 years 1 month ago #3047

Thanks for your help I did change the settings but didn't work also into joomla global setings , all I did is set up the server from 5.4 to 5.3 and it did the trick now works perfectly

thanks a lot for your time & help ! you guys rock!
The administrator has disabled public write access.

shopping car errors 11 years 1 month ago #3048

Thanks for the kind words!

Strange the reporting didn't go down (did you try the error_reporting(E_ERROR); in the individual files?)

Perhaps the php reporting has been set higher in your php5.4?

Regards,

John
The administrator has disabled public write access.
Time to create page: 0.058 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo