How to remove "com-virtuemart-menu-configuration" from URLs?

Started by pietrek, May 05, 2014, 19:39:52 PM

Previous topic - Next topic

pietrek

Hello,
I use
J. 2.5.14
VM 2.6
Joomla SEF is on, VM SEF is on (disabling on last tab - unchecked)

I have strange element in my urls "com-virtuemart-menu-configuration". How to remove it?

I created couple of menu items linking to category of products, some of those menu items have nice short links but some of them not.
Short links :
http://www.dompaneli.pl/sensual
http://www.dompaneli.pl/aroma

ugly links:
http://www.dompaneli.pl/com-virtuemart-menu-configuration/excellence
http://www.dompaneli.pl/com-virtuemart-menu-configuration/solution
and others...

Each link is a top level category, type "VM category". It looks to me, as it works properly/wrong depending on menu and/or menu-module. I mean proper short links are in first two menus (one menu for one manufacturer), other menus have long urls with this strange element "com-virtuemart-menu-configuration"

I've read topics about urls and still have no idea - what went wrong and where...  (initially I didn't have special menu item for VM front page, as some advice, so I followed the instructions, but nothing changed...)

Is there any other place/option to make changes and have nice short addresses?

Regards, Pietrek

jjk

Looks to me like for example the 'excellence' products are a sub-category 'com-menu-configuration'. So check your categories and category names first.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

pietrek

Hello JJK,

Thanks for your attention, but categories are correct.

I nearly solved it. I uninstalled plugins/components:
-VM Bulk Editor,
-CSVI
reloaded page and URLs became clear, as they should be. Unfortunately, when I created new category - problem appeared again...

Regards, Pietrek

jjk

How about updating your Joomla to version 2.5.20. J2.5.14 is pretty old. Do you use any third party SEF extension or cache extension? Try to clear all cache in Joomla and also cklick on 'Purge expired cache' from the Joomla 'Site' menu.

I noticed these two errors on your site:
"NetworkError: 404 Not Found - http://www.dompaneli.pl/css/fancybox/jquery.fancybox-1.3.4.css"

jquery...3.4.css
"NetworkError: 404 Not Found - http://www.dompaneli.pl/templates/piaty/images/drewno18.jpg"

Normally, the fancybox-1.3.4.css file that comes with VirtueMart should be located at:
http://www.dompaneli.pl/components/com_virtuemart/assets/css/jquery.fancybox-1.3.4.css
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

pietrek

Still no effect.
Joomla updated, css & jpg file location errors fixed. Cleared cache in site and browser. No cache extension, JoomSEF was installed to solve this problem, but now is back uninstalled.

Every new menu-item linking to a VM category - regardless if it's in existing or new menu, regardless if it links to a new or existing category - has this "com-virtuemart-menu-configuration" element in url.  :'( Example is in "Egger" menu with suffix"2"

Interesting is that link to a product-detail page (displayed on Last Products) has clean short URL without mentioned element...

Regards,
Pietrek

GJC Web Design

and if you switch off SEF what do the urls look like?
Is there a difference in the native url form between a good and bad one?

different cat ids or Itemids unusual?

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pietrek

With SEO switched off (VM, Joomla) I have correct long urls with all parameters, without "com-virtuemart-menu-configuration" element just after domain name.
By the way, element "com-virtuemart-menu-configuration" added itself to product detail page (Egger/Universal/)  :-[ :-[
To be clear, this "com-virtuemart-menu-configuration" shows in: www.domainname.com/com-virtuemart-menu-configuration/categoryname or ../categoryname/productdetails

Quote from: GJC Web Design on May 06, 2014, 23:53:10 PM
different cat ids or Itemids unusual?
I'm sorry but I'm not sure if I understood.

Regards, Pietrek

GJC Web Design

#7
can you post some examples of the non SEF urls?

no harm in a 2nd pair of eyes looking at them

post the SEF url and then the non SEF url for a couple of menu items

do you have a menu assigned to the the com_virtuemart component?
If so which one?

Have you cleared all trashed menus?

Do you have any article or menu that even resembles com-virtuemart-menu-configuration?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jjk

@GJC Web Design
Some websites have a similar problem with "com-virtuemart-menu-paymentmethods". If you type that (including the quotation marks) into Google, you will find some.
@pietrek
Might be worth to have a look at some database tables like (in this case) xxxxx_virtuemart_categories, xxxxx_virtuemart_categories_pl_pl and xxxxx_menu.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

GJC Web Design

thanks for the nudge jjk

yes - in virtuemart/installation/sql/mysql/joomla.sql  there is a menu entry  (110, 'main', 'COM_VIRTUEMART_MENU_PAYMENTMETHODS', 'com-virtuemart-menu-paymentmethods', '', 'com-virtuemart/com-virtuemart-menu-paymentmethods', 'index.php?option=com_virtuemart&view=paymentmethod', 'component', 0, 102, 2, 10000, 0, 0, '0000-00-00 00:00:00', 0, 1, 'components/com_virtuemart/assets/images/icon_16/menu-icon16-paymentmethods.png', 0, '', 58, 59, 0, '*', 1),

with the alias  com-virtuemart-menu-paymentmethods

and yes - in a std VM2.6.0 install there is an entry in jos_menu as above - so that answers where the strange url comes from

but not why some would be picking this up in the router file as the menu string
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pietrek

Hello GJC and JJK,

I tell you what happened. I entered PHP My Admin, cleared trashed menus, deleted some found leftovers after CSVI uninstall process, cleared browser cache and...
yesterdays long urls became short, nice ones, all in "Egger" menu. All three below contained "com-virtuemart-menu-configuration" before this operation:
http://www.dompaneli.pl/flavour-2 (menu item created for testing purposes)
http://www.dompaneli.pl/universal (real unique product category)
http://www.dompaneli.pl/sound-2 (menu item created for testing purposes)

however when I create a new menu item, it starts from beginning:
http://www.dompaneli.pl/com-virtuemart-menu-configuration/sensual2 (menu item created for testing purposes).
http://www.dompaneli.pl/com-virtuemart-menu-configuration/whatever2 (menu item created for testing purposes).

Yes, I have menu item for VM Front Page (pls see img #2 attached)
I found string "com-virtuemart-menu-configuration" via PHP MyAdmin (pls see img #1 attached), but if I enter the record, the element "com-virtuemart-menu-configuration" doesn't show in editable field "alias". (please see img#3 attached - top and bottom row)

I don't have article or menu that even resembles com-virtuemart-menu-configuration.

PS. By the way, when clearing menu records in PHPMyAdmin, I deleted an administrator menu to VM Component :( :( :( In effect I don't see it in Joomla at all.
Can I have it back somehow? I use bookmark to VM component so I have an access, but...

Regards,Pietrek



[attachment cleanup by admin]

GJC Web Design

I really don't know - the new menus for the VM admin area (dropdown on the end of the admin menus) is new for 2.6.0
the alias com-virtuemart-menu-configuration is the menu for that entry : administrator/index.php?option=com_virtuemart&view=config

but how the router chooses that when I can see from your screen that the urls for the cats are completely standard I really don't know

In the short term what happens if you change the alias of Sensual2 directly in the table?

To replace your vm menu (have you got the extra new menu in the Joomla admin?) there is a few posts on here
it is just a sql query


think it is
INSERT INTO `jos_menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `ordering`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
(125, 'main', 'COM_VIRTUEMART', 'com-virtuemart', '', 'com-virtuemart', 'index.php?option=com_virtuemart', 'component', 0, 1, 1, 10003, 0, 0, '0000-00-00 00:00:00', 0, 1, '../components/com_virtuemart/assets/images/vmgeneral/menu_icon.png', 0, '', 69, 92, 0, '', 1);
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pietrek

GJC, I changed path directly in the table, removing "com-virtuemart-menu-configuration" string from "path" field for  "Sensual2" menu item.
In effect - urls became clean, both for category (menu-item url) and products! This helps me a lot so far, although without understanding what and where goes wrong.

Thanks for advice about Admin Menu, after I deleted VM Menu in table, both menus (Components/Virtue Mart and the new drop-down Joomla menu for VM - disappeared.) Will read more to bring it back.

Regards, Pietrek

jjk

Quote from: pietrek on May 07, 2014, 14:19:19 PM
Thanks for advice about Admin Menu, after I deleted VM Menu in table, both menus (Components/Virtue Mart and the new drop-down Joomla menu for VM - disappeared.) Will read more to bring it back.

I suppose installing Virtuemart 2.6 with the Joomla extension manager and then eventually enable the database tools in VM configuration and cllick on 'Install or if necessary update tables' in the VM Tools & Migration view will bring that back.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

dsrpmedia

I am having the same problem - am not clear on what you did to fix the situation

QuoteGJC, I changed path directly in the table, removing "com-virtuemart-menu-configuration" string from "path" field for  "Sensual2" menu item.
In effect - urls became clean, both for category (menu-item url) and products! This helps me a lot so far, although without understanding what and where goes wrong.


***it is not just VM items - this string is being added to menu links to regular content items as well