Famous Sh404sef vs Joomfish problem

This forum talks about everything related to SEF/SEO extensions and Joom!Fish
Forum rules
When you use a 3rd party SEF extension, you need to turn off JFrouter. The SEF extension should take care of the routing of your URL's

First check if you are running the latest available versions of Joomla! (1.5.18), Joom!Fish (2.0.4) and the SEF extension you're having problems with.

We need the following at least (you can find this in your Joomla! backend under help > system info):

* Joomla! version
* Joom!Fish version
* SEF-Extension version
* PHP version (e.g. 5.2.5). Note: The support for PHP4 is discontinued.
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Webserver to PHP interface
* Database version
* memory_limit from your phpinfo

Please enable error reporting and include any error messages in your posting.

Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.

Re: Famous Sh404sef vs Joomfish problem

Postby nono1974 on Sat Nov 14, 2009 2:09 am

By the way the top menu is not translated despite it links the right translated content when i request translation with 2nd flag language.
nono1974
Newbee
 
Posts: 3
Joined: Sat Nov 14, 2009 2:01 am

Re: Famous Sh404sef vs Joomfish problem

Postby six gun on Sat Nov 14, 2009 2:54 am

I updated to 2.04
I have still got sh404SEF
And like always the main menu disappears - in all languages

I overwrite the language selection module with that from Joomfish 2.0.
Back comes the menu - like always...
Well it works anyway!
http://www.askspain.org
Sometimes the code works
User avatar
six gun
Inshore Fisher
 
Posts: 109
Joined: Thu Jul 31, 2008 9:54 pm
Location: UK

Re: Famous Sh404sef vs Joomfish problem

Postby nono1974 on Sun Nov 15, 2009 11:58 am

Thank you six guns it works great. Hope joomfish 2.05 will fix this.
nono1974
Newbee
 
Posts: 3
Joined: Sat Nov 14, 2009 2:01 am

Re: Famous Sh404sef vs Joomfish problem

Postby bergmannn on Tue Dec 01, 2009 11:03 am

Hi all...

the only way for my envoirment to fix the issues with sh404 and JF are these:

editing the mod_mainmenu helper file like described here:
http://www.joomfish.net/forum/viewtopic.php?f=38&t=1568#p7430

rollback the language selection module to the one from the 2.0.RC package found here:
http://joomlacode.org/gf/project/joomfish/

editing the .htaccess has NOT fixed anything on my envoirment...

Now my site (using latest releases of Joomla, JomFish and sh404 at this moment) is working fine...

I hope that in one of the next releases this issue can be fixed from team..

Regards
bergmannn
Newbee
 
Posts: 3
Joined: Tue Dec 01, 2009 10:45 am

Re: Famous Sh404sef vs Joomfish problem

Postby spottedsparrow on Mon Dec 07, 2009 10:34 am

This worked for me as well. Thanks very much for posting.

bergmannn wrote:Hi all...

the only way for my envoirment to fix the issues with sh404 and JF are these:

editing the mod_mainmenu helper file like described here:
http://www.joomfish.net/forum/viewtopic.php?f=38&t=1568#p7430

rollback the language selection module to the one from the 2.0.RC package found here:
http://joomlacode.org/gf/project/joomfish/

editing the .htaccess has NOT fixed anything on my envoirment...

Now my site (using latest releases of Joomla, JomFish and sh404 at this moment) is working fine...

I hope that in one of the next releases this issue can be fixed from team..

Regards
spottedsparrow
Newbee
 
Posts: 4
Joined: Tue Sep 22, 2009 12:48 pm

Re: Famous Sh404sef vs Joomfish problem

Postby julieh on Thu Jan 07, 2010 8:07 am

Thanks for the language selection module fix, Bergmannn.

I found another workaround that doesn't require editing the mod_mainmenu helper file.

1) Use the language selection module fix described by Bergmannn in the previous post.
2) Create a copy of the "Main Menu" in joomla's Menu Manager, then use the module for the COPIED menu instead of the one for "Main Menu".
3) Configure sh404SEF to insert the language code in the URL for ALL languages. (Components -> sh404SEF -> Configuration -> Languages tab -> Set "Insert language code in URL" to Yes for ALL languages, including the default).

Hope this helps someone,
Julie
julieh
Newbee
 
Posts: 3
Joined: Mon Jan 26, 2009 9:13 pm

Re: Famous Sh404sef vs Joomfish problem

Postby nigelbb on Fri Jan 08, 2010 6:43 pm

It seems that there are many fixes for this well known incompatibility between sh404SEF & Joomfish that makes mainmenu items disappear when swicthing between languages. I really wish that one or other development team would accept this problem as their own & fix it. The other fixes & workarounds proposed involve reverting to an old version of Joomfish & hacking Joomla core modules (not a good idea as upgrades may overwrite your 'fix').

Using .htaccess to rewrite the incorrect URLs is the best workaround for the present time until the developers fix the problem properly. This workaround is simple & non-destructive works for me with English as the default language & French as the alternative. It depends on you using .htaccess rewrite so means that you must be running Apache as your webserver on some version of Linux/UNIX.

