[Solved]Fatal error

Popular automatic website translation tool

[Solved]Fatal error

Postby ASpanishProperty » Sat Feb 18, 2012 8:54 pm

As you know you installed this for me, and you suggested that i disable the plugin in order to edit or add menu items. I did this and it did not work. Can you fix this problem for me

Fatal error: Cannot redeclare file_get_html() (previously declared in /home/wwwaspan/public_html/plugins/system/gtranslate.php:959) in /home/wwwaspan/public_html/plugins/system/jat3/core/libs/html_parser.php on line 41

i tried that and i want to change and edit a menu item and the error is still there

So I am stuck cant add menu items or change them
Posts: 26
Joined: Sat Feb 18, 2012 1:06 am

Re: Fatal error

Postby Yana » Sat Feb 18, 2012 11:42 pm

I have edited plugins/system/shsef.php and added this code. This should fix the problem with disabling Gtranslate system plugin. I tried and it works. You can disable GTranslate plugin, edit menu items and enable it again.

if(class_exists('plgSystemGTranslate')) {
// 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']);

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm

Re: Fatal error

Postby ASpanishProperty » Mon Feb 20, 2012 5:05 am

Thank you so much
Posts: 26
Joined: Sat Feb 18, 2012 1:06 am

  • Related Topics
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest