VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: izig on September 16, 2017, 10:18:01 AM

Title: Can't add product with Hebrew SEF alias
Post by: izig on September 16, 2017, 10:18:01 AM
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
Title: Re: Can't add product with Hebrew SEF alias
Post by: izig on September 16, 2017, 11:11:42 AM
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 !

Title: Re: Can't add product with Hebrew SEF alias
Post by: izig on September 22, 2017, 11:14:50 AM
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
Title: Re: Can't add product with Hebrew SEF alias
Post by: Milbo on September 23, 2017, 21:49:30 PM
ah nice, yes. Thank you for your feedback of your solution.