VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Anne42 on December 24, 2012, 15:45:55 PM

Title: virtuemart_parser.php error
Post by: Anne42 on December 24, 2012, 15:45:55 PM
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!
Title: Re: virtuemart_parser.php error
Post by: vinmax on December 25, 2012, 12:37:45 PM
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://angkor-extension.com), http://vmdropdowncart.com (http://vmdropdowncart.com), http://vmideal.com (http://vmideal.com), http://vmsagepay.com (http://vmsagepay.com), http://vm4b.com (http://vm4b.com)
Title: Re: virtuemart_parser.php error
Post by: Anne42 on December 27, 2012, 13:56:42 PM
Yes, they were all disabled.
Title: Re: virtuemart_parser.php error
Post by: Anne42 on December 28, 2012, 16:23:54 PM
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. :)
Title: Re: virtuemart_parser.php error
Post by: jenkinhill on December 28, 2012, 16:34:24 PM
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.

Title: Re: virtuemart_parser.php error
Post by: Anne42 on December 28, 2012, 16:58:57 PM
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?
Title: Re: virtuemart_parser.php error
Post by: jenkinhill on December 28, 2012, 17:16:31 PM
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.
Title: Re: virtuemart_parser.php error
Post by: Anne42 on January 01, 2013, 19:06:09 PM
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!
Title: Re: virtuemart_parser.php error
Post by: jenkinhill on January 01, 2013, 21:51:38 PM
Check the server error logs for the cause of the 500
Title: Re: virtuemart_parser.php error
Post by: 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.
Title: Re: virtuemart_parser.php error
Post by: Anne42 on January 03, 2013, 16:34:38 PM
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]
Title: Re: virtuemart_parser.php error
Post by: Milbo on January 03, 2013, 19:59:38 PM
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.
Title: Re: virtuemart_parser.php error
Post by: Anne42 on January 04, 2013, 16:10:32 PM
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!
Title: Re: virtuemart_parser.php error
Post by: Milbo on January 04, 2013, 20:10:27 PM
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
Title: Re: virtuemart_parser.php error
Post by: Anne42 on January 06, 2013, 15:58:59 PM
Any idea on why I get an internal server error? Can't seem to upload it using extension manager. Thanks!
Title: Re: virtuemart_parser.php error
Post by: Anne42 on January 07, 2013, 14:33:26 PM
I saw that there's already 2.0.16d - should I install that instead? Thank you
Title: Re: virtuemart_parser.php error
Post by: Anne42 on January 07, 2013, 14:41:44 PM
I already updated to 2.0.16d. I got these messages when I installed the AIO component.

Checking VirtueMart2 modules...VirtueMart2 modules already installed
VirtueMart2 language moved to the joomla language FE folder
VirtueMart2 language moved to the joomla language BE folder
VirtueMart2 pdf moved to the joomla libraries folder
Installing Virtuemart Plugins and modules Success.

You may directly uninstall this component. Your plugins will remain

Ignore the message JLIB_INSTALLER_ABORT_COMP_BUILDADMINMENUS_FAILED


Then I tried adding a new shipment method but got this message instead:
There are no shipment plugins installed, please go to http://dev.VirtueMart.net/projects/VirtueMart/files and download/install the latest com_virtuemart_aio

Anyone? :(
Title: Re: virtuemart_parser.php error
Post by: Milbo on January 07, 2013, 15:17:26 PM
Maybe you must publish them? I dont know, already this message
Ignore the message JLIB_INSTALLER_ABORT_COMP_BUILDADMINMENUS_FAILED

shows a strange problem, because there should stand the translation of JLIB_INSTALLER_ABORT_COMP_BUILDADMINMENUS_FAILED
Title: Re: virtuemart_parser.php error
Post by: Anne42 on January 07, 2013, 16:54:00 PM
Do you think it has something to do with my Joomla version? I use 1.5.23. Thank you
Title: Re: virtuemart_parser.php error
Post by: Anne42 on January 07, 2013, 17:03:36 PM
Ahh. I found it. Thanks for your help, Milbo!