Recent Topics

1 Jul 08, 2009 04:10    

My b2evolution Version: 3.2.0

I have never yet gotten this stub thing to work fully, am having ANOTHER go at it.

My blog is located at http://helioglyphs.com/blogs/blog4.php. I want my blog to be located at http://helioglyphs.com/argylestreet/

I have renamed a_stub.php to argylestreet.php. Since my blog is blog 4, I have changed line 18 from $blog = 1; to $blog = 4;

I have uploaded argylestreet.php into helioglyphs.com. Since the contents of /blogs/ is in its own file inside helioglyphs.com, I have also uploaded argylestreet.php into helioglyphs.com/blogs.

In blogsettings>url, I have specified absolute path and entered http://helioglyphs.com/argylestreet/ (and saved). (I've also tried ..../argylestreet.php and I've also tried it all with www.)

If I put http://helioglyphs.com/argylestreet OR http://helioglyphs.com/blogs/argylestreet OR http://helioglyphs.com/blogs/argylestreet. with or without .php, I get 404 not found.

If I put http://helioglyphs.com/argylestreet.php , I get

Warning: require_once(/home2/wordturn/public_html/helioglyphs/conf/_config.php) [function.require-once]: failed to open stream: No such file or directory in /home2/wordturn/public_html/helioglyphs/argylestreet.php on line 43

Fatal error: require_once() [function.require]: Failed opening required '/home2/wordturn/public_html/helioglyphs/conf/_config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/wordturn/public_html/helioglyphs/argylestreet.php on line 43

If I put its old address, http://helioglyphs.com/blogs/blog4.php, the address in the browser window changes to http://helioglyphs.com/argylestreet --and I get a 404 not found. (I can still get to my blog by going to another blog and around through admin--so I know it hasn't disappeared.)

Should I be editing line 43?

2 Jul 08, 2009 07:34

You need to add /blogs/ to the path:

require_once dirname(__FILE__).'/blogs/conf/_config.php';

¥

3 Jul 08, 2009 14:51

Great--that makes http://helioglyphs.com/argylestreet.php work. Thanks!

(Note: on many apache installations, you will be able to omit the .php at the end of the URL, but you still have to name your file something.php).

I'm on bluehost which is running apache version 2.2.11 (unix) --any chance of getting it to work without the .php in the url?

4 Jul 08, 2009 15:25

If I go from the backoffice to my blog, the b2evo toolbar disappears and I can't get back to the backoffice without logging in again.

If I click the "back" button in Firefox, the last admin page is displayed, but if I try to DO anything there I get a "you must log in" message. If I click the "back" button in Safari, I go straight to "you must log in."

Do I need a stub file for the back office, too, since everything is tucked inside helioglyphs.com/blogs? Or is this a 3.2 issue? or ???

5 Jul 08, 2009 15:39

NOW I'm getting "you must log in" message when trying to go from Widgets to General under Blog Settings--going to go do something else for a while and see if it all settles.

6 Jul 08, 2009 16:11

ok, one at a time

1) create /argylestreet/index.php ( or use htaccess ) and change your "specific url"

2) cookies are set by b2evo install path so you need to meander into /conf/_advanced.php and change the bit that mutters about cookies

/**
 * This is the path that will be associated to cookies.
 *
 * That means cookies set by this b2evo install won't be seen outside of this path on the domain below.
 *
 * @global string Default: preg_replace( '#https?://[^/]+#', '', $baseurl )
 */
//$cookie_path = preg_replace( '#https?://[^/]+#', '', $baseurl );
$cookie_path = '/';

3) chances are your current cookies have been toasted, so I'd also change this section of the same file ;)

/**
 * Short name of this system (will be used for cookies and notification emails).
 *
 * Change this only if you install mutliple b2evolutions on the same website.
 *
 * WARNING: don't play with this or you'll have tons of cookies sent away and your
 * readers surely will complain about it!
 *
 * You can change the notification email address alone a few lines below.
 *
 * @todo generate a random instance name at install and have it saved in the global params in the DB
 *
 * @global string Default: 'b2evo'
 */
//$instance_name = 'b2evo'; // MUST BE A SINGLE WORD! NO SPACES!!
$instance_name = 'yabba'; // MUST BE A SINGLE WORD! NO SPACES!!

Save, upload, hit admin, pray ;)

¥

7 Jul 08, 2009 19:18

Well, that seems to have taken care of the problem I now know as cookies not holding. Thank you.

#1 above is rather abbreviated; after some noodling, this is what I did: I created a new folder under helioglyphs named argylestreet. I copied index.php, adding /blogs/ to the line identical to the one in the stub file, and uploaded it to the folder. Was that your intention? (I'm still not sure.)

Also, is it just the luck of ones webhost's apache installation whether .php is needed in the url, or can something be done about it?

8 Jul 09, 2009 08:51

I guess it was a smidge abbreviated :P

Create subfolder /argylestreet/ and move your argylestreet.php into it and rename the file to index.php ( you'll also need to change the path to "../blogs/" )

Now you can change your blog settings to "absolute url" and remove the ".php" bit.

Alternatively, you can use htaccess to rewrite all /argylestreet/ calls to argylestreet.php

RewriteCond %{REQUEST_URI} ^/argylestreet/
RewriteRule .*$ /argylestreet.php [QSA,L]

¥

10 Jul 09, 2009 18:54

I never read the FAQ's :(

¥


Form is loading...