Joomla!
http://forum.joomla.org/

[FIXED] Serious bug in 1.0.5
http://forum.joomla.org/viewtopic.php?f=376&t=26361
Page 1 of 2

Author:  pcigre [ Sat Dec 24, 2005 12:12 am ]
Post subject:  [FIXED] Serious bug in 1.0.5

Does anyone read this: http://developer.joomla.org/sf/go/artf2720?nav=1 . You can check headers with http://gsitecrawler.com/tools/Server-Status.aspx or with some other tool that check http headers... As for now all pages return 404 header... It's sad that noone didn't read this Artifact before 1.0.5 got public :-(

Author:  rhuk [ Sat Dec 24, 2005 1:40 am ]
Post subject:  Re: Serious bug in 1.0.5

I am unable to replicated your issue. I just installed fresh, turned on SEO, and browsed around, all fine.  Then i check the page status with your link provided below, and they come back 200.

This was on a debian linux box.  Can you provide some details on your environment? Also did you install the patch or the full version?

pcigre.com wrote:
Does anyone read this: http://developer.joomla.org/sf/go/artf2720?nav=1 . You can check headers with http://gsitecrawler.com/tools/Server-Status.aspx or with some other tool that check http headers... As for now all pages return 404 header... It's sad that noone didn't read this Artifact before 1.0.5 got public :-(

Author:  pcigre [ Sat Dec 24, 2005 8:33 am ]
Post subject:  Re: Serious bug in 1.0.5

I made a fresh instalation on http://www.pcigre.com/test and you can check http headers with tool like this one:

http://gsitecrawler.com/tools/Server-Status.aspx

And I don't see why is this moved to 1.1 board... This is actual problem for everyone that upgraded to 1.0.5...

And this problem will roun every SEO that someone has!

Author:  infograf768 [ Sat Dec 24, 2005 8:52 am ]
Post subject:  Re: Serious bug in 1.0.5

pcigre.com wrote:
I made a fresh instalation on http://www.pcigre.com/test and you can check http headers with tool like this one:

http://gsitecrawler.com/tools/Server-Status.aspx

And I don't see why is this moved to 1.1 board... This is actual problem for everyone that upgraded to 1.0.5...

And this problem will roun every SEO that someone has!


Sorry for the wrong move, it should go to the 1.0.x board.
I do it now.

Author:  infograf768 [ Sat Dec 24, 2005 8:54 am ]
Post subject:  Re: Serious bug in 1.0.5

I tested your site:
Quote:
Results of the GSiteCrawler Server-Test
Tested at 12/24/2005 8:50:45 AM / from 80.9.174.110:

URL=http://www.pcigre.com/test/content/section/1/2/
Result code: 200 (OK / OK)


This looks OK to me.
The test has to be done on a specific page and not on the default index.php

Author:  pcigre [ Sat Dec 24, 2005 8:55 am ]
Post subject:  Re: Serious bug in 1.0.5

Database Version:  4.1.14-standard
PHP Version: 4.4.1
Web Server: Apache
WebServer to PHP interface: cgi
Joomla! Version: Joomla! 1.0.5 Stable [ Sunspot ] 24-Dec-2005 10:00 UTC
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Relevant PHP Settings:
Safe Mode: OFF
Open basedir: none
Display Errors: ON
Short Open Tags: ON
File Uploads: ON
Magic Quotes: ON
Register Globals: OFF
Output Buffering: OFF
Session save path: /tmp
Session auto start: 0
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none
WYSIWYG Editor: No WYSIWYG Editor

Author:  pcigre [ Sat Dec 24, 2005 8:56 am ]
Post subject:  Re: Serious bug in 1.0.5

infograf768 wrote:
I tested your site:
Quote:
Results of the GSiteCrawler Server-Test
Tested at 12/24/2005 8:50:45 AM / from 80.9.174.110:

URL=http://www.pcigre.com/test/content/section/1/2/
Result code: 200 (OK / OK)


This looks OK to me.
The test has to be done on a specific page and not on the default index.php


But with 1.0.4 I get code 200 for that url...

And for index:

Code:
URL=http://www.pcigre.com/test/index.php
Result code: 404 (NotFound / Not Found)

Author:  MikeFossati [ Sat Dec 24, 2005 1:41 pm ]
Post subject:  Re: Serious bug in 1.0.5

infograf768 wrote:
I tested your site:
Quote:
Results of the GSiteCrawler Server-Test
Tested at 12/24/2005 8:50:45 AM / from 80.9.174.110:

