Welcome to Alledia, the #1 Joomla Training Company

Would you like to learn Joomla? We're here to help you: Sign Up Today

  • Professionally-produced training videos and tutorials.
  • Guaranteed same-day answers to all your Joomla questions.
  • No Joomla experience needed. We've taught 1000s of Joomla students.

Home / Joomla URLs / Solving Common Problems With sh404SEF 
Jul
30
2008

Solving Common Problems With sh404SEF

Written by Steve Burge   
Avatar

sh404SEF logoIf you read this blog often, you'll know I love building sites with sh404SEF. However, its such a powerful extension that it can be complex. There are several issues that people keep asking me about. So instead of giving the same answer every time, I've written up the answers in a single document.

This is a free article from the SEO Club's guide to sh404SEF. Club members can look forward to the release of a full guide to Artio JoomSEF within the next couple of days. If you're not a member, we're still offering a free two week trial.

404 Errors On Individual Pages

sh404SEF can sometimes record a new URL without also recording the default Joomla version. It may be neccessary to go into the database in order to fix the problem. Here are the steps to take.

  1. Go into your database. phpMyAdmin is most common way to do this and your host is likely to have this installed.
  2. Find the table called jos_redirection (or replace jos with your own table prefixes)
  3. Click on "Old URL". This will sort the table alphabetically via its SEF URLs.
  4. Search for the URL that is causing the 404 error. It may not have an entry in the "New URL" field. Either put the normal Joomla URL in here or simply click on the red X to delete it.
missingurls

404 Errors Immediately After Purging URLs

sh404SEF can sometimes take a few minutes to recreate all the URLs. One way to speed the process is to visit the sitemap page on the frontend.

Pages Don't Have the Correct Modules or Templates

Its possible that sh404SEF has recorded the URL but without the correct Itemid. In this example, we have two versions of lost-user-name.htm. One includes Itemid=10 and one doesn't. Because the active URL (the one with 4 hits) doesn't include Itemid=10, it may be the reason why the modules and templates don't work. To solve this, select the URL that doesn't include Itemid=10. You can can do this by checking the box beside the URL and clicking "Duplicate URL" in the top-right corner. Here you will see all the different versions of the URL ... select the one you want and click "Main URL" in the top-right corner.

Global Configuration Not Correctly Set on 1.5

Under "SEO Settings" make sure that all three options are set to "no"? (Search Engine Friendly URLs, Use Apache mod_rewrite, Add suffix to URLs). Joomla 1.0 is the opposite ... both need to be set to "yes".

h1 Tags Cause Template Problems

There are two likely issues here:

  1. Some templates come with h1 tags behind the logo. If you see problem with the logo area, this is likely to the be problem. You may need to go into the template's index.php file and remove the h1 tags.
  2. Templates don't have CSS for h1 tags. If the h1 tags show very large, you will need to add your own CSS to the template's CSS file. One example is:

h1 {

font-size:16px;

}


or


h1 {

font-size: 125%;

}

Free Weekly Joomla Tutorials

Your Comments (47)

albionroad
Jeremy Rueter
July 30, 2008

This is great. I've had several of these issues before. The suggestion about visiting the sitemap after purging URL is especially helpful. One question though. I've encountered a number of times when pages don't have the correct modules/templates displaying. Seems to gradually happen but once I purge the URLs it goes back to normal. Your suggestion is to "To solve this, select the URL that doesn't include Itemid=10." But what do I do once I've selected it? I'm a bit confused.

steve
Steve Burge
July 30, 2008

Thanks for the feedback Jeremy - I do need to make that clearer.

You can can do this by checking the box beside the URL and clicking "Duplicate URL" in the top-right corner. Here you will see all the different versions of the URL ... select the one you want and click "Main URL" in the top-right corner.

albionroad
Jeremy Rueter
July 30, 2008

Thanks Steve. That makes a lot more sense. smilies/smiley.gif

Anthony
Anthony Olsen
July 30, 2008

Thanks for the article Steve,

