VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: 2cool on July 08, 2019, 23:30:04 PM

Title: Help...0 Class 'vmVersion' not found
Post by: 2cool on July 08, 2019, 23:30:04 PM
Hi, does anyone know what this error means?
0  Class 'vmVersion' not found

Was removing old product images and this error appears?
Site and backend not reachable both this error?

Anyone with a solution how to fix??

Site runs latest joomla 3.9.8 & virtuemart 3.4.2

Title: Re: Help...0 Class 'vmVersion' not found
Post by: 2cool on July 09, 2019, 00:17:51 AM
Would it hurt to remove all files from cache folders?
I see lots of files in these folders:
/cache/_virtuemart
/cache/com_virtuemart_cat_childs
/cache/com_virtuemart_cats
/cache/com_virtuemart_cat_options

Or is it possible to reinstall vm files via ftp to solve this error?

Thanks
Title: Re: Help...0 Class 'vmVersion' not found
Post by: 2cool on July 09, 2019, 01:18:13 AM
Got this from error report:
    /public_html/administrator/components/com_virtuemart/helpers/vmdefines.php:117

Call stack
#    Function    Location
1    ()    JROOT/administrator/components/com_virtuemart/helpers/vmdefines.php:117
2    vmDefines::defines()    JROOT/administrator/components/com_virtuemart/helpers/config.php:19
3    include_once()    JROOT/libraries/loader.php:260
4    JLoader::load()    
5    spl_autoload_call()    
6    class_exists()    JROOT/plugins/system/vpconversiontracking/helper.php:92
7    plgSystemVPConversionTrackingHelper->isCompatible()    JROOT/plugins/system/vpconversiontracking/vpconversiontracking.php:204
8    plgSystemVPConversionTracking->onAfterRoute()    JROOT/libraries/joomla/event/event.php:70
9    JEvent->update()    JROOT/libraries/joomla/event/dispatcher.php:160
10    JEventDispatcher->trigger()    JROOT/libraries/src/Application/BaseApplication.php:108
11    Joomla\CMS\Application\BaseApplication->triggerEvent()    JROOT/libraries/src/Application/AdministratorApplication.php:478
12    Joomla\CMS\Application\AdministratorApplication->route()    JROOT/libraries/src/Application/AdministratorApplication.php:144
13    Joomla\CMS\Application\AdministratorApplication->doExecute()    JROOT/libraries/src/Application/CMSApplication.php:196
14    Joomla\CMS\Application\CMSApplication->execute()    JROOT/administrator/index.php:51

Can anyone tell me what's causing this error?

Thanks in advance,
Pas
Title: Re: Help...0 Class 'vmVersion' not found
Post by: Jörgen on July 09, 2019, 07:11:49 AM
Cache files can be removed through joomla or maybe an addon plugin.
Your error may be coming from your vpconversiontracking plugin.
Reinstalling vm (without uninstalling) can be a good idea.

Jörgen @ Kreativ Fotografi
Title: Re: Help...0 Class 'vmVersion' not found
Post by: 2cool on July 09, 2019, 07:28:43 AM
Hi Jörgen,

Problem is, I can't access site.
Can this be done via ftp?

Thanks,
Pas
Title: Re: Help...0 Class 'vmVersion' not found
Post by: Jörgen on July 09, 2019, 07:50:49 AM
What did You do to make the site unaccessible ? Reload Your backup.

If You do not have any backup you have a more serious problem. Look up the vpconversiontracking plugin and rename the plugin so it won´t start.

Loading through ftp works and should not hurt, but it is no guarantee for success.

Jörgen @ Kreativ Fotografi

Title: Re: Help...0 Class 'vmVersion' not found
Post by: 2cool on July 09, 2019, 08:03:15 AM
Was removing old products images, while removing large batch this error appeared.

Have a backup but not exactly from the time of error.

How should I look up and rename the plugin via only ftp? sounds like a nice thing to do.

Thanks,
Pas
Title: Re: Help...0 Class 'vmVersion' not found
Post by: Jörgen on July 09, 2019, 10:53:06 AM
try looking /plugins/system/vpconversiontracking

Rename directory och plugin.

If You know which directory you emptied, try just to add the files from that directory from the backup.

No guarantees

Jörgen @ Kreativ Fotografi
Title: Re: Help...0 Class 'vmVersion' not found
Post by: 2cool on July 09, 2019, 12:53:34 PM
rename plugin gives this message 'The page isn't redirecting properly'?

I think I know what went wrong, while deleting images in vm admin - store - images
system files are removed also....;(

config.xml    
fof.xml    
postinstall.xml
postinstall.php
access.xml    
toolbar.php
and more....

Is it possible to restore these via ftp?
Title: Re: Help...0 Class 'vmVersion' not found
Post by: 2cool on July 09, 2019, 16:27:55 PM
Problem solved.
Replaced all missing 'images' (vm admin - store - images) from a backup.

Not sure why these files are visible here anyway?

thanks & regards,
Pas
Title: Re: Help...0 Class 'vmVersion' not found
Post by: Milbo on July 12, 2019, 00:50:46 AM
I wonder also. Interesting problem. Nice that you found a solution.
Title: Re: Help...0 Class 'vmVersion' not found
Post by: Jörgen on July 12, 2019, 02:09:29 AM
QuoteNot sure why these files are visible here anyway?

What files are visible ? The system files ?

In that case Your path to images must be empty thus pointing to a not so good location. Check Your image paths in VM backend configuration->templates.

But, before You change these, please not that changing these can really screw things up. Just check that they are pointing at something like images/virtuemart/products, etc Please come back with Your findings.

Jörgen @ Kreativ Fotografi