VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: deeptii on June 09, 2008, 10:16:45 AM

Title: [FIXED] VM 1.1 and J 1.5.3 Contact page conflict
Post by: deeptii on June 09, 2008, 10:16:45 AM
If you use the Joomla 1.5.3 contact page while showing the VM product categories on a menu, going to the contact page sprouts the following error:

Fatal error: Call to a member function setQuery() on a non-object in /home/xxx/public_html/modules/mod_virtuemart/vm_transmenu/Shop_Menu.php on line 44

Using Joomla! 1.5.3 eCommerce Edition, JA Purity

Any way to quickly fix this before the next patch at all?
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: deeptii on June 09, 2008, 10:38:26 AM
After adding: $db = new ps_DB(); to vm_transmenu.php in modules after global $my, $db; this is fixed.
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: Viames on July 19, 2008, 21:19:03 PM
Thanks, this fix the module.

I wonder why it's still not been added to current SVN.
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: aravot on July 20, 2008, 09:34:52 AM
I can't duplicate this could you please tell me the setting you have.
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: Viames on July 21, 2008, 15:46:43 PM
These are the settings related to mod_virtuemart. Before this fix, using the SVN downloaded 1 week ago, i had the error reported above on some menu items (eg. menu-link to com_contacts).
Unpublishing the mod_virtuemart, the fatal error disappears.

At the moment i've used the suggested fix, and hope you will included it in the future version. :)

[attachment cleanup by admin]
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: aravot on July 21, 2008, 20:05:16 PM
I can not duplicate it.
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: Shoushan on August 27, 2008, 19:47:06 PM
I have issue with transmenu. In FF it goes to category main page instead of to actual products. In IE7 I don't have this issue. Can you maybe help me with this??
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: chrism on February 18, 2009, 14:17:45 PM
FYI
I have had the same issue all the Joomla user menu (log out, registration etc) stuff fails with
Fatal error: Call to a member function setQuery() on a non-object in C:\wamp\www\modules\mod_virtuemart\vm_transmenu\Shop_Menu.php on line 44
when mod_virtuemart is published. Publishing and Unpublishing recreates and cures the issue
vm 1.13 Joomla 1.5.8 running on wamp
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: aravot on February 19, 2009, 00:28:45 AM
Could you please write your menu configurations, or give my access to your site so I could have a look because I can't duplicate this, must happen on specific setting.

You can PM me the web info
Title: Re: VM 1.1 and J 1.5.3 Contact page conflict
Post by: aravot on May 03, 2009, 08:03:45 AM
Fixed in 1.1.4