Recent Topics

1 Jan 26, 2006 21:14    

Hi,

I'm trying to make my first skin and have copied over the custom skin and given it a new name. I've also entered it into my CVS system so I can track changes.

Now when I select it as the active skin and then look at that blog in a browser I get ""Please, do not access this page directly"... The only changes I've made are moving a directory around and adding CVS dirs... What gives...?

The permissions are as below... I can browse and execute the php from the web browser so it doesn't seem a users/permissions problem, or is it...?


 ls -l
total 64
-rw-r--r--  1 jaed jaed   917 2006-01-26 19:47 _arcdir.php
-rw-r--r--  1 jaed jaed  2166 2006-01-26 19:47 _bloglist.php
-rw-rw-rw-  1 jaed jaed  5192 2006-01-26 19:47 custom.css
drw-rw-rw-  2 jaed jaed  4096 2006-01-26 19:47 CVS
-rw-r--r--  1 jaed jaed  1036 2006-01-26 19:47 _feedback.php
drw-rw-rw-  3 jaed jaed  4096 2006-01-26 19:47 img
-rw-r--r--  1 jaed jaed   930 2006-01-26 19:47 _lastcomments.php
-rw-r--r--  1 jaed jaed  1593 2006-01-26 19:47 _linkblog.php
-rw-r--r--  1 jaed jaed 15749 2006-01-26 19:47 _main.php
-rw-r--r--  1 jaed jaed   724 2006-01-26 19:47 _msgform.php
-rw-r--r--  1 jaed jaed   916 2006-01-26 19:47 _profile.php
-rw-r--r--  1 jaed jaed   928 2006-01-26 19:47 _subscriptions.php

2 Jan 26, 2006 23:42

jæd,

Sounds like you're running v1.7 CVS? If this is the case, your problem might be with the PHP code at the top of the file, as it's changed from earlier versions.

The check at the top of the file has changed from this...

<?php 
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
?>

To this (for v1.6 or higher) ...

<?php 
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
?>

Hope this helps.

3 Jan 26, 2006 23:56

AFAIK I'm running b2evolution version 0.9.1, the last stable release as this is intended for a production environment. The cvs is our own internal cvs rather than b2evolutions own cvs.

The header *is* the following, but this is just a copy of the "custom" skin in that release...

if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

4 Jan 27, 2006 01:27

jæd,

Look again, b/c IF you are running v0.9.1, then EVO_MAIN_INIT will never be defined and you'll get the "Please don't access this page directly" message.

This is the reverse of the problem I thought you were having, but it would end up causing the same problem, if it is indeed the issue.

b2evo versions <1 use "!defined('DB_USER')"

b2evo versions >1 use "!defined('EVO_MAIN_INIT')"

Hope this helps.

5 Jan 27, 2006 11:19

Ah... I see what I did... I was taking a look at the the 1.6 Alpha and must of mixed up the templates... Doh...! Everything is working ok now...


Form is loading...