Im not sure if its specific to sh404 - but docman and fireboard particularly dont like it when you put a full stop in the url. So if you name a post "What's new i J1.5" - you'll get a 404.

Any thoughts on how to get around this? At the moment you have to edit the database, remove the '.' and clear the url cache to fix the issue.

Cheers Anthony

steve
Steve Burge
July 30, 2008

I have the same problem with SEF Advance and Fireboard.

Have you tried adding a full stop (period for U.S. folk) to "Strip characters" in the configuration"?

copesc
Copes Flavio
July 31, 2008

These are great tips, Steve! Thanks a lot for sharing them smilies/cheesy.gif

Ansiklopedi
Ulas ALKAN
July 31, 2008

Hi;

sh404sef is a great component and your article is very helpful .

thanks for the tips

0
Sean Cook
July 31, 2008

Another informative post Steve! I will use this from time-to-time to remind myself when I run into those issues.

We all appreciate the tips!! smilies/tongue.gif

Anthony
Anthony Olsen
July 31, 2008

That solved it Steve thanks smilies/smiley.gif

0
ninad
August 10, 2008

Hello,
I have installed open SEf on my joomla(1.0.13) website.Open SEF is very usefull to create SEO friendly urls but problem is with tital and meta description tags, it shows same title on all pages as there is no way to customize different page title for different pages.
Can any one let me know with sh404SEF one can set different Title and Description per different pages?
Thanks.
Regards
ninad

0
Gavin Doolan
August 13, 2008

Thanks for the tips, but honestly if you have to go into a database just to fix a few errors that's a bit pathetic, I've got better things to do with my time than run around deleting rows out of my database.

Joomla SEF is ridiculously time consuming and flakey, its one of the reaons I gave up on Joomla (especially 1.0.XX), I mean if Wordpress and Drupal can get it so right why can't Joomla? No disrespect to the author of Sh404SEF he / she has done a tremendous job, but certainly needs more support and the core team should really get more involved in this area.

End Rant!

0
Gavin Doolan
August 13, 2008

@Ninad, you need to use JoomSEF patch which overwrites core joomla files, make sure you backup your Joomla installation and test on a localhost version first. This component then gives you the ability to add custom meta and title tags to each page, but on articles with more than one page (ones where you insert page breaks) you will not be able to customise the title of each page.

Consider upgrading to Joomla 1.5 for improved meta / title tag functionality.

Hope that helps.

steve
Steve Burge
August 13, 2008

Hi Gavin

True ... Drupal and Wordpress do a better job of SEF than Joomla ... thats part of the reason we do what we do.

However, each CMS has its own weaknesses. Wordpress often has terrible security issues and is relatively limited in its expandability. Drupal is overly complex for non-techies, expensive to build with and lacks decent templates.

Horses for courses ...

kiwi2b
Hugh M
August 14, 2008

After emailing Steve for help on this problem, I owe him a post on his blog, so here it is. smilies/wink.gif

After installing an auto pagemaking module called Minifrontpage I really hit the "Pages Don't Have the Correct Modules or Templates" as described by Steve above. The procedure he suggests really did fix it for me too.

But, I hit another problem that made his solution unworkable, that I have since solved. After clearing se404sef's cache, I hit the problem again, went back into the "View/Edit
SEF Urls area" and could only find one url for the problem pages! Bit hard to change the url if you only have one.

The solution, found on the Minifrontpage forum, essentially is to make sure you have good menu structure that produces a unique itemid for each area of your site. I didn't, as the articles that Minifrontpage was summarising and providing links to was the only way to get to them. You couldn't actualy get to them through the menu structure. This is why se404sef was only able to find the one broken url.

The solution was to make a new menu module, publish it next to Minifrontpage, that points to the articles' categories, crawl my site using the sitemap, and the 'good' urls showed up in se404sef as well as the broken ones. Just left me to choose the good ones like Steve says, and the problem is now fixed.

Bit of a mission though, you have to love joomla don't you? I remember starting out thinking I'd sort the whole joomla thing out in a weekend. smilies/cheesy.gif smilies/cheesy.gif smilies/cheesy.gif

