Problem with Joomla and Virtuemart
Oct 13, 2012 3:19 pm by marcellodj
Oct 13, 2012 3:19 pm by marcellodj
Hello,
my site: www.notebook-discount.it;
joomla: 1.5
vm: 1.1.4
sh404sef:2.4.6.1033
Installed the free module and the pro plugin plg_gtransalte.zip for j1.5.
The problem i face is that translation seems to work only for menu links on home page,not for products of virtuemart or joomla pages,if i click on :
http://www.notebook-discount.it/docs/spedizioni.html (Italian default) all is ok;
http://www.notebook-discount.it/en/docs/spedizioni.html (switch to eng) i receive 404 error
i added the following to htaccess:
# gtranslate config
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1&force_translation=1 [L,QSA]
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.notebook-discount.it/$1 [R=301,L]
anyone can help?
thanks
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 3:22 pm by marcellodj
Oct 13, 2012 3:22 pm by marcellodj
sorry correct rw rules are:
# gtranslate config
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1&force_translation=1 [L,QSA]
RewriteCond %{HTTP_HOST} ^notebook-discount.it
RewriteRule (.*) http://www.notebook-discount.it/$1 [R=301,L]
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 3:25 pm by Yana
Oct 13, 2012 3:25 pm by Yana
Hi,
Please try to chnage GTranslate and Virtuemart plugins order (Virtuemart should be after GTranslate ).
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 3:29 pm by marcellodj
Oct 13, 2012 3:29 pm by marcellodj
where?
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 3:38 pm by marcellodj
Oct 13, 2012 3:38 pm by marcellodj
and problem is not only related to vm products/cat but also to joomla pages
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 4:11 pm by Yana
Oct 13, 2012 4:11 pm by Yana
It is im the joomla plugin manager page. Also please send me an example of joomla pages so I can investigate and understand what the problem is.
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 4:19 pm by marcellodj
Oct 13, 2012 4:19 pm by marcellodj
set gttranslate plugin to 0 in plugin manager,before all others plugins;
what you mean for page example of joomla?
use the default it version and click for example on http://www.notebook-discount.it/docs/pagamenti.html ...
another issue is that plugin seems to break template; the right column goes to left!!
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 4:35 pm by Yana
Oct 13, 2012 4:35 pm by Yana
Hi,
Please check your website for HTML validation errors and try to fix all end tag errors if any.
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 4:56 pm by marcellodj
Oct 13, 2012 4:56 pm by marcellodj
Sincerly..validation errors can break template..but the non functioning translation is another issue; i saw other sites with gtranslate presenting validation errors..
and some errors where injected by your plugin Line 368, Column 235: end tag for "noscript" which is not finished
…nd <a href="https://gtranslate.io/">translation delivery network</a></noscript>
!!!
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 5:02 pm by Yana
Oct 13, 2012 5:02 pm by Yana
Hi,
Have you installed third party SEF extensions?
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 5:02 pm by marcellodj
Oct 13, 2012 5:02 pm by marcellodj
sh404sef:2.4.6.1033
Re: Problem with Joomla and Virtuemart
Oct 13, 2012 6:09 pm by Yana
Oct 13, 2012 6:09 pm by Yana
Hi,
Please try to add the following lines in your sh404sef php fole
if(class_exists('plgSystemGTranslate')) {
if(preg_match('/^\/en\//', $_SERVER['REQUEST_URI'])) {
// replace en with default language
$session = & JFactory::getSession();
$session->set('glang', 'en');
header('Location: ' . preg_replace('/^\/en\//', '/', $_SERVER['REQUEST_URI']));
exit;
}
// fix for gtranslate
$uri =& JURI::getInstance();
$router =& $mainframe->getRouter();
plgSystemGTranslate::parseGTranslate($router, $uri);
// sh404sef fix
$session = & JFactory::getSession();
$lang = $session->get('glang');
$_SERVER['REQUEST_URI'] = str_replace('/'.$lang.'/', '/', $_SERVER['REQUEST_URI']);
}
Re: Problem with Joomla and Virtuemart
Oct 14, 2012 11:12 am by marcellodj
Oct 14, 2012 11:12 am by marcellodj
Hello,
hack seems to work but:
- english version dont have en before url (should i change en in the script to IT ?)
- template is break right column goes to left
Re: Problem with Joomla and Virtuemart
Oct 16, 2012 8:15 am by marcellodj
Oct 16, 2012 8:15 am by marcellodj
Where is the support? i should fix the theme issue.
Re: Problem with Joomla and Virtuemart
Oct 17, 2012 10:34 pm by Yana
Oct 17, 2012 10:34 pm by Yana
Hi, If you have a problem with your template, you need to check your website for html validation errors and fix all end tag errors.
Default language shouldn't have language prefix.
Re: Problem with Joomla and Virtuemart
Oct 18, 2012 7:04 am by marcellodj
Oct 18, 2012 7:04 am by marcellodj
as i said in my prevoius post is also your script that inject errors..
Re: Problem with Joomla and Virtuemart
Oct 19, 2012 10:17 am by marcellodj
Oct 19, 2012 10:17 am by marcellodj
Problem solved,thanks.
Re: Problem with Joomla and Virtuemart
Oct 22, 2012 4:44 pm by Yana
Oct 22, 2012 4:44 pm by Yana
Hi,
Thank you for the information.
SIMILAR TOPICS
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not defined | Feb 22, 2019 12:34 pm | Replies: 1 | Post by: oase |
Joomshaper Pagebuilder buttons Link edit problem | Jan 11, 2019 10:04 am | Replies: 1 | Post by: kumatest |
Problem with plugin | Dec 30, 2018 11:59 pm | Replies: 1 | Post by: Iyari |
Problem of translation in my website | Dec 8, 2018 12:15 pm | Replies: 1 | Post by: Ibrahim |
Problem with qTranslate-x, please help! | Aug 22, 2018 9:14 am | Replies: 1 | Post by: sadammkhan |