Page 1 of 1
Path to 'next page' incorrect
Posted: Wed Apr 04, 2007 10:54 am
by gwgraham
We did an svn upgrade of some 0.8 version blogs about a month ago.
For some reason all these blogs create an incorrect link to the 'next page'
e.g. ....php?/wrapper/archives/P2.html
When it should be simply
e.g. ....php?/archives/P2.html
The main page of the blog is embedded and the url is
E.g.
http://www.shootingpeople.org/sxsw/blog/wrapper.php
In the admin the path to the archive is reading 'archives'
Where is this extra '/wrapper' coming from ?
Thanks
Re: Path to 'next page' incorrect
Posted: Wed Apr 04, 2007 5:14 pm
by garvinhicking
Hi!
What is your "indexFile" option set to? That 'wrapper' can stem because of the 'wrapper.php' file which is regarded as a path argument if not matching what was configured in "indexFile" in the s9y configuration...?
Best regards,
Garvin
Posted: Wed Apr 04, 2007 5:22 pm
by gwgraham
Hi Garvin,
If you mean the 'index file' setting under 'paths' in the configuration admin, this is indeed set to 'wrapper.php'
George
Posted: Wed Apr 04, 2007 5:32 pm
by garvinhicking
Hi!
Could you show me what the wrapper.php file looks like?
Maybe this is related to a bug that occured in the 1.2 alpha2 versions of some time ago, and was meanwhile fixed in recent 1.2 snapshots, so maybe you could check if a more recent snapshot exhibits the same behaviour?
Best regards,
Garvin
Posted: Wed Apr 04, 2007 5:42 pm
by gwgraham
I think you are right. We are on this version. Should we be sticking to a stable release? I didn't do the upgrade but it was done by someone else via svn. Can you let me know if we should have done differently to get a stable version?
Anyway, here is the wrapper.php
<?php
// Let serendipity generate our content:
ob_start();
require 'index.php';
$blog_data = ob_get_contents();
ob_end_clean();
// Now we include our normal content building file.
// This one has to make use of your $blog_data variable to print
// the content where appropriate!
require 'content.php';
?>
Posted: Wed Apr 04, 2007 8:47 pm
by gwgraham
Hi I updated to 1.2-alpha3 but it still does the same thing.
This is the one I updated
http://www.shootingpeople.org/sundance/blog/wrapper.php
Posted: Thu Apr 05, 2007 11:34 am
by garvinhicking
Hi!
Thanks for reporting! I was able to make a patch to properly strip that wrapper-stuff out of the URL:
http://svn.berlios.de/viewcvs/serendipi ... 49&r2=1666
HTH,
Garvin
Posted: Thu Apr 05, 2007 1:46 pm
by gwgraham
Thank you very much! That works now.