News:

Looking for documentation? Take a look on our wiki

Main Menu

virtuemart_parser.php error

Started by Anne42, December 24, 2012, 15:45:55 PM

Previous topic - Next topic

Anne42

Hello, I migrated from 1.1.9 to 2.0.16 and I can't seem to load the entire shop on the front end -- I get this error: Fatal error: Call to undefined function vmWarn() in .../html/.../shopdev/v1/components/com_virtuemart/virtuemart_parser.php on line 4

I followed this tut on how to migrate: http://www.ostraining.com/blog/joomla/virtuemart-11-to-version-2/

Also, I can access the backend just fine -- complete with products, etc. I also installed the aio extension that came with the 2.0.16 zip but it still says There are no shipment plugins installed, please go to http://dev.virtuemart.net/projects/VirtueMart/files and download/install the latest com_virtuemart_aio


Appreciate the help! Thanks in advance!

vinmax

#1
Hi,
When you have migrate disabled all plugin and module of virtuemart?
When you have installed com_virtuemart_aio 2.0.16 at that time all plugin and module of virtuemart are disabled?

If not, Please disable them and reinstall com_virtuemart_aio 2.0.16.

Thanks

http://angkor-extension.com, http://vmdropdowncart.com, http://vmideal.com, http://vmsagepay.com, http://vm4b.com

Anne42


Anne42

Hello, I tried to reinstall VM 2.0.16 and the aio with all the modules and plugins disabled but unfortunately I still get the parser error when I enable the mod_virtuemart module. My virtuemart_parser.php contains the following code:

<?php

$attentionText 
JText::_('COM_VIRTUEMART_MIGRATION_WARN_VM1_EXTENSIONS');
vmWarn($attentionText);
echo 
$attentionText;

vmTrace('Called by');


The error I get is Fatal error: Call to undefined function vmWarn() in /home/.../html/.../components/com_virtuemart/virtuemart_parser.php on line 4

Appreciate any input. Thanks in advance. :)

jenkinhill

Sounds like you are trying to enable the old VM1.1 module. That will not work with VM2, all VM1.1 modules should be disabled (and preferably uninstalled) see item 6 on http://forum.virtuemart.net/index.php?topic=95236.0.

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Anne42

Thanks! I couldn't find the shop on the frontpage so I tried to enable the mod_virtuemart module. Does that mean the Verson 2 virtuemart module will be automatically enabled after migration?

jenkinhill

There is no equivalent module, but new product modules are installed with the aio component. To get the shop on the page make a Joomla main menu link to the VirtueMart front page option.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Anne42

Thanks! I did that but I got an Error 500 when I made the new shop "default." Any ideas why? Thanks a lot and happy 2013!

jenkinhill

Check the server error logs for the cause of the 500
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Milbo

Please use the latest version 2.0.16a. I added some stuff

if (!class_exists( 'VmConfig' )) require(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php');
VmConfig::loadConfig();
$attentionText = JText::_('COM_VIRTUEMART_MIGRATION_WARN_VM1_EXTENSIONS');
vmWarn($attentionText);
echo $attentionText;

vmTrace('Called by',TRUE);


this piece of code is maybe nasty, but it should prevent errors due vm1 extensions.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Anne42

#10
Quote from: Milbo on January 03, 2013, 15:28:31 PM
Please use the latest version 2.0.16a. I added some stuff

if (!class_exists( 'VmConfig' )) require(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php');
VmConfig::loadConfig();
$attentionText = JText::_('COM_VIRTUEMART_MIGRATION_WARN_VM1_EXTENSIONS');
vmWarn($attentionText);
echo $attentionText;

vmTrace('Called by',TRUE);


this piece of code is maybe nasty, but it should prevent errors due vm1 extensions.

Thanks! Apparently I have the latest version but it doesn't say 2.0.16a. (Installed version 2.0.16
Latest version 2.0.16). Also, my VM still doesn't recognize my AIO but it appears on my menu. Any ideas why? I followed the instructions with disabling plugins etc when I migrated. Thanks!

[attachment cleanup by admin]

Milbo

The a version is only in the dev.virtuemart.net http://dev.virtuemart.net/projects/virtuemart/files, but will follow. I found the problem with the shipping plugin.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Anne42

Hi Milbo,

Do I just upload it using the extension manager or is there another way to do it? My products will still be intact, yes? :) Thank you!

Milbo

you just use the extension installer of joomla. You just installl the over the old version. It is then automatically an update and use version C.

is a security release
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Anne42

Any idea on why I get an internal server error? Can't seem to upload it using extension manager. Thanks!