Web Hosting Talk







View Full Version : Joomla! Experts! Validation shows 404, even though it is viewable


Perfecthost
04-06-2008, 03:34 PM
Hi All-

I have been creating sites in Joomla! for a while, but have run across something that is making me pull my hair out....what little is still left. I have searched for answers for hours tonight.

Months ago, I created a site, http://www.dorntanks.com , and moved on to others. The version is 1.0.15, upgraded yesterday from 1.0.13. The owner contacted me about why Google had not picked it up. I thought it strange, so checked. Google shows it to be a 404 error. When I tried to run a validator, it showed 404 error, and could not check it. The site actually shows and functions fine. I upgraded to the latest 1.0.15 version to see if it would do the trick. It was a no-go. Still 404.

I disabled all sef. No change.
I played around with the .htaccess file. No change.
I returned to the original .htaccess file. No change.
I removed the .htaccess file. No change.
I removed all 404sef com and tried it. No change.
I replaced the .htaccess file with one that is working great on another site. No change.
I re-installed the latest 404sef (and enabled sef). No change.
I disabled sef again. No change.

Still 404, even though it is showing. Google agrees with the 404.

Someone suggested trying a different template. I did. Yep, you guessed it. 404.

Have pity and save a man's sanity.

VentureMaker
04-08-2008, 10:27 AM
Hi.

How do you see that 404 error in Google? Have you tried to create a sitemap and submit it to Google?

Perfecthost
04-10-2008, 12:08 AM
I can now use the validator. However, I had to do something that may incur the wrath of the Lords of Joomla!

In the index.php file in root (not in the templates), there is a section that looks like this:

// precapture the output of the component
require_once( $mosConfig_absolute_path . '/editor/editor.php' );

ob_start();

if ($path = $mainframe->getPath( 'front' )) {
$task = strval( mosGetParam( $_REQUEST, 'task', '' ) );
$ret = mosMenuCheck( $Itemid, $option, $task, $gid );

if ($ret) {
require_once( $path );
} else {
mosNotAuth();
}
} else {
header( 'HTTP/1.0 404 Not Found' );
echo _NOT_EXIST;

I removed this part:

else {
header( 'HTTP/1.0 404 Not Found' );
echo _NOT_EXIST;
}

Now, I can work with the validator and Google, but wonder what kind of consequences the code will throw my way. What do you think? Any advice?

VentureMaker
04-10-2008, 04:09 AM
Hi,

I don't see any bad affects possible.