VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: skrettis on August 22, 2013, 02:32:10 AM

Title: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: skrettis on August 22, 2013, 02:32:10 AM
When entring "admin - virtuemart" page: administrator/index.php?option=com_virtuemart

I get:
Fatal error: Class 'JAccess' not found in /home/bikedesign/public_html/administrator/components/com_virtuemart/helpers/vmview.php on line 84


1. How can I solve this? 
And what the heck is JAccess?  - some sort of API?
  - that are needed in a module/plugin that could be incompatible after migration from 1.1.9 to vm 2?
Ref: http://api.joomla.org/Joomla-Platform/Access/JAccess.html  that explain:  Class that handles all access authorisation routines.   

2. Had a look into vmview.php and there are some lines
   //Get the core actions
      $core_actions = JAccess::getActions('com_virtuemart','component');
      foreach ($core_actions as $action) {
         $result->set($action->name, $user->authorise($action->name, 'com_virtuemart'));
      }

seems like there are some error with DB/Table access cause file access of 'helpers/vmview.php' are 0644 like all the rest of the components...

Anyone?   ::)

Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: Maxim Pishnyak on August 22, 2013, 18:10:54 PM
What migration guide do you use?
Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: skrettis on August 23, 2013, 02:21:00 AM
Used: http://www.ostraining.com/blog/joomla/virtuemart-11-to-version-2/

Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: Maxim Pishnyak on August 23, 2013, 11:54:19 AM
Could you compare your steps with this guide?
Quote from: Maxim Pishnyak on June 27, 2013, 20:15:34 PM
http://web.archive.org/web/20120803095904/http://www.dashhelp.com/tutorials/joomla-tutorials/75-migrate-virtuemart-1-1-9-to-version-2-0-updates
I'm personally have good experience with dashelp guide.
Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: jenkinhill on August 23, 2013, 16:23:52 PM
The "official" docs:  http://docs.virtuemart.net/tutorials/30-installation-migration-upgrade-vm-2/77-upgrading-vm1-to-vm2.html
Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: roberto250b on September 10, 2013, 11:29:51 AM
i have exactly the same problem here, same tutorial and the same error.

please help me to fix it.

Fatal error: Class 'JAccess' not found in /home/******/public_html/administrator/components/com_virtuemart/helpers/vmview.php on line 84

thank you already,
Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: jenkinhill on September 10, 2013, 12:11:57 PM
Looks like you are using Joomla 1.5, which is no longer supported.  http://virtuemart.net/news/list-all-news/426-end-of-life-for-virtuemart-11-heidelpay-now-in-virtuemart-2012
"We decided to declare now the end of life for VirtueMart 1.1, and that the version 2 of VirtueMart is not any longer maintaining joomla 1.5 compatibility." 4 October 2012

VM 2.0.22 has ACL (Access Control List) to control the access to the VirtueMart administration pages. This class is only available in Joomla 2.5
Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: roberto250b on September 10, 2013, 12:19:27 PM
but i have to migrate the whole site to joomla 2.5 and vm to version 2

i thought i do vm first and then migrate it to the new joomla site

but then i have to update joomla first? vm 1 does not work in 2.5.

how do i get my vm files correct?
Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: jenkinhill on September 10, 2013, 13:01:14 PM
The VM  files should be OK once you have migrated the Joomla version.
Title: Re: Migration error - Class 'JAccess' when administrator/index.php?option=com_virtue
Post by: da8iwr on October 03, 2013, 02:38:59 AM
What I did to solve this quickly (as im used to also updating in J1.5 first and didn't realise it had changed), was found an older version VM2.0.3, installed that and then once it was transferred and included in the J2.5 website updated it to the latest version.

Of course the correct way should be done above, but this is a work around.