Many thanks to innoxed for the suggestion to use rewrite rules to workaround the problem. This is the entry in .htaccess that works for me with English as default & French as second language. Change the two letter language codes en-English & fr-French as required
Code: Select all
########## Joomfish fix
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !^/fr/.*
RewriteCond %{QUERY_STRING} !lang
RewriteRule ^(.*)$ /$1?lang=en&{QUERY_STRING}

RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} !lang
RewriteRule .* /?lang=en&{QUERY_STRING}
#
########## End - Joomfish fix
nigelbb
Newbee
 
Posts: 6
Joined: Wed Oct 28, 2009 3:11 pm

Re: Famous Sh404sef vs Joomfish problem

Postby Excubitor on Wed Jan 20, 2010 1:05 am

I've been experiencing a lot of the same problems.
Joom!Fish with sh404SEF.

I've noticed when i replace the helper.php in /modules/mod_jflanguageselection to the helper.php from the RC version mentioned above that this solved only a part of the problem.
The home button was still an issue since my language went to "Default" and so my entire menu was "English" but i had chosen "Dutch". So this wasn't a good solution and so i changed the helper.php back to the latest Joom!Fish version.

I will explain how i solved the languages problems below.

I have a website with 5 different language and using English as the default.
Mydomain.com/en
Mydomain.com/nl
Mydomain.com/de
Mydomain.com/fr
Mydomain.com/es

My Joomfish configuration is as followed:
Plugin: System - Jfrouter
|- Enable Language determination Yes
|-Language selection for new visitors? Browser Settings
|-Use 302 redirect No
|-Save user language in a cookie Yes
|-Use SEF prefix Yes

To solve the problem i did the following:
Go into the Joomla adminstrator menu.
Then select -> Components -> JoomFish -> Translation
I choose a language in this example: Dutch

So i filter Joomfish by selecting by Languages: Dutch
Then i choose for Content Elements: Menus

Then i select "Home" from the list.

Set publish to "Yes".

Now start the translation:
Label: Name
Orignal: Home
Translation: Home

Label: Menu Alias
Orignal: home
Translation: home

Label params:
Parameters: default copy

Label: Link
Orignal: index.php?option=com_content&view=frontpage
Translation: index.php?option=com_content&view=frontpage

I wasn't able to change the translation to: index.php?option=com_content&Itemid=1&lang=nl&view=frontpage
So i thought this has to be the issue since i want to use this translation URL just like how the Language Switcher module works.


Repeat these steps for all languages.


To solve the Label: Link problem i went into PHPMyAdmin like someone else also referred to.
Make sure that you enabled all languages before going into PHPMyadmin this saves some time.

When you are in PHPMyadmin go to the table: jos_languages
Now write down the Language ID's.

Then go to the "table jos_jf_content" and search for: "frontpage"
You get a nice list with all the translations that you just made.

Now look at the Language ID and change the value according the language that you want:
Dutch: index.php?option=com_content&Itemid=1&lang=nl&view=frontpage
French: index.php?option=com_content&Itemid=1&lang=fr&view=frontpage
Spanish: index.php?option=com_content&Itemid=1&lang=es&view=frontpage

You can just leave the english default if you dont want the link to go to http://www.mydomain.com/en/

This isn't the easiest solution but it doesn't require replacing hardcoded files just the database that contains the translation information which can't be changed by default.

I hope this leads to a more permanent solution and that the developers can do something about this probably easy to fix bug.

:edit: fixed some typo's
Excubitor
Newbee
 
Posts: 3
Joined: Wed Jan 20, 2010 12:25 am

Re: Famous Sh404sef vs Joomfish problem

Postby timvandevelde on Wed Jan 20, 2010 11:14 am

I've managed to get most errors fixed, but still have one problem.
You state you have the following urls:

mydomain.com/nl/
mydomain.com/en/ etc..

My default language is dutch, but the default homepage link is
mydomain.com/

If I type mydomain.com/nl/ I get a 404

How do you force the SEF prefix for the default language?
timvandevelde
Newbee
 
Posts: 1
Joined: Wed Jan 20, 2010 11:11 am

Re: Famous Sh404sef vs Joomfish problem

Postby Excubitor on Wed Jan 20, 2010 11:27 am

Got to the sh404SEF Configuration.
Make sure that you enabled the following options:

- Translate URL Yes
- Insert language code in URL Yes

And i translate all contents, modules etc. within Joom!Fish
So i even translate the already existing content to the same language with the Copy Button.
So for example my default language is English.
I go into Joom!fish -> Translation -> Choose "English" and you see "red" dots if it isn't translated.
Publish all content and just translate it by using the copy buttons.

Oh and before i forget, sometimes it helps to purge the sh404SEF urls.

I'm not sure if either solution solves your problem but it's worth a shot i guess.
Excubitor
Newbee
 
Posts: 3
Joined: Wed Jan 20, 2010 12:25 am

PreviousNext

Return to Joom!Fish and SEF

Who is online

Users browsing this forum: No registered users and 2 guests