0
ninad
August 15, 2008

@ Gavin
Hello Gavin, Thanks for suggestion to use Joomla SEF I will try that one but before that I will backup my entire site. You also have suggested me to upgrade to Joomla 1.5.X. I know at Joomla 1.5 there is a way to edit/set different page titles per different page but problem is that can I upgrade from Joomla 1.0.13 to directly 1.5.1 and what about existing template.I think existing template wont fit on joomla 1.5.
Let me know

Thanks

vdrover
Victor Drover
August 17, 2008

Steve, why are all 3 seo variables disabled for joomla 1.5?

0
markus
August 18, 2008

Hello all thank you for this excellent article I can tell you that the trick to scour the site to speed up the rewriting after the purge I just discover some minute before i write this message, however, I have a serious problem which I can not find the answer in any forum sh404sef is a good component to the SEF, however, there is a serious problem in pagination components ex: clicking on all ads you at the bottom of page 1 2 3 4 5 6 7 8 9 following the end of it Rejoinder pages in the anarchic as it surrejoinders in rehearsal page2 = page 3 etc etc
did you meet this kind of problem?

Thank you

0
siep
August 24, 2008

This is indeed very helpfull. Yet one problem is unsolved: fireboard multi-page threads. As long as the thread has one page only there is no problem. But as soon as a second page is created, it becomes impossible to reach the first/last page of the tread.
As far as I know the problem is with fireboard and not with the sef component. A multi-page thread needs a 'limitstart=#' somewehere in the non-sef url, where # is the number of the page. The problem is that fireboard doesn't insert the 'limitstart' as long as the tread uses only one page.
It should be quite easy to do a simple sql-query to purge all urls without the 'limitstart' - but sql is not my stongest point - can anyone help me (and others) with that?

0
siep
August 25, 2008

Well, here it is: run the following sql-syntax to purge all urls missing the limitstart-thing:

DELETE FROM `jos_redirection` WHERE `oldurl` LIKE 'i;reboard%' AND `newurl` NOT LIKE '&#xli;mitstart%'

You may have to change the name of fireboard to your own forum-name. And it has to be done every now and then, because threads become larger and grow from one-page to multi-page and therby break your links.

0
Usama
September 02, 2008

Considering the last problem, the one considers the page navigation of the multi-page thread, I got this error when trying to submit the previous SQL

MySQL said: Documentation
#1146 - Table 'test1.jos_redirection' doesn't exist

Any help please? What should I do to get rid of this problem?

0
markus
September 13, 2008

any personn can help me for this problem ?

Hello all thank you for this excellent article I can tell you that the trick to scour the site to speed up the rewriting after the purge I just discover some minute before i write this message, however, I have a serious problem which I can not find the answer in any forum sh404sef is a good component to the SEF, however, there is a serious problem in pagination components ex: clicking on all ads you at the bottom of page 1 2 3 4 5 6 7 8 9 following the end of it Rejoinder pages in the anarchic as it surrejoinders in rehearsal page2 = page 3 etc etc
did you meet this kind of problem?

Thank you

0
Laura Kay
September 14, 2008

Thanks for the informative article! It definitely helped me understand Sh404SEF more.

