Recent Topics

1 Mar 11, 2006 08:48    

Is v1.8 still b2evo! ;)
The whole file structure is different, anywhoo I couldnt get it to work...

Fatal error: Call to a member function on a non-object in D:\Work\Site\b2evolution\blogs\_header.php on line 13

When i try and view the user side

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

* This problem can sometimes be caused by disabling or refusing to accept
cookies.

When i try the backoffice.

So i'm switching back to the 1.6 i had, so good luck.

2 Mar 12, 2006 19:58

You're not talking about a plain install of CVS, are you?

3 Mar 12, 2006 20:22

Yer cvs download via sourceforge via wincvs.

4 Mar 12, 2006 23:02

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

* This problem can sometimes be caused by disabling or refusing to accept
cookies.

When i try the backoffice.

That is probably caused, when $admin_url is still "http://.../blogs/admin/" - admin.php detects that you are trying to access the old path to the backoffice (it's just /admin.php) now and redirects to $admin_url.

Are you setting it in /conf/_overrides_TEST.php or something?

5 Mar 12, 2006 23:07

Heres what i did;
Downloaded a fresh copy of 1.8 (so i deleted the old cvs first)
Then copied over my settings of the old _config.php to the new one - baseurl, and database settings.
Gave it a shot and thats what happened.

6 Mar 12, 2006 23:45

Strange..

I (and François probably also) are using it. I even started converting my main live blog over to it.

Have you tried updating it (from CVS) again?

7 Mar 13, 2006 00:41

K just redownloaded the cvs, did the new install (with new config file), with old database, it upgraded a few thins in the db, went to login and same error message, firefox detected.....

But heres the url if it helps;

http://localhost/site/b2evolution/blogs/admin.php?ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit&ctrl=edit

I will try deleting the database, and do a complete reinstall.

8 Mar 13, 2006 00:43

K just deleted the database and did a new install.
This time i got the login screen, typed the new info and same thing.

But at least with this version of the cvs i'm not getting the _header.php problem anymore ;)

9 Mar 13, 2006 00:49

Sorry for the tripple post but i found the line causing the problem;


	header( 'HTTP/1.1 301 Moved Permanently' );
	header( 'Location: '.url_add_param( $admin_url, 'ctrl='.$ctrl.$query_string, '&' ) );

because when i do this;


	//header( 'HTTP/1.1 301 Moved Permanently' );
	header( 'Location: http://google.com' );
	//header( 'Location: '.url_add_param( $admin_url, 'ctrl='.$ctrl.$query_string, '&' ) );


it redirects to google.com

EDIT:
Ok doing this makes it work ;)

