Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2001
    Location
    Texas
    Posts
    878

    Question Joomla! Experts! Validation shows 404, even though it is viewable

    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.
    Going out of business in our 10th year.

  2. #2
    Join Date
    Feb 2007
    Location
    Ukraine, Lviv
    Posts
    149
    Hi.

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

  3. #3
    Join Date
    Sep 2001
    Location
    Texas
    Posts
    878
    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:

    Code:
    // 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:

    Code:
    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?
    Going out of business in our 10th year.

  4. #4
    Join Date
    Feb 2007
    Location
    Ukraine, Lviv
    Posts
    149
    Hi,

    I don't see any bad affects possible.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •