VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: marvays on November 25, 2018, 22:47:06 PM

Title: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on November 25, 2018, 22:47:06 PM
Hi. I have problem with urls.
When I go to product from product slider etc, i have url without menu item id, cant display modules in left menu and have this notice . . . .
Notice: Undefined index: Itemid in /data/web/virtuals/123447/virtual/www/domains/luky.richta.eu/components/com_virtuemart/router.php on line 903

I have VM 3.4.2 and joomla 3.9

Any idea?
Title: Re: router.php on line 903
Post by: marvays on November 26, 2018, 09:50:13 AM
So, last night i trying solved problem. And found it. But cnat solved it.
Problem is in generate urls. When i go to produt detail form menu, all its good. But, when i go to product from any module (for example futured product) url havent menu item ID. When url havent menu item id, crashed Breadcrumbs. And crashed display modules asignet to product detail in left position.

When I try instal blank joomla +virtuemart with demo data, links from module with futured product have manu item id.
test with demo data:
http://virtuemart.richta.eu/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=300&virtuemart_category_id=11&Itemid=101

test my webpage:
http://www.luky.richta.eu/index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=68&virtuemart_product_id=398

Where is the problem?

I cant resolve it. I must go, make new joomla instal, virtuemart instal and use jMigrator and build all new webpage :(

PS: I tryed another template, downgrade joomla, downgrade VM, delete overwrite . . . use default VM module, use +offlajn module . . . nothing.

Title: Re: BAD URLS - router.php on line 903
Post by: Milbo on November 26, 2018, 14:34:58 PM
Did you set a default homepage?

Because that is the fallback, we use a joomla function to get the right Itemid.
Title: Re: BAD URLS - router.php on line 903
Post by: marvays on November 26, 2018, 15:27:30 PM
Yes. But it is hidden. Can it be hidden?
Title: Re: BAD URLS - router.php on line 903
Post by: marvays on November 26, 2018, 18:43:55 PM
Ok. Now i delete all links to Vm from all menus. Add one to Vm homepage. Problem not solved. Second i tried add homepage vm as product category. Problem not solved.
Title: Assign the component VirtueMart to a menu item - Warning
Post by: marvays on November 27, 2018, 11:06:42 AM
I am not understand it :(
(http://www.imagehosting.cz/thumbs/warnindud.png) (http://www.imagehosting.cz/?v=warnindud.png)
(http://www.imagehosting.cz/thumbs/linksvlv.png) (http://www.imagehosting.cz/?v=linksvlv.png)

All setup are good, right? On menu I have link to all VM category. Where is the problém?
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: GJC Web Design on November 27, 2018, 11:31:23 AM
should work .. its how I do it..  root category?
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on November 27, 2018, 12:00:32 PM
(http://www.imagehosting.cz/thumbs/1wow.png) (http://www.imagehosting.cz/?v=1wow.png)
(http://www.imagehosting.cz/thumbs/2rzr.png) (http://www.imagehosting.cz/?v=2rzr.png)
(http://www.imagehosting.cz/thumbs/3joj.png) (http://www.imagehosting.cz/?v=3joj.png)
(http://www.imagehosting.cz/thumbs/4psp.png) (http://www.imagehosting.cz/?v=4psp.png)
(http://www.imagehosting.cz/thumbs/5qoq.png) (http://www.imagehosting.cz/?v=5qoq.png)
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: Studio 42 on November 27, 2018, 14:05:59 PM
If you have multilanguage active. Then you need to set a Joomla menu for each language and virtuemart root category.
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on November 27, 2018, 17:33:32 PM
I have only single language . . . . or . . . . default language of joomla is englisch. I am instal czech language. And VM use only with czech. It si multi? or not?
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: Jörgen on November 27, 2018, 18:39:49 PM
If You have more than one language installed that is active, it should be considered multi language.

Jörgen @ Kreativ Fotografi
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on November 28, 2018, 12:35:21 PM
Now i have link to root category with my language. But problem stay.
(http://www.imagehosting.cz/thumbs/donennn.png) (http://www.imagehosting.cz/?v=donennn.png)

If you want, I can prepare a copy for the test. Will someone help me? Please.
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: GJC Web Design on November 28, 2018, 13:51:25 PM
http://forum.virtuemart.net/index.php?topic=141581.msg498933#msg498933

this was screwing up 2 of my clients lang functions .. don't know if u have installed
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on November 28, 2018, 15:24:47 PM
Yes, i have. lol . . . .thx
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on November 28, 2018, 19:02:09 PM
I was uninstal Custom fields for All, but problem stay.
Second, i try on test page restore system default, and have error: 1146 Table 'd123447_lazecky.#__virtuemart_permgroups' doesn't exist . . . . can this be a clue?
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: GJC Web Design on November 28, 2018, 19:35:52 PM
hmm -- not a current VM table .. from memory an old VM2 table
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on November 28, 2018, 19:41:40 PM
maybe . . . this web I build with jMigrator from old j2,5 and vm2 . . . . next day i must build this web again :( New install all, setup manually and import only product, category, orders and users. This bug i dont solve more days
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on November 28, 2018, 22:52:05 PM
All links to virtuemart from category have itemID. Only when I use Custom filter PRO, Search module from CFP, and from random modules not.
I tryed uninstal maybe all extention, but problem still have :(
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: Milbo on December 02, 2018, 23:14:58 PM
Quote from: marvays on November 28, 2018, 19:02:09 PM
I was uninstal Custom fields for All, but problem stay.
Bettter just unpublish it, else you may get in trouble.

Quote from: marvays on November 28, 2018, 19:02:09 PM
Second, i try on test page restore system default, and have error: 1146 Table 'd123447_lazecky.#__virtuemart_permgroups' doesn't exist . . . . can this be a clue?
There must be some old stuff which tries to access this completly outdated table.
Title: Re: BAD URLS - Assign the component VirtueMart to a menu item [Warning}
Post by: marvays on August 29, 2019, 14:31:36 PM
Quote from: Milbo on December 02, 2018, 23:14:58 PM
Quote from: marvays on November 28, 2018, 19:02:09 PM
Second, i try on test page restore system default, and have error: 1146 Table 'd123447_lazecky.#__virtuemart_permgroups' doesn't exist . . . . can this be a clue?
There must be some old stuff which tries to access this completly outdated table.

I was try uninstall all parts. Was Stay only on joomla and VM. But the problem still persists.