Elxis CMS Forum

Support => Installation => Topic started by: pavel on March 17, 2009, 19:04:01

Title: no content items to display
Post by: pavel on March 17, 2009, 19:04:01
Hello elxis community!

I installed elxis in the root directory, set up SEO which seems to work fine for sample content, but got a problem with new content:

- on administrator side new content is registered OK, the menu on the front end appears OK, but when I click on the menu leading to the new content item, i get error:

Error 404
We are sorry but the page you requested was not found.
( /index.php?option=com_content&task=view&id=51&Itemid=48 )

If I tick this content item - "show on front page" it is not appearing on the front page as well.  Seems like elxis can not see it....

I tried putting exising (sample) content in the newly created section/category (connected to the main menu with a new link) - it appears.  I tried adding new item in the same section/category - it does not appear.

Any ideas what could be wrong?  :-\
Title: Re: no content items to display
Post by: Farhad Sakhaei on March 17, 2009, 19:18:39
Could you give us access to your administration of the site? Via PM
Title: Re: no content items to display
Post by: CREATIVE Options on March 17, 2009, 19:18:58
90% you have set wrong the languages.

Check it at:
Section
Category
Content Item
Menu links
Title: Re: no content items to display
Post by: Ivan Trebješanin on March 17, 2009, 19:22:09
Hi pavel

Elxis is multilingual CMS, wich means that every content item, category, section, menu item etc... can be set for different language. Make sure that content item is published for the same language as it's category/section, as well as it's menu item.

EDIT: While I was typing, you already recieved two same answers. So check your published languages.
Title: Re: no content items to display
Post by: Farhad Sakhaei on March 17, 2009, 21:15:40
Disable SEO PRO and check it again , Does it work now?
Title: Re: no content items to display
Post by: pavel on March 17, 2009, 21:41:11
Disabled SEO, still not working.  Added new content item into the old section/category (with tick to display on the front page), and added a menu to the main menu... still doesn't work. 

In the configuration.php I switched place of languages (in order to get the display in the order that I want), but I don't think it should have any affect on my problem.

Title: Re: no content items to display
Post by: ks-net on March 17, 2009, 21:50:29
also , check user access level..
Title: Re: no content items to display
Post by: CREATIVE Options on March 17, 2009, 22:21:29
Once again, check the section, category, the item & the component front page (main menu) to be published into the same language.
Title: Re: no content items to display
Post by: pavel on March 18, 2009, 00:26:10
Nothing seem to be helping....  It is very strange.  I'd done installations before and I never had such problem. I'am going to do another installation in the subdirectory, and see how it works.  It could be that some files did not upload fully and the code is broken.  My host accepts .tar and .gz format, so I zipped the installation files (this time it should be full package for sure). So once I try it out, I'll post the result. 
Title: Re: no content items to display
Post by: pavel on March 18, 2009, 02:19:30
OK, here is what I did and what I found. 

I installed elxis in the sub directory, SEO off: content can be added / removed without problems from the back admin panel and by loggin through the front login panel.
Then I thought, why not try the same in the root directory.  I reinstalled elxis, set permissions, SEO Off, .htaccess is not set (SEO is off anyway), tried adding content ......     I can add content if I login through the front panel (and it successfully appears on the front page even if I log out), but I can not see the content which is added through the back admin panel.  I can see only sample content and content added via the front panel login.

paraxina pragmata....  ::)

I might have to proceed with installation in the subdirectory...  :-\
Title: Re: no content items to display
Post by: ks-net on March 18, 2009, 02:32:11
reinstall? or just copy paste files?
did you mixed db path files ... etc?
Title: no content items to display
Post by: pavel on March 18, 2009, 11:00:23
i reinstalled elxis completely (removed all files, unzipped files again, changed permissions, run installation).  Today I also set the htaccess file.   The only thing - I connected it to the old DB and during installation i checked "drop existing tables", so it should all be new.

Still same effect - works from the front end, doesn't work from backend. 
Title: Re: no content items to display
Post by: ks-net on March 18, 2009, 14:24:39
ok topic merged here!

Quote
Still same effect - works from the front end, doesn't work from backend. 
are you using the correct live-site url?

seo is ok now?
content and links  display correctly?
Title: Re: no content items to display
Post by: pavel on March 20, 2009, 11:45:54
I finally found something interesting.  When I add .htaccess file to the root directory, it turns off php5 (default is php4 and I have to enable php5 for for the root directory manually).  When I enable php5 again, my .htaccess file is gone.  I asked the hosting support about this and they asked to check if Elxis can run if php5 is running as cgi and not an Apache module which would work with .htaccess.

Actually, the installation in the sub directory seem to be running OK even without .htaccess file.  But I suspect in my case the problem may be this cgi vs apache.......... 

Can somebody comment on this?
Title: Re: no content items to display
Post by: kebic on March 20, 2009, 14:37:53
I on my server use suphp and run PHP as CGI/FastCGI, and all works great.  :)
Title: Re: no content items to display
Post by: pavel on March 21, 2009, 02:13:59
Duh!!!!   ::) 

I figured it out.....  As usual:  several sleepless nights, lots of coffee and waisted nerves just to find that magic checkbox to tick.......    :P
The major problem was TIME....  Yes, time set in the locale tab of the configuration panel.  My server is in the USA and server's time is in the New York time zone.  During the installation Elxis suggested to me to put -7 hours, which I did and that apparently moved my real time 14 hours to the future.  Somehow, content added NOW, was actually published only 14 hours later.  That is why my added content was not appearing immedeately.  I changed the time from -7 to +6 (to make it exactly what it is here now that the USA already switched to the daylight saving time) and the content started appearing without problems.   When we switch to the daylight saving time I'll have to move it +1 hour to catch up.

I am not sure how it calculates time zones, to me -7 sounded as a correct time zone as between Cyprus & New York it is exactly 7 hours difference and USA is ahead of us. 
Sounds like "Back to the Future" movie episode.

Another problem I mentioned above about php5 running as Apache CGI module was solved by comment from Datahel: I added the following line on top of my .htaccess file:

AddHandler cgi-php5 .php

PHP 5 started working without problems.  I added new .htaccess file and php 5 remained working. 

So I guess this topic can be closed. Thanks for all suggestions and help.  I'll send a link once the site is running, but you'll probably hear from me before that.....   ::)
Title: Re: no content items to display
Post by: datahell on March 21, 2009, 15:18:08
Case closed I guess. He had wrong htaccess file.