VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: info@teldrive.com on November 23, 2015, 00:31:37 AM

Title: Shopper Number / ID:Fatal error: Class 'Permissions'
Post by: info@teldrive.com on November 23, 2015, 00:31:37 AM
VM3.0.12
I have two languages on my web english/spanish,
if i log in VM as spanish side no problem
if i try log into VM with an spanish user on the english side ( for joomla is indifferent but virtuemart generates this error)

User Permissions:   Notice: Undefined index: perms in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/templates/jsn_metro_pro/html/com_virtuemart/user/edit_vmshopper.php on line 50
Shopper Number / ID:   Fatal error: Class 'Permissions' not found in /var/www/vhosts/xxxxxxxxxxxxxx.com/httpdocs/templates/jsn_metro_pro/html/com_virtuemart/user/edit_vmshopper.php on line 61
can anyone help?
Title: Re: Shopper Number / ID:Fatal error: Class 'Permissions'
Post by: GJC Web Design on November 23, 2015, 10:19:21 AM
have you tried with the standard Protostar template?

This fatal is from your template over ride
Title: Re: Shopper Number / ID:Fatal error: Class 'Permissions'
Post by: Milbo on November 23, 2015, 18:53:31 PM
It is an error which shows that the code tries to access very old vm2.0 API (not even vm2.6). You can replace it by
VmAccess::manager()