The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Thu Apr 05, 2012 12:53 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Apr 05, 2012 12:28 am
Posts: 1
Hello,
I am getting a 404 error when I go to the site i just put up.

The site is in a sub directory and hosted on godaddy

version 2.5.4

For settings I have had in SEO setting as follows:

SEO Settings all have been set to either yes or no in a combination of ways
Search Engine Friendly URLs
Use URL rewriting (changed the htaccess.txt to htaccess.
Adds Suffix to URL
Unicode Aliases

I can get into the admin area no problem.

This is the error I getting once I put the Joomla into debug system:
------------------------------------------------------------------------
Article not found

Call stack
# Function Location
1 JSite->dispatch() D:\hosting\5089466\html\football\index.php:42
2 JComponentHelper::renderComponent() D:\hosting\5089466\html\football\includes\application.php:198
3 JComponentHelper::executeComponent() D:\hosting\5089466\html\football\libraries\joomla\application\component\helper.php:357
4 require_once() D:\hosting\5089466\html\football\libraries\joomla\application\component\helper.php:388
5 JController->execute() D:\hosting\5089466\html\football\components\com_content\content.php:18
6 ContentController->display() D:\hosting\5089466\html\football\libraries\joomla\application\component\controller.php:754
7 JController->display() D:\hosting\5089466\html\football\components\com_content\controller.php:77
8 ContentViewArticle->display() D:\hosting\5089466\html\football\libraries\joomla\application\component\controller.php:715
9 JView->get() D:\hosting\5089466\html\football\components\com_content\views\article\view.html.php:35
10 ContentModelArticle->getItem() D:\hosting\5089466\html\football\libraries\joomla\application\component\view.php:482
11 JError::raiseError() D:\hosting\5089466\html\football\components\com_content\models\article.php:163
12 JError::raise() D:\hosting\5089466\html\football\libraries\joomla\error\error.php:251

--------------------------------------------------------------------------

If anyone has any suggestions I sure would appreciate it or need additional information!!

Thanks in advance
Andrew


Top
 Profile  
 
PostPosted: Sun May 27, 2012 11:06 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun May 27, 2012 10:55 pm
Posts: 4
I'm having the same problem. My Joomla 2.5.4 is also installed in a subdirectory of the root (so, e.g. in "www.example.com/joomla25").

Everything works fine if i use the full URL, instead of the directory name ("www.example.com/joomla25/index.php"). Using the stacktrace in you post, I debugged a little and it appears that in these two cases (with or without the "index.php"), two different views are used. When using only the directory a view of class ContentViewArticle is used. When you add "index.php", ContentViewFeatured is used.

The latter is probably the right one, but I haven't figured out why other views are used here.

Maybe someone can use this extra information.


Top
 Profile  
 
PostPosted: Mon May 28, 2012 6:11 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Aug 25, 2011 7:06 am
Posts: 5
I found this problem,but I use PHP version 5.2 on appserv 2.5.9 and cannot run last version.

_________________
I'm a Programmer Oh Wow.


Top
 Profile  
 
PostPosted: Mon May 28, 2012 6:33 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri May 25, 2012 8:32 am
Posts: 3
I also found this problem,but i don't know how to solve.


Top
 Profile  
 
PostPosted: Mon May 28, 2012 7:29 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 14709
Location: Kent, England
If you are enabling more than the default SEO settings that are preset with the installation, are you also creating the .htaccess (dot htaccess) file as advised on the Global Configiuration pages, by editing the name of the included htaccess.txt file and saving it in the joomla_root/ directory?


Top
 Profile  
 
PostPosted: Mon May 28, 2012 7:30 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 14709
Location: Kent, England
[Mod note: Moved from Installation Forum to SEO Forum.]


Top
 Profile  
 
PostPosted: Mon May 28, 2012 1:34 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun May 27, 2012 10:55 pm
Posts: 4
I (think I) haven't changed anything in the SEO settings:

Search Engine Friendly URLs: Yes
Use URL Rewriting: No
Adds Suffix to URL: No
Unicode Aliases: No
Include Site Name in Page Titles: No

In the joomla root folder there is file called htaccess.txt. My hoster is running Windows.

I intercepted the SQL that Joomla is sending to get the MySQL database, and it's looking for article id 0, which (obviously) is not in my db.

Does anyone know how / where Joomla determines which view to use?

BTW: I think this is not a (real) SEO-problem, but really an installation problem. jhmo.


Top
 Profile  
 
PostPosted: Mon May 28, 2012 6:52 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun May 27, 2012 10:55 pm
Posts: 4
More new info, I hope someone will eventually get a bright idea ;)

I've put some debugging info in the original stack trace [in JController.display()], displaying JRequest::getURI().

When I use the full URI (http://www.example.com/joomla25/index.php) the function returns:

/joomla25/index.php

when I use only the directory (http://www.example.com/joomla25) the function returns:

/joomla25/Index.php

The difference is the capital I for Index.php. Appearently something is case sensitive here and something (else) is using the wrong casing.

Greets and TIA

PS: at that same position in the code, the view name is determined. For example.com/joomla25/index.php the view is "featured" and for example.com/joomla25/ the view is "article". I haven't found where this view is determined yet. Let me know if you do plz.


Top
 Profile  
 
PostPosted: Tue May 29, 2012 9:21 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun May 27, 2012 10:55 pm
Posts: 4
More debug info: it definitely has something to do with the capital "I" in the URI.

In /includes/router.php around line 57 (in JRouterSite.parse()):

Code:
// If a php file has been found in the request path, check to see if it is a valid file.
// Also verify that it represents the same file from the server variable for entry script.
if (file_exists(JPATH_SITE.$matches[0]) && ($matches[0] == $relativeScriptPath)) {


If i replace that line of code with the next one, everything works fine again:
Code:
if (file_exists(JPATH_SITE.$matches[0]) && (strtoupper($matches[0]) == strtoupper($relativeScriptPath))) {


Obviously this is not the way to fix this, but to me it proves that something is wrong with the URI.

Haven't figured out where the capital "I" in the URI comes from, though...

Probably more to come...

Regards.


Top
 Profile  
 
PostPosted: Fri Jun 01, 2012 4:13 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 30, 2012 7:19 pm
Posts: 7
Hi Guys

I have a similar problem.

- I installed joomla 2.5.4
- I have setup the site offline
- I have finished the site articles, menus etc.
- I have setup the site as online

and I am getting the 404 error

- when I turnoff the the site, it again starts working with password login ?

Somebody has a solutiıon for this please ?


Top
 Profile  
 
PostPosted: Sun Jun 03, 2012 10:16 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 30, 2012 7:19 pm
Posts: 7
SOLVED

The problem is caused from DJ Image Slider.

- I have setup all the site in "site offline", joomla 2.5.4
- Than I turned the site to online and have 404 error

The problem was coming from "dj image slider plugin". If there is amistake in the slide categories, sub categories, and linked slides. You are having 404 error when the site is online. But strangely there is no error when the site is offline.

Anyway when you fix the categories its OK.


Top
 Profile  
 
PostPosted: Fri Aug 17, 2012 2:51 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Feb 27, 2012 6:05 pm
Posts: 1
I had problem with 404 error on page where i have used DJ Slider, but only in component mode; with reading images from foder site was ok;
So what was causing this was one of the slide have been setup to link to article and article field was empty - after fixing this setting everything would work fine!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 



Who is online

Users browsing this forum: agooley, cssbutton and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group