URL=http://www.pcigre.com/test/content/section/1/2/
Result code: 200 (OK / OK)


This looks OK to me.
The test has to be done on a specific page and not on the default index.php


I have the same problem after upgrading my website http://www.spiritofhouse.net to 1.0.5. Can you please explain why you think this is not a problem? In my understanding of websites, when checking the main page of the site (in this case index.php), there should definitely '200 OK' be returned.

Thanks,
Michael

Author:  infograf768 [ Sat Dec 24, 2005 2:14 pm ]
Post subject:  Re: Serious bug in 1.0.5

I have asked devs to look into this.
My apologies if I have answered too fast.  :'(

Author:  WebJIVE [ Sat Dec 24, 2005 3:57 pm ]
Post subject:  Re: Serious bug in 1.0.5

Ok, I just confirmed this with my site!  Not good.

Results of the GSiteCrawler Server-Test
Tested at 12/24/2005 3:55:24 PM / from 70.232.99.158:

URL=http://www.boardjive.com
Result code: 404 (NotFound / Not Found)
Date: Sat, 24 Dec 2005 15:55:25 GMT
Server: NOYB
X-Powered-By: PHP/4.4.1


[Edit 12/24/05]
Until this bug is fixed, I'm just going to set up a redirect in my .htaccess to point at http://www.boardjive.com/component/opti ... ,1/.  This URL returns 200 whereas index.php or just / returns 404.

Author:  Tonie [ Sat Dec 24, 2005 4:00 pm ]
Post subject:  Re: Serious bug in 1.0.5

Please read this post: http://forum.joomla.org/index.php/topic ... #msg152884. Emir is on it as well.

Author:  WebJIVE [ Sat Dec 24, 2005 4:09 pm ]
Post subject:  Re: Serious bug in 1.0.5

Predator's patch seems to have done the trick.  http://forum.joomla.org/index.php/topic ... #msg152884

Thanks guys!

P.S.  I would make this sticky and possibly declare it [Fixed]

Author:  Saka [ Sat Dec 24, 2005 5:24 pm ]
Post subject:  Re: Serious bug in 1.0.5

OK here comes the patch.

Note that Predator's file fixes the error but excludes 404 handling feature and basically returns you back to 1.0.4.

Find the new sef.php attached and replace it.

I will explain the conditions of returning 404 headers here:

Code:
$juri != "" // This fixes http://www.site.com/
!eregi("index\.php", $_SERVER['REQUEST_URI']) // This fixes http://www.site.com/index.php
!eregi("index2\.php", $_SERVER['REQUEST_URI']) // This fixes http://www.site.com/index2.php
!eregi("/\?", $_SERVER['REQUEST_URI']) // This fixes http://www.site.com/?option=com_content or http://www.site.com/?a=custom


For all other pages like http://www.site.com/blah 404 header is returned.

I am sorry this bug slipped into 1.0.5 but note that report posted at http://developer.joomla.org/sf/go/artf2720?nav=1 was very poor! It says that ALL pages return 404 header which is not true. What it should have said is that it returns 404 header for the homepage only (index.php) when SEF is activated.

If you want us to fix bugs please try to include as many info as possible and exactly how we can replicate the bug. Otherwise it's possible that it won't get fixed which is what happened now.

Author:  WebJIVE [ Sat Dec 24, 2005 5:33 pm ]
Post subject:  Re: Serious bug in 1.0.5

I just uploaded this to my prod. site and everything checks out.  I went all over the site and all links work fine.

Thanks!

Happy Holidays!

Author:  Tonie [ Sat Dec 24, 2005 6:54 pm ]
Post subject:  Re: Serious bug in 1.0.5

Thanks for the quick patch, Emir.

Author:  sc00zy [ Sat Dec 24, 2005 6:59 pm ]
Post subject:  Re: Serious bug in 1.0.5

Is there going to be a re-release or is it fixed for next release?

Author:  halobay [ Sat Dec 24, 2005 9:00 pm ]
Post subject:  Re: Serious bug in 1.0.5

Hello

I just see this at the changelog file

30-Nov-2005 Emir Sakic
+ Added 404 handling for missing content and components
+ Added 404 handling to SEF for unknown files

From where we can say which page will be the 404? Can we create a link to a static content and "assign" 404 functionality to this one?
If someone writes http://www.domain.com/fjfdjfbfdjfdfd will go to the 404 page?
If someone writes http://www.domain.com/content/view/5/6/7/8 will redirect to the same 404 page?


Thanks in advance

Author:  Saka [ Sat Dec 24, 2005 9:25 pm ]
Post subject:  Re: Serious bug in 1.0.5

No you can't assign any 404 page at this point. This will only return 404 headers but the homepage will be displayed.

It wasn't meant that this upgrade would introduce any new features like custom 404 page, this is simply a glitch fix. A custom 404 page can be something for next point release.

Author:  pcigre [ Sun Dec 25, 2005 2:09 am ]
Post subject:  Re: Serious bug in 1.0.5

Thanks for the fix.

Author:  dmb [ Tue Dec 27, 2005 12:04 am ]
Post subject:  Re: Serious bug in 1.0.5

Saka wrote:
OK here comes the patch.


This also fixed a problem with Docman 1.2.3 and IE6 - after upgrading Joomla to 1.0.5 could not download documents in IE6 but could in Firefox. This patch fixed the problem. Will post link to this in Docman forum

Author:  peli [ Tue Dec 27, 2005 7:23 am ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

Using SEF without mod_rewrite no longer works for me with IIS, I used to comment out the "return $mosConfig_live_site.'/'.$string;" on line ~298 and replace with "return $mosConfig_live_site."/index.php?/".$string;"

Author:  allendover1 [ Tue Dec 27, 2005 9:24 pm ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

Hey all, I don't mean to sound stupid and that comes pretty easy to me... LOL... But I have downloaded the sef.zip file, now what do I do with it??? I can put it in my file system but can someone walk me through a fix - as I am not a programmer, oh man I wished I were.  Thanks all

Allen

Author:  sc00zy [ Tue Dec 27, 2005 9:28 pm ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

allendover1 wrote:
Hey all, I don't mean to sound stupid and that comes pretty easy to me... LOL... But I have downloaded the sef.zip file, now what do I do with it??? I can put it in my file system but can someone walk me through a fix - as I am not a programmer, oh man I wished I were.  Thanks all

Allen


Overwrite the sef.php in your includes folder.

Author:  brazzil [ Tue Dec 27, 2005 9:32 pm ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

Just drop the sef.php file inside the zip in the includes folder, overwriting the file that is already there.

Author:  heavyboots [ Tue Dec 27, 2005 10:05 pm ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

AHA!!! Important sanity tip--you must be logged in in order to see the attached patch...  I musta stared at this thread for 10 minutes before I finally figured that out!

:-[

Thanks for the quick fix, btw. Just thought I'd mention this for bright people like me who forgot to log in before reading the thread.

  :laugh:

Author:  allendover1 [ Tue Dec 27, 2005 11:47 pm ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

Ok so all I have to do is just overwrite the other sef.php file... Can do that one easy... Problem is, I see about 4 in my file structure - one is: 
\includes
\components\com_sef
\includes\patTemplate\patTemplate\Function
\includes\patTemplate\patTemplate\Modifier\HTML

I know sc00zy said overwrite it in the Includes folder but the bottom 2 are also in includes folder as well.  I am known to screw things up, so I have to double check, LOL... Easier than reworking something or crashing it.

Thanks alot you all - your great.

Allen

Author:  heavyboots [ Wed Dec 28, 2005 12:39 am ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

Just the one in includes to the best of my understanding...

If you look very closely, it is the only exact match, including case. The others are Sef or SEF or somesuch.

Author:  allendover1 [ Wed Dec 28, 2005 2:10 am ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

Thank you very much... This forum is awesome, people really help here, not just become smart****'s.  Thanks once again very much..

Allen

Author:  Saka [ Wed Dec 28, 2005 4:51 am ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

peli wrote:
Using SEF without mod_rewrite no longer works for me with IIS, I used to comment out the "return $mosConfig_live_site.'/'.$string;" on line ~298 and replace with "return $mosConfig_live_site."/index.php?/".$string;"
The lines are still there. There were no changes here.

Author:  peli [ Wed Dec 28, 2005 8:16 am ]
Post subject:  Re: [FIXED] Serious bug in 1.0.5

Saka wrote:
peli wrote:
Using SEF without mod_rewrite no longer works for me with IIS, I used to comment out the "return $mosConfig_live_site.'/'.$string;" on line ~298 and replace with "return $mosConfig_live_site."/index.php?/".$string;"
The lines are still there. There were no changes here.

For some reason it doesnt work but if i use the sef file from 1.0.4 its back to normal

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/