News:

Looking for documentation? Take a look on our wiki

Main Menu

Can't add product with Hebrew SEF alias

Started by izig, September 16, 2017, 10:18:01 AM

Previous topic - Next topic

izig

Hi,

Following upgrade of my web server, Joomla and Virtuemart, I encountered the following error while trying to add new product with Hebrew SEF alias:
Error
vmError: VmTableData Sef Alias in record is missing! Can't save the record with no Sef Alias.
vmError: You are not an administrator or the correct vendor, storing of product cancelled
failed


When adding a product with both Hebrew and non Hebrew characters, the alias will contain only the non Hebrew characters.
Adding manual alias with Only Hebrew characters (no spaces, no special characters) results with the above error.

Technical details:
From Joomla configuration file:
                public $sef = '1';
        public $sef_rewrite = '1';
        public $sef_suffix = '0';
        public $unicodeslugs = '1';


Joomla ver: 3.7.5
Virtuemart ver: 3.2.4
PHP ver: 7.0.19-1

izig

Some more details following forum posts related to similar issues.
My ./administrator/components/com_virtuemart/virtuemart.cfg

Contains:
##SEO
    seo_disabled=0
    seo_translate=0
    seo_use_id=0

Adding the following as suggested in http://forum.virtuemart.net/index.php?topic=123915.0 did not help:
    transliterateSlugs=1

Am I adding it correctly? Once I saved the file, I entered Virtumart control panel -> SEO and saved the configuration again with no success.

Both:
administrator/components/com_virtuemart/helpers/vmtable.php
administrator/components/com_virtuemart/helpers/vrequest.php

contains the following line which supposed to be the correct one:
$unicodeslugs = VmConfig::get('transliterateSlugs',false);

Will continue to dig into the forum and update with any findings.

Thanks !


izig

Solved !

Compered my test server and production and found that php7.0-mbstring was missing.
Installed the package, restarted Apache and the problem disappeared.

Thanks

Milbo

ah nice, yes. Thank you for your feedback of your solution.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/