VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: nflmerch on October 06, 2011, 23:48:09 PM

Title: [solved]Info: Assign virtuemart to a menu item
Post by: nflmerch on October 06, 2011, 23:48:09 PM
Tried updating from subrelease G to subrelease H on j1.71 and I get this error on the FRONT END of the website:

"Info: Assign virtuemart to a menu item"

I also tried a brand new install of joomla 1.71 and brand new install of VM2-G on a subdomain and got the same error.
Title: Re: Info: Assign virtuemart to a menu item
Post by: Milbo on October 07, 2011, 12:21:42 PM
You can ignore this error, when you have an menue item. Imho this is a joomla error in j1.7.1. When someone knows how to solve it working for j1.5 and j1.7, great. The other solution is to provide two installers, what we avoid like fire the water,  lol.
Title: Re: Info: Assign virtuemart to a menu item
Post by: nflmerch on October 07, 2011, 23:09:27 PM
Ok thanks. I thought I'd post it here since the error didn't happen with subrelease G, it only started with subrelease H (on same joomla and same server).

Sorry, I don't understand how to remove the error.
Title: Re: Info: Assign virtuemart to a menu item
Post by: nflmerch on October 07, 2011, 23:43:29 PM
Well I made a joomla menu item point to the Virtuemart homepage and the error dissapeared.   However, if I don't want the menu item there and I unpublish it, the error returns.
I'm sure I can find a way to have a joomla menu item published but not visible on the page... but something just seems wrong because I doubt everyone out there will know how to do that, plus I didn't have this error in subrelease G
Title: Re: Info: Assign virtuemart to a menu item
Post by: charles99 on October 10, 2011, 15:22:37 PM
That might be a joomla bug!   For some reason it has a problem creating an menu item when you are doing an upgrade.   It either fails to create a menu item in the front or back, which force be to edit my database and do a re-install.
Title: Re: Info: Assign virtuemart to a menu item
Post by: nflmerch on October 10, 2011, 21:47:18 PM
complete re-install on fresh subdomain and fresh database didn't solve the problem for me  :-\
Title: Re: Info: Assign virtuemart to a menu item
Post by: nflmerch on October 10, 2011, 23:02:08 PM
ok my work-around for this error was to make a new joomla menu with a menu link pointed at the menu type "VirtueMart Default Layout", and a new joomla module associated with that new menu and I put the module in a fake position that doesn't show up in my template.
still seems weird that I didn't get this error in subrelease G, but now I do with H ...  Am I not following correct logic when that makes me believe it's not joomla?
Title: Re: Info: Assign virtuemart to a menu item
Post by: Milbo on October 10, 2011, 23:38:53 PM
Quote from: nflmerch on October 06, 2011, 23:48:09 PM
"Info: Assign virtuemart to a menu item"

humpf, I mixed it up with the error message "couldnt create menuitem". This is not an error. It is an hint, because without assigning vm to a menuitem, you get trouble with sef/seo stuff.
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: Milbo on October 11, 2011, 13:03:50 PM
To understand better why you need that, please take a look on this thread http://forum.virtuemart.net/index.php?topic=91602.0.
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: nflmerch on October 11, 2011, 21:39:20 PM
I know that it says "Info" but it shows up on the FRONT END of the website for everyone to see and looks just like an error, and it was difficult to get rid of.   I would think hints would be on the back end.

It shows up on the front end when I install joomla and VM right out of the box on a new subdomain and database, so why did I need to do menu assignments and then have to hide the menu in a fake spot on my template? And why didn't I have to do this with any version until subrelease H?  Does everybody have to do this?  It seems like I just found a work-around, not the actual solution.

Sorry if I'm being troublesome, and I appreciate the help, but I don't see anything in that thread about my topic. 
The one thing I'm gathering is perhaps I will try using MySQLi instead of MySQL.   (I've seen in this forum alot that it's better to use MySQL so that's what I've been going with for all the subreleases. Now I will try MySQLi)
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: nflmerch on October 11, 2011, 22:27:52 PM
Quote from: nflmerch on October 11, 2011, 21:39:20 PMThe one thing I'm gathering is perhaps I will try using MySQLi instead of MySQL. 

Nope, that didn't change anything
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: Milbo on October 12, 2011, 00:32:00 AM
Read this thread http://forum.virtuemart.net/index.php?topic=91602.0 it explains you why it was not shown in the old version. The current fix is to show the message, else you get other problemes.
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: nflmerch on October 12, 2011, 00:51:13 AM
QuoteSorry if I'm being troublesome, and I appreciate the help, but I don't see anything in that thread about my topic.

Posting the link to the same thread twice, when I already said I read it, does not help much.  I've read it 3 or 4 times now and I don't see what it has to do with this issue.

