sitemap does not work :-(

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Pappnase
Posts: 24
Joined: Wed Feb 08, 2006 9:44 am
Location: Berlin, Germany
Contact:

sitemap does not work :-(

Post by Pappnase »

hello

did i miss something or is this a bug in the 2.0 alpha you can click atsitemap in the menue but nothing happens :-(
Wink Pappnase "Oliver"
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this is a known issue and we're working on it. It only happens on some server configurations.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi Oliver,
could you post your server configuration?
We're investigating why in some circumstances mod_rewrite seems not to work as expected.

Regards,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
m00ksta
Posts: 5
Joined: Wed Nov 14, 2007 11:47 am

Post by m00ksta »

Hi,

I am having the same problem with the sitemap and also the news links.

I have just upgraded from 1.6 to 2.0.3 and everything seems to be working except for the mod rewrites for the sitemap and news sections.

I'm confused as to why it doesn't work as I've run a checker on the reg expressions and they seem to work as I would expect.

my site is here:
http://support.rfsolutions.co.uk/faq/

Is there a known fix for this problem?

The site is hosted on a 1&1 web server.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which Apache do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
m00ksta
Posts: 5
Joined: Wed Nov 14, 2007 11:47 am

Post by m00ksta »

The version is Apache/1.3.33 (Unix)

You can see the full info file here, if it is of any help: php info
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

is it possible to test Apache 2?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
m00ksta
Posts: 5
Joined: Wed Nov 14, 2007 11:47 am

Post by m00ksta »

I could install Apache 2 to test it, I'll give it a go when I've got some spare time.

Haven't you seen any other installations where this happens?
4x4uk
Posts: 3
Joined: Thu Nov 29, 2007 4:07 pm
Location: UK
Contact:

Post by 4x4uk »

similar problem here too, just moved to a new webhost and carried out the upgrade to 2.0.4 at the same time. Sitemap gave a completely blank page and the rss feeds give an server error.

A quick fix work around for the sitemap problem can be done by changing the following in sitemap.php
find the following

Code: Select all

header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
comment it out and add the following line underneath

Code: Select all

header('Location: http://www.yoursite.com/faq/sitemap.php');
where yoursite.com is the url of your site and faq is the directoryname of your myfaq installation

Unfortunately as I am still in the process of moving files and document to the new webhost and getting all the scripts and programs functioning I haven't had time yet to work out why that particular line is causing a problem.
with regards to rss.php not sure why the following error is occuring yet as its lower down the list of items to fix at the moment
Error 500
Error message:
Premature end of script headers: rss.php
you can see the current myfaq here http://www.4x4uk.org/faq
m00ksta
Posts: 5
Joined: Wed Nov 14, 2007 11:47 am

Post by m00ksta »

I think this is a different problem as you are not using re writes.

I think I will just remove the link to the sitemap on my site as if it is an apache version problem I would need to change web server and it is not worth the hassle.

I would like to remove the news story links as well but I'm not sure which file would need editing, any one got any idea?
4x4uk
Posts: 3
Joined: Thu Nov 29, 2007 4:07 pm
Location: UK
Contact:

Post by 4x4uk »

yeah to remove the news items you need to edit the index.tpl file

look for this

Code: Select all

 <!-- start right sidebar -->
        <div class="rightcolumn sidebar" id="sidebar-right">
            <div class="rightpadding">

            {rightBox}

            </div>
        </div>
        <!-- end right sidebar -->
removing

Code: Select all

{rightbox}
will eliminate the complete contents of the right sidebar but leave the container in place

if you just want to remove the rss link then edit startpage.tpl
4x4uk
Posts: 3
Joined: Thu Nov 29, 2007 4:07 pm
Location: UK
Contact:

Post by 4x4uk »

the problem with rss.php not working was related to permissions

works fine when chmod to 644
m00ksta
Posts: 5
Joined: Wed Nov 14, 2007 11:47 am

Post by m00ksta »

I think you misunderstood me, I just wanted to remove the news, not the entire, right hand section.

I've just deleted the news from the administration page.
Post Reply