I do still have a problem though with the pages not having the correct modules or templates. In particular, it is with the User components (all of them don't work, but I was focusing on fixing the registration.) I tried to do the custom URL redirect. I checked my MySQL Database, and it appears to be fine. The old URL is listed as 'component/user/?task=register' and the new is listed as 'index.php?option=com_user&lang=en&task=register'. I've manuall entered the 'index.php?option=com_user&lang=en&task=register' and that works correctly. However, despite me checking the redirect, it does not work. It continues to send me to 'componetnuser/?task=register'. It brings up a template-free page. When you click 'register' it goes to a 404 page, similar to that described above.

Would any of you have a suggestion for this? I really would like to use sef urls, but I can't have the registration not work correctly.

Thanks!

0
Adhara
October 22, 2008

Hi,

I've got this problem: I have a template for the home page and a default template for all other pages. When I write a wrong address in my browser address bar, Joomla creates the 404 page with ItemID=1 which is the home page.
How can I change this? sh404SEF then generates the new 404.html link for the new address with ItemId=1.

Any ides?

Thank you

Andrea

thrower1
thrower s
January 29, 2009

I am in the process of rebuilding my site with Joomla 1.5.9. and have a few questions I've been trying to answer. If anyone has any feedback it would be very appreciated!

1. I have installed sh404SEF but I can not enable the component. When I select yes to enable the component and save it always goes back to No... Does anyone have any advice on how to correct this so I can use the component?

2. I am using Seyret for videos. Is there any benefit for SEF to be gained with this component? Will the search engines read my video content better?

thank you!

--mike

shumisha
Yannick Gaultier
January 31, 2009

HI

1. I have installed sh404SEF but I can not enable the component. When I select yes to enable the component and save it always goes back to No... Does anyone have any advice on how to correct this so I can use the component?
Mike, this happens usually because your web server is running mod_security, and it has some rules to block some of the text found in the configuration. You can get in touch with your hosting company to check about that, possibly checking mod_security logs if available

Rgds

0
Stuart
February 09, 2009

I have a problem with sh404sef (with VirtueMart on Joomla 1.5) whereby no modules display with sh404sef enabled... I have picked up a few threads with people asking for a solution to this problem, but there has been no answers :-) anybody have any i

0
diane
March 05, 2009

I have installed sh404sef on my older version joomla site but the trouble is, when i put a module such as latest news on the site and then you click the title, the content does not go on a fresh page, instead the article relating to the title appears on the same page under all the other content.

I have tried to figure this out for some months and on the sef forum people are asking all the time how to solve this but no one, not even the moderators come on board to solve the problem, instead turning a blind eye to this important problem. If anyone can help me and lots of other people who have the same problem then you will be a saint

steve
Steve Burge
March 05, 2009

Hi Diane

There's a lot of possible explanations. Do you have link to somewhere here you've outlined the problem (version of J! and sh404SEF, live site etc) in detail?

grayceworks
grayce clark
March 23, 2009

I am having trouble with one aspect of this component. I have the Meta/SEO functions enabled in the configuration. However, when I go to manage it or view it, it gives this error:

DB function failed with error number 1146
Table 'yawac.jos_sh404SEF_meta' doesn't exist SQL=SELECT * FROM jos_sh404SEF_meta WHERE newurl != 'index.php?3de69ea13a27d1ead96ff5d7b47efae3' ORDER BY `newurl` ASC LIMIT 0,20

0
WotLK Power Leveling
April 28, 2009

I got a problem when tried to create a customized 404 page, any one can help ?

0
Marcio
May 09, 2009

Hi! About Adhara's question (item id of the 404 page), you can change this on the "Very adv" tab, in the compontent's configuration section. Just change the value sh404SEF_PAGE_NOT_FOUND_FORCED_ITEMID to the desired one (the default is 0). In my example, i just picked the id of the 404 article, and voil?, the template changed.

0
harshal
June 01, 2009

hi,

i am facing a problem, if i put single quote in the url, then i get
No valid database connection You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&id=150?=en&q=&sa=&view=article'' at line 1 SQL=SELECT id, metadesc, metakey, metatitle, metalang, metarobots FROM jos_sh404SEF_meta WHERE newurl = 'index.php?option=com_content&Itemid=225&cof='&cx=&id=150?=en&q=&sa=&view=article'

0
adi
June 14, 2009

Thank you very much for this tutorial. it is very helpful, and how about after deleted...
should we have to purge 404 log in the sh404sef backend?
and how about our indexed urls listed by google? all urls indexed to be 404 pages, because the list indexed urls are old sef joomla and not writen by sh404sef.
for an ex : http://www.a2phone.com/softwar...e-software
this is url that has been indexed and now changed to be:
http://www.a2phone.com/phoenix-service-software

Please help me...
Thanks

0
Aur?lie
July 17, 2009