So did I do the right thing then?  Does that imply Everyone has to create a fake menu pointed to a fake module position and hide it in their template?

Thanks for your patience, I am doing my best to help test and point out problems and offer advice on this forum as well.
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: Milbo on October 12, 2011, 18:51:29 PM
I am sorry, I dont find the right post. But it is connected to Fatal error: Class 'VirtuemartController{Name of category}' not found in .../components/com_virtuemart/virtuemart.php on line 59


Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: nflmerch on October 12, 2011, 23:50:41 PM
Wow this thread is confusing  :o   The first few strange answers have led me to spend alot of time looking into things and reading forums that has nothing to do with my error.

Now again, I searched all over the forum for any thread with the  Fatal error: Class 'VirtuemartController error, and looked at the code, and I'm still not sure what that has to do with Info: Assign virtuemart to a menu item.  And just an FYI, this thread was marked [solved] when it hasn't been
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: install on October 13, 2011, 06:35:32 AM
hi  :)
i had a same pro and solved it
in the menu manager-> create a new menu item->menu type, you select 1 of virtualmark menu type
done
hope it help ;)
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: nflmerch on October 21, 2011, 22:30:08 PM
This has been fixed in subrelease J   ;D
I can now unpublish the VM menu module without this error showing up.
Thank you
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: Venkko on November 08, 2011, 22:18:59 PM
Hi!

I just installed 1.9.8.L and now my front-end shows up Info: Assign virtuemart to a menu item
I have Joomla 1.5.23.

What I have read in here there has not been good solutions about this allthough this thread has been marked as solved.

So how can I get rid of that text?
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: orasis on February 21, 2012, 22:53:24 PM
I am testing virtuemart v2.0.1n  on joomla 2.5.1 and I have created all menu items available by virtuemart. I do get the message:

Info: Assign the component VirtueMart to a menu item

..that, when I am at a virtuemart page. If I am on Joomla's home, I get:

Info: COM_VIRTUEMART_ASSIGN_VM_TO_MENU

not so nice so far :D hope this gets fixed soon.
cheers and congrats for the great work so far.

p.s: who had the idea to mark topic as solved I dunno..

Update: Ok I tried something different and worked. Once I had the site to multilanguage mode, I didn't have any virtuemart menu item set to "Language > All". All vm menu items where in a specific language.
The message went away when I created a menu item "VirtueMart >> Front page >> Language > All".
At least that's how it works so far. Of course that menu item can be hidden and not shown anywhere but needs to be published.
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: Studio 42 on February 22, 2012, 01:53:59 AM
Hi mflmerch,
It's simple, If you donot set correctly the menu entry to have right sef then you have this message.
Try to inactive SEF in joomla setting and look, no more> Info: Assign virtuemart to a menu

If you want not see a specific Virtuemart link but have a right SEF
add menu link to menu's but unpublish the module displaying this or simply does not affect you rmenu links to a module menu.
It's so in joomla and we only inform that must be done.
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: nflmerch on February 23, 2012, 22:41:05 PM
Thanks Electrocity, but my issue was fixed in subrelease J way back in October:
Quote from: nflmerch on October 21, 2011, 22:30:08 PM
This has been fixed in subrelease J   ;D
I can now unpublish the VM menu module without this error showing up.
Thank you
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: Merry on March 21, 2012, 23:04:25 PM
NFLMerch said:
> Wow this thread is confusing  :o   The first few strange answers have led me to spend alot of time looking into things and reading forums that has nothing to do with my error.
> Now again, I searched all over the forum for any thread with the  Fatal error: Class 'VirtuemartController error, and looked at the code, and I'm still not sure what that has to do with Info: Assign virtuemart to a menu item.  And just an FYI, this thread was marked [solved] when it hasn't been.

NFLMerch is correct; this thread is marked SOLVED when it does not tell HOW to assign virtuemart to a (fake) menu item to make this error message go away.

Could someone either unmark this solved, or give the solution, please?  I would really prefer the solution. :-)

TIA,
Merry
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: alquemius on March 07, 2013, 18:56:40 PM
Hi This post was really helpful I wanted to add for anyone else who comes...

In my case I did want the store front page, but even though I had assigned the menu it still send the error.
I solved it by going to Menu Manager: Edit Menu Item in joomla and on the language selection I left is as "All"

Problemn solved  I have two languges installed for site and content perhaps that's why.

Have a good one!
Title: Re: [solved]Info: Assign virtuemart to a menu item
Post by: Peter Pillen on June 18, 2013, 00:14:59 AM
In my case (multilanguage site and virtuemart)... I had all menu already there and this error never occured before.

I solved it by going to virtuemart > configuration >configuration > shop > language settings

I needed to re-select all the languages for virtuemart. Possibly after an update, the language settings get lost during the proces.