Recent Topics

1 Jan 16, 2006 15:27    

I have just installed Dawn in the following environment:
[list]Windows XP Pro SP2
Tomcat 5.5.8 webserver
Herberlin PHP Servlet
PHP 5.1.2
MySQL 4.1.12a
Java 1.5.0_06[/list:u]
The PHP info is visible at http://www.peacham.com/blogs/install/phpinfo.php

The install worked fine, and the database tables were constructed. I just can't login. When I try to go to the backoffice, I get the login page, but the login button doesn't work. The form is defined as:

<form action="c:\php\php-cgi.exe" method="post" class="fform">


which doesn't really send anything back to my server. Shouldn't the action be some php file on the server?

Fritz Schneider
Sunnyvale, CA

2 Jan 16, 2006 22:22

Yes, it should be a php script. Mine points toward blogs/admin/index.php. That's strange.

3 Jan 17, 2006 14:46

I don't know the code well enough to be able to figure out where this is coming from. Here's fhe log from your visit (minus IP address) in case that helps:

xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:35 -0800] "GET /blogs/install/phpinfo.php HTTP/1.1" 200 34285 "http://forums.b2evolution.net/viewtopic.php?t=6824&highlight=&sid=e8891956b964cd6350f6cfa77658c9a3" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:35 -0800] "GET /favicon.ico HTTP/1.1" 200 318 "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:41 -0800] "GET /blogs/ HTTP/1.1" 200 2862 "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:41 -0800] "GET /blogs/rsc/b2evo.css HTTP/1.1" 200 2814 "http://www.peacham.com/blogs/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:41 -0800] "GET /blogs/rsc/img.css HTTP/1.1" 200 466 "http://www.peacham.com/blogs/rsc/b2evo.css" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:41 -0800] "GET /blogs/rsc/basic.css HTTP/1.1" 200 1641 "http://www.peacham.com/blogs/rsc/b2evo.css" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:41 -0800] "GET /blogs/rsc/forms.css HTTP/1.1" 200 1958 "http://www.peacham.com/blogs/rsc/b2evo.css" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:41 -0800] "GET /blogs/img/b2evolution_logo.png HTTP/1.1" 200 6661 "http://www.peacham.com/blogs/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/admin/ HTTP/1.1" 200 2522 "http://www.peacham.com/blogs/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/admin/variation.css HTTP/1.1" 200 1562 "http://www.peacham.com/blogs/admin/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/admin/desert.css HTTP/1.1" 200 13420 "http://www.peacham.com/blogs/admin/variation.css" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/rsc/blog_elements.css HTTP/1.1" 200 1830 "http://www.peacham.com/blogs/admin/desert.css" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/rsc/comments.css HTTP/1.1" 200 478 "http://www.peacham.com/blogs/admin/desert.css" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/htsrv/styleswitcher.js HTTP/1.1" 200 1858 "http://www.peacham.com/blogs/admin/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/admin/legacy.css HTTP/1.1" 200 5079 "http://www.peacham.com/blogs/admin/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/htsrv/img/icon_login.gif HTTP/1.1" 200 450 "http://www.peacham.com/blogs/admin/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/img/b2evolution_minilogo.png HTTP/1.1" 200 3276 "http://www.peacham.com/blogs/admin/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"
xxx.xxx.xxx.45 - - [16/Jan/2006:13:17:46 -0800] "GET /blogs/admin/img/desert-button.gif HTTP/1.1" 200 316 "http://www.peacham.com/blogs/admin/variation.css" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5" "-"

Fritz Schneider
Sunnyvale, CA

4 Jan 17, 2006 14:55

That doesn't really tell me anything. Sorry.

5 Jan 18, 2006 21:02

Fritz, please enable $debug in /conf/_config.php (set to 1).

This should output a debuglog at the bottom of the page an some info like "Getting ReqURI from 'REQUEST_URI'" or similar.

Please paste this and anything related around it here.

According to your phpinfo(), REQUEST_URI is not set and we'd want ORIG_PATH_INFO in your case.
Before trying to fix the setting of $ReqURI I'd like to get your debug-feedback though.

6 Jan 18, 2006 21:09

Ok, please try this:

in /b2evocore/_vars.php insert