// Redirect old-style URLs (e.g. /admin/plugins.php), if they come here because the webserver maps "/admin/" to "/admin.php"
if( false )
if( ! empty( $_SERVER['PATH_INFO'] ) )
{

10 Mar 13, 2006 00:56

Maybe I got lucky, but when I decided to give 1.8 a go I tortoised a copy of it, uploaded it, gave it a database, and it worked. I've since deleted it because I'm changing hosts and it's just more clutter to move, but briefly it worked. Lately, and not to get too far off track, I'm having a hard time tortoising updates. I get quite a few error messages I've not seen before, and am frequently told I need to log in. Perhaps there is something buggered at the sourceforge side of things that results in non-official people (meaning those of us without passwords) getting less than effective versions?

11 Mar 13, 2006 01:08

Ok that header error message is still there but its only in my lightality skin.
It happens on every line of code where i do;

include('_header.php');

Because my lightality skin has some of its own header files.

To fix this i've had to add the full path to every include.

Anyone have any idea at how v1.8 made it go like this because it's a real pain in the ass.
Couldn't b2evo just reset the variable that is causing this back to normal when it starts to do the display ?

12 Mar 13, 2006 01:20

Alrite got lightality working with 1.8, but why the rename of permalink?
Maybe you should keep the function permalink which just runs permanent_url so skinners don't need to worry about 1.6->1.8 :'(

13 Mar 13, 2006 21:49

balupton, could you please give me the output of

pre_dump( $_SERVER );

(where you've put the "if( false )"), when going to /blogs/admin.php, which causes the problem with you?

I'm buffled, that PATH_INFO is set with you..

14 Mar 14, 2006 17:14


array (
  'ALLUSERSPROFILE' => 'C:\\\\Documents and Settings\\\\All Users',
  'CLASSPATH' => 'C:\\\\Program Files\\\\Java\\\\jre1.5.0_06\\\\lib\\\\ext\\\\QTJava.zip',
  'CommonProgramFiles' => 'C:\\\\Program Files\\\\Common Files',
  'COMPUTERNAME' => 'NEWCOMP',
  'ComSpec' => 'C:\\\\WINDOWS\\\\system32\\\\cmd.exe',
  'CONTENT_LENGTH' => '0',
  'FP_NO_HOST_CHECK' => 'NO',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
  'HTTP_CONNECTION' => 'keep-alive',
  'HTTP_HOST' => 'localhost',
  'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1',
  'HTTP_COOKIE' => 'not for your eyes too see',
  'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
  'HTTP_KEEP_ALIVE' => '300',
  'HTTPS' => 'off',
  'INCLUDE' => 'C:\\\\Program Files\\\\Microsoft Visual Studio .NET 2003\\\\SDK\\\\v1.1\\\\include\\\\',
  'INSTANCE_ID' => '1',
  'LIB' => 'C:\\\\Program Files\\\\Microsoft Visual Studio .NET 2003\\\\SDK\\\\v1.1\\\\Lib\\\\',
  'LOCAL_ADDR' => '127.0.0.1',
  'NUMBER_OF_PROCESSORS' => '1',
  'OS' => 'Windows_NT',
  'Path' => 'C:\\\\WINDOWS\\\\system32;C:\\\\WINDOWS;C:\\\\WINDOWS\\\\System32\\\\Wbem;C:\\\\Program Files\\\\Microsoft SQL Server\\\\90\\\\Tools\\\\binn\\\\;C:\\\\Program Files\\\\QuickTime\\\\QTSystem\\\\;C:\\\\Program Files\\\\cvsnt;C:\\\\Program Files\\\\Microsoft Command Shell\\\\v1.0\\\\;C:\\\\Program Files\\\\ATI Technologies\\\\ATI.ACE\\\\',
  'PATH_INFO' => '/site/b2evolution/blogs/admin.php',
  'PATH_TRANSLATED' => 'D:\\\\Work\\\\Site\\\\b2evolution\\\\blogs\\\\admin.php',
  'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH',
  'PROCESSOR_ARCHITECTURE' => 'x86',
  'PROCESSOR_IDENTIFIER' => 'x86 Family 15 Model 15 Stepping 0, AuthenticAMD',
  'PROCESSOR_LEVEL' => '15',
  'PROCESSOR_REVISION' => '0f00',
  'ProgramFiles' => 'C:\\\\Program Files',
  'QTJAVA' => 'C:\\\\Program Files\\\\Java\\\\jre1.5.0_06\\\\lib\\\\ext\\\\QTJava.zip',
  'REMOTE_ADDR' => '127.0.0.1',
  'REMOTE_HOST' => '127.0.0.1',
  'REQUEST_METHOD' => 'GET',
  'SCRIPT_NAME' => '/site/b2evolution/blogs/admin.php',
  'SERVER_NAME' => 'localhost',
  'SERVER_PORT' => '80',
  'SERVER_PORT_SECURE' => '0',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'SERVER_SOFTWARE' => 'Microsoft-IIS/5.1',
  'SystemDrive' => 'C:',
  'SystemRoot' => 'C:\\\\WINDOWS',
  'TEMP' => 'C:\\\\WINDOWS\\\\TEMP',
  'TMP' => 'C:\\\\WINDOWS\\\\TEMP',
  'USERPROFILE' => 'C:\\\\Documents and Settings\\\\LocalService',
  'VS71COMNTOOLS' => 'C:\\\\Program Files\\\\Microsoft Visual Studio .NET 2003\\\\Common7\\\\Tools\\\\',
  'VS80COMNTOOLS' => 'C:\\\\Program Files\\\\Microsoft Visual Studio 8\\\\Common7\\\\Tools\\\\',
  'windir' => 'C:\\\\WINDOWS',
  'PHP_SELF' => '/site/b2evolution/blogs/admin.php',
  'argv' => 
  array (
  ),
  'argc' => 0,
)

17 Mar 14, 2006 19:21

This should fix it:


$ cvs diff -u blogs/admin.php
Index: blogs/admin.php
===================================================================
RCS file: /cvsroot/evocms/b2evolution/blogs/admin.php,v
retrieving revision 1.5
diff -u -r1.5 admin.php
--- blogs/admin.php     12 Mar 2006 23:08:51 -0000      1.5
+++ blogs/admin.php     14 Mar 2006 18:19:55 -0000
@@ -46,7 +46,7 @@


 // Redirect old-style URLs (e.g. /admin/plugins.php), if they come here because the webserver maps "/admin/" to "/admin.php"
-if( ! empty( $_SERVER['PATH_INFO'] ) )
+if( ! empty( $_SERVER['PATH_INFO'] ) && $_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF'] ) // the "!= PHP_SELF" check seems needed by IIS..
 {
        // Try to find the appropriate controller (ctrl) setting
        foreach( $ctrl_mappings as $k => $v )

18 Mar 14, 2006 19:26

yer works now, whats that code meant to do anyway?
Seeing that it works without it, why have it?

EDIT:
What about the include problem?
Where if i have the file
blogs/skins/myskin/_header.php
And i want to include it from
blogs/skins/myskin/_main.php
I can't do
include('_header.php');
I have to do
include($CurrentFolder.'_header.php');

19 Mar 14, 2006 19:34

It's commented why it's there:


// Redirect old-style URLs (e.g. /admin/plugins.php), if they come here because the webserver maps "/admin/" to "/admin.php"

What about


require dirname(__FILE__).'/_header.php';


?

Has that behaviour changed? Could you include _header.php before without giving the full path in your skin?

20 Mar 14, 2006 19:36

Yer before 1.8, i could just do include('header.php'), but now i need to do the full path.

Yer I know of that code, but i couldn't remember it at the time so $CurrentDirectory seemed good enough ;)

EDIT:
Actually my webserver doesn't map /admin or admin/ to /admin.php it just chucks a file not found error.

21 Mar 14, 2006 19:46

Yeah.. actually that code block is no good for IIS. But at least it does not lead to endless recursion anymore.

About the include issue: this is probably related to the move to the MVC structure and where/how the skin's main.php gets included now, but I don't know why.

Anyway, dirname(__FILE__).'/'.. is always a good idea when including a file, so you aren't affected by any chdir() et al.

22 Mar 14, 2006 21:50

Hmm, so what i could do is in my _main.php file go;
chdir(dirname(__FILE__));
?

Seems a good idea to me ;)

Or will the backend of b2evo chuck a sad?

23 Mar 14, 2006 21:53

Your idea should work. We use absolute paths everywhere.

24 May 17, 2006 23:32

balupton wrote:

Yer cvs download via sourceforge via wincvs.

where is v1.8 for download. I can not find in on sourceforge.
File manager in v1.8 is cool ;)

25 May 17, 2006 23:39

bbanik wrote:

balupton wrote:

Yer cvs download via sourceforge via wincvs.

where is v1.8 for download. I can not find in on sourceforge.
File manager in v1.8 is cool ;)

Theres a topic titled 'How to download the latest CVS' which has been in the first 5 topics for like 2 months. Atm it's the one below this one...
http://forums.b2evolution.net//viewtopic.php?t=6810


Form is loading...