Recent Topics

1 Nov 21, 2005 20:41    

I've always had stubfiles setup which were basically subdirectories within one of my other stubfiles which I used to display posts in a certain catergory. After upgrading to v0.9.1 this stopped working. This probably sounds confusing as hell so I'll draw a little diagram

my site goes like this

http://newsbc.ca
http://newsbc.ca/movies/ (second blog, stubfile)
http://newsbc.ca/movies/subdir (part of second blog, only displays posts with specified category, stubfile)

so http://newsbc.ca/movies/ works fine but any of the subdirs under it don't work (I've even tried the exact stubfile that I'm using for http://newsbc.ca/movies/.

As I say this worked prior to 0.9.1

example of subdirs are
http://newsbc.ca/movies/bigfathairydude/
http://newsbc.ca/movies/jac/
http://newsbc.ca/movies/pat/
http://newsbc.ca/movies/kd/

as you can see each return's a 404:
404 Not Found

b2evolution cannot resolve the requested URL.

see below for a look at the stubfile contents

<?php

$blog = 6;
$cat = 61;
$show_statuses = array();
$linkblog_cat = '';
$linkblog_catsel = array( );
$timestamp_min = '';
$timestamp_max = 'now';


/**
 * That's it, now let b2evolution do the rest! :)
 */
require("/path/to/blog/b2evocore/_blog_main.php");
?>

2 Nov 23, 2005 01:51

Should I post this to a different area of the forum? or perhaps add some additional information? is this a stumper? ;)

3 Nov 23, 2005 02:24

I've only ever had stub files one directory deep, so I'm not sure I can be of much help. My only initial idea is using relative paths as oposed to absolute paths.

If your evocore folder is:
/home/domain/public_html/evocore

and your stup is at:
/home/domain/public_html/movies/kd/

then perhaps changing

require("/path/to/blog/b2evocore/_blog_main.php");

to

require("../../b2evocore/_blog_main.php");

will work?

Er... that is... if that's even correct php. Does that line allow relative paths?

4 Nov 23, 2005 06:38

damn, thanks dkitty i thought that may work but alas still no luck.

i'd like to avoid moving those subdirs because it makes sense the way it is now and it's easier to manage.

any more ideas?

5 Nov 23, 2005 16:34

No, I don't have any other ideas off the top of my head. Calling _blog_main.php by http likely isn't possible. At least I think it shouldn't be possible. You could make it possible but I think that's a bad idea.

I'll think on it a bit and ask around some. I'm all curious about this now.

Edit: Wait. Are you still using your old stub files? I haven't looked at stubs in a while, but when a new version comes out I always make copies of stub_a (or a_stub) from the new version and start fresh. It might be worth a try if you haven't done it already.

6 Nov 23, 2005 20:49

good call, i think i'm using the old stub still. I'll see if I can dig up the new one.

thanks

dkitty wrote:

No, I don't have any other ideas off the top of my head. Calling _blog_main.php by http likely isn't possible. At least I think it shouldn't be possible. You could make it possible but I think that's a bad idea.

I'll think on it a bit and ask around some. I'm all curious about this now.

Edit: Wait. Are you still using your old stub files? I haven't looked at stubs in a while, but when a new version comes out I always make copies of stub_a (or a_stub) from the new version and start fresh. It might be worth a try if you haven't done it already.

7 Nov 23, 2005 20:54

k, same problem with the new stubfile.

1 thing I noticed though is if I use the incorrect blog

$blog = 69; for instance

it returns a "Requested blog does not exist!" error.

what does this mean? f'd if i know, maybe someone who knows the code can make sense of this, is there anyway I can get more verbose messaging with the 404?


Form is loading...