elseif( isset($_SERVER['ORIG_PATH_INFO']) )
{ // Tomcat 5.5.x with Herbelin PHP servlet and PHP 5.1
        debug_log( "Getting ReqPath from 'ORIG_PATH_INFO'" );
        $ReqPath = $_SERVER['ORIG_PATH_INFO'];
        $ReqURI = isset($_SERVER['QUERY_STRING']) && !empty( $_SERVER['QUERY_STRING'] ) ? ($ReqPath.'?'.$_SERVER['QUERY_STRING']) : $ReqPath;
}

before


elseif( isset($_SERVER['PHP_SELF']) )
{ // The Old Stand-By

7 Jan 18, 2006 23:16

I had to set $debug = true in _advanced.php, but here is the output. The patch didn't change anything. I noticed the same bad url on the "Next >>" fields in the blogs.


Debug info
Page processing time: 0.276 seconds.
SQL processing time: 0.003 seconds, 1.09%.

Debug messages
Starting timer main
Getting ReqPath from 'SCRIPT_NAME'
Request URI: c:\php\php-cgi.exe
Request Path: c:\php\php-cgi.exe
Starting timer sql_queries
Starting timer query
default_locale from conf: en-EU
Starting timer query
default_locale from DB: en-US
default_locale from HTTP_ACCEPT: en-US
location: c:\php\php-cgi.exe
DB
Old style queries: 
DB queries: 2

Query: 
SELECT * 
FROM evo_settings
Rows: 14 - Time: 0.001s (33.33%)

Query: 
SELECT loc_locale, loc_charset, loc_datefmt, loc_timefmt, loc_name, loc_messages, loc_priority, loc_enabled 
FROM evo_locales 
ORDER BY loc_priority
Rows: 0 - Time: 0.001s (33.33%)

8 Jan 19, 2006 00:10

I moved it up one, above SCRIPT_NAME, and I was able to log in!

But now I get the login page before each backoffice page. I was able to delete DemoUser, but it clears my forms when I go through login, so I am unable to create a new user or even change the admin password.

Fritz

9 Jan 19, 2006 01:41

Fine that it worked out with $ReqPath/$ReqURI.

The issue that you describe sounds like a cookie problem. Do you accept cookies?

Try deleting all for your domain and try again.

You could debug it using pre_dump( $_COOKIE ); - to see if a cookie gets send.
Additionally, for the login procedure there should be also info in the debug output: look at the Debuglog after you've submitted the login form and after you've got it surprisingly again.

10 Jan 19, 2006 05:23

I added the cookie dump to the login page and it shows:


*** Cookie ***: array(2) {
  ["cookieb2evopass"]=>
  string(32) "ce761f8534d2dfef6edb9e8836145eb3"
  ["evo_style"]=>
  string(9) "Variation"
}

Debug info
Page processing time: 0.365 seconds.
SQL processing time: 0.003 seconds, 0.82%.

Debug messages
Starting timer main
Getting ReqPath from 'ORIG_PATH_INFO'
Request URI: /blogs/admin/b2users.php
Request Path: /blogs/admin/b2users.php
Starting timer sql_queries
Starting timer query
default_locale from conf: en-EU
Starting timer query
default_locale from DB: en-US
default_locale from HTTP_ACCEPT: en-US
location: /blogs/admin/b2users.php
DB
Old style queries: 
DB queries: 2

Query: 
SELECT * 
FROM evo_settings
Rows: 14 - Time: 0.001s (33.33%)

Query: 
SELECT loc_locale, loc_charset, loc_datefmt, loc_timefmt, loc_name, loc_messages, loc_priority, loc_enabled 
FROM evo_locales 
ORDER BY loc_priority
Rows: 0 - Time: 0.001s (33.33%)


I got the same information from my Tomcat log which shows:


10.10.10.10 - - [18/Jan/2006:20:16:59 -0800] "POST /blogs/admin/ HTTP/1.1" 200 32229 "http://www.peacham.com/blogs/admin/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" "cookieb2evopass=ce761f8534d2dfef6edb9e8836145eb3; evo_style=Variation"
10.10.10.10 - - [18/Jan/2006:20:17:06 -0800] "GET /blogs/admin/b2users.php HTTP/1.1" 200 3736 "http://www.peacham.com/blogs/admin/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" "cookieb2evopass=ce761f8534d2dfef6edb9e8836145eb3; evo_style=Variation"

Fritz


Form is loading...