1 benfranske Jan 18, 2006 03:04
3 c_ever Jan 19, 2006 00:24
Would this solve the problem I'm having here: http://forums.b2evolution.net/viewtopic.php?t=6564&highlight= ?
4 benfranske Jan 19, 2006 00:54
Sort of, AFAIK you wil still not get 404s for non-existant pages, though that shouldn't be extremely hard to implement. This should fix the problem of being unable to link to individual posts. Please create a link from that topic to this one as well so others can find this solution, I don't have time at the moment.
5 benfranske Jan 25, 2006 03:16
Any comment on this from a developer?
6 blueyed Jan 25, 2006 19:35
I've looked into it.
Your fix looks reasonable.
I'll commit the following to _blog.class.php:
case 'baseurlroot':
$blog_baseurl = $this->get('baseurl');
if( preg_match( '#(https?://(.+?)(:.+?)?)/#', $blog_baseurl, $matches ) )
{
return $matches[1];
}
debug_die( 'Blog::get(baseurl) - assertion failed.' );
and
// Check and Remove blog base URI from ReqPath:
$blog_baseuri = substr( $Blog->get('baseurl'), strlen( $Blog->get('baseurlroot') ) );
to _blog_main.inc.php if further tests work out o.k.
(Note that I've renamed $blog_baseurl to $blog_baseurl because it was confusing).
I've also found some other small issues around while debugging it.
7 benfranske Jan 25, 2006 20:19
Thanks! With 0.9.X I was using a custom hack/stub to accomplish something similar and I'm thrilled to have the ability to do this built-in so I'll do just about anything I can do to help with this.
8 blueyed Jan 26, 2006 00:26
I've just seen on your blog that the "Next page/posts" links are broken. Have you hacked something there?
I can take a look at it tomorrow, but it would help if you could post your blog setup:
- "Blog folder URL" is absolute? - at "http://ben.franske.com/blogs/"?
- "Preferred access type"?
- "Stub name"?
- "URL blog name"?
9 benfranske Jan 26, 2006 00:42
You've got a better eye than me! I hardly ever use those links so I wouldn't have noticed that for a while.
Site information:
b2evo installed to: http://franske.com/blogs/
b2evo version: 1.6 Alpha (with the mods I mentioned at the beginning of this thread)
Blog folder URL (Absolute): http://ben.franske.com/blogs/
Explicit reference to stub file (Advanced): bensbits.php
URL Blog Name: bensbits.php
My guess is that there is another place in the code where the site url root is being used instead of the blog url root. I think on Friday I'll upgrade from 1.6 Alpha to CVS unless you tell me there's a lot of broken stuff in CVS.
10 blueyed Jan 26, 2006 01:33
There's not more broken in CVS than in the Alpha I'd say. But as said elsewhere, the Plugins will get some bump tomorrow and DB tables will also get altered before the beta. If you think that's no problem to handle, go for it, but otherwise I'd just wait for the beta and apply some patches by hand.
I've taken a quick look into the code regarding the "Next >" issue and it may be working in current CVS.
11 benfranske Jan 26, 2006 04:37
I think I'm going to upgrade to CVS. I think I have enough database experience to avoid screwing it up too much. I know it will be a big help for bugsquashing if I'm running the latest code.
12 benfranske Jan 28, 2006 00:34
I have just finished upgrading from 1.6 Alpha to a snapshot of CVS as it is right now. The "Next Page/Posts" does seem to be working now.
13 blueyed Jan 29, 2006 11:23
No, the "Next posts" link still do not work.
I've looked at it yesterday and the root of this problem is with the base tag in the html head that links to the skin's url (which is on $baseurl) and makes the "next posts" links go to the baseurl then to (those links are relative to the domain and without the BASE tag they would stay on the subdomain).
I've added it to the bugtracker, waiting for François to comment on it.
I think I've fixed this in my copy of Phoenix 1.6 Alpha though I haven't tested it thoroughly yet. Here's what I did, note this may not (probably is not) the cleanest fix for this problem but it does work.
In _blog_main_inc.php:
Comment out the if( $Blog->get( 'siteurl' ) ) section (around line 155) to force the else statement to run (this is how it is done in the current CVS version). Modify the line
so that it reads
In _blog.class.php:
Inbetween the get case baseurl and get case basehost add:
Any thoughts?