Hi,
I've got an problem enormouuuusss !!
I installed sh404sef, all was ok untill I clicked "activated" in the general configuration of the component.
And the fact is, today, that all my article table in mysql has the fulltext EMPTY.
That's why my template can't be fixed correctly without articles contents.
Is there a solution to take back my contents ? I didn't save my table for one month ago !!
Please, can you help me ??
Thank's in advance...
Aur?lie

0
derrick
August 16, 2009

Thanks a lot for your post!

All my url's looked like this:

example.html? e313ff6db8401e91f5e6e84ef50bfaf7=c780475cbf7058c0164477
5c383486dc

Thanks to your advice I just turned off Apache rewrite in the global config of joomla and no problems any more. Thanks!!!

0
rteeples
September 22, 2009

You're doing a great service here. I've had learn many of these sh404sef lessons the hard way.

Question: Do you know how big the sh404 database can get before it throws off the memory errors? I'm trying to decide how often and how to purge the database.

0
rteeples
September 22, 2009

Also, can you tell me what comment tool this is you are using?

0
ernst
September 23, 2009

Hi there Steve, thanks for this tutorial about this component.

there is one thing thought that's bugging me for quite a while: once i edit post from the frontend most of the times the link to the full article becomes a message " you are not authorised to view this article ", so leaving me only an intro page on the frontend. Creating an article in the backend (administrator) doesn't give these problems. Does anyone or steve knows a fix on this or has similar problems (running on joomla 1.015). Does it has something to do with the menu id?

Hope that someone in this forum can help

rgdz ernst

0
Emanuele Vedova
September 23, 2009

Excellent! .-)

However seems to be a little stupid to going to the phpmyadmin panel for fixing...

In future sh404sef developers have to insert a fix or an access area inside sh404sef control panel!

imho

0
DFreeburn
September 29, 2009

I've got a site which has two active templates - one for the majority of pages (set as default), and one for the home page. However, sh404sef makes my 404 page show up in the home page template, even though that's not the default! Any idea how I could get sh404sef to show my 404 page in the default template?

0
diane
October 29, 2009

Can anyone explain to me what purge 404 does and what it means. So if i press this button what does it do and how does it affect my website

0
jeroentje
November 02, 2009

Very helpfull article, never knew had to put the 3 settings in the Configuration at no.

Still have a problem and hope that someone can help me out.

At the bottom of my site you can click on contact us -> you will see some text but not the module on the right i have assigned to this article.

I have made a hidden menu where i assigned the article. In sef404 there are no duplicates for this article but still the module doesnt appear. It is a general problem for my site - this is just one of the examples where the module doesnt show up.

Has anyone an idea ?
rg
jeroen

0
Tina
December 17, 2009

Hi ,buddy

please help me

In my Joomla website there is an error in virtue mart

When return to the webshop after payment, there is an sql error. See below!
No valid Database connection You have an error in your SQL syntax ,check the manual that corresponds to your Mysql server version for the right syntax to use near " at line 1 sql-select order_item_id from jos_vm_order_item where order_id=
please could you see what is the issue and solution

Regards,
Tina

chandresh
chandresh rana
December 19, 2009

In my Joomla website there is an error in virtue mart

When return to the webshop after payment, there is an sql error. See below!
No valid Database connection You have an error in your SQL syntax ,check the manual that corresponds to your Mysql server version for the right syntax to use near " at line 1 sql-select order_item_id from jos_vm_order_item where order_id=
please could you see what is the issue and solution
Thanks,
Chandresh.

0
????????
December 23, 2009

Very helpfull article, never knew had to put the 3 settings in the Configuration at no.

chandresh
chandresh rana
December 24, 2009

i m not getting you properly ,please could you explain in detail

0
dextrous.saurav
January 13, 2010

Hello,
My joomla(1.5) Template is not working with sh404SEF. Can anyone help me in sorting out this problem? I liked sh404SEF the way it changes URL. I don't want to step back with it, just need to sort out this Template problem.

Kind Regards
Saurav

Write comment

 
  smaller | bigger
 

busy