Page 1 of 1

8.2 admin page missing 'check and save' button?

Posted: Fri Jul 08, 2005 7:59 am
by Guest
While attempting an upgrade from 0.7.1 to 0.8.2, can't use admin plugin to change values in admin panel.

In IE and FireFox for 0.7.1 there is a submit form button labeled 'check and save'. Upgraded 0.7.1->0.8.2 doesn't have a check and save button in the admin configure page. A clean 0.8.2 install into a new directory, choosing advanced install, shows there is also no check and save button on the configure page.

Please advise.

Best regards,

epu

That was me.

Posted: Fri Jul 08, 2005 8:02 am
by epu
Sorry, wasn't logged in.

Install is a windows install with apache 1.3.1 and php 5.03.

Re: That was me.

Posted: Fri Jul 08, 2005 10:38 am
by garvinhicking
I think I have heard of this bug with some strange browser versions. Can you try with IE?

And can you have a look at the HTML sourcecode and see if the output stops immediately? This points to a coredump of your webserver or a fatal PHP error, so please check your error logs.

Regards,
Garvin

Posted: Sat Jul 09, 2005 6:11 am
by epu
I think I have heard of this bug with some strange browser versions. Can you try with IE?
Doing the following steps in IE or FireFox 1.0.4 results in same error.
  • copy files over original working s9y distribution
    browse to s9y page
    upgrade notice
    advance to upgrade page
    advance to upgrade results (ok)
And can you have a look at the HTML sourcecode and see if the output stops immediately? This points to a coredump of your webserver or a fatal PHP error, so please check your error logs.
You're right about the end of the output. It looks like the file just stopped being written at the tail of the output, with an open tag just starting to be written (<)

Looking at the apache error log, I see missing refs

Code: Select all

[Fri Jul 08 21:44:23 2005] [error] [client 127.0.0.1] File does not exist: g:/apache/htdocs/serendipity/0.7.1//serendipity_admin.css
[Fri Jul 08 21:50:51 2005] [error] [client 127.0.0.1] (22)Invalid argument: cannot read directory for multi: g:/apache/htdocs/serendipity/0.7.1//
[Fri Jul 08 21:54:38 2005] [error] [client 127.0.0.1] File does not exist: g:/apache/htdocs/serendipity/0.7.1//admin
but I don't think that sounds like what you're talking about. I'll set my php.ini logfile (apparently unset now) and read it and get back in a sec.

php.ini logging doesn't reveal anything

Posted: Sat Jul 09, 2005 6:56 am
by epu
I checked via phpinfo() where my loaded ini was, modifed that to set error_log

Code: Select all

;   - Show all errors
;
error_reporting  =  E_ALL
; error displaying on production web sites.
log_errors = On
; Log errors to specified file.
error_log = "G:\PHP\5.0.3\error.log"
touched the logfile into place, restarted just to be sure we're clean, and re-upgraded and reloaded the page. I still have the truncated output, but there's nothing in the error logfile.

Is there some variable I didn't check (ie, is logging actually off?)
Is my windows php.ini syntax ok?

Is this related to http://www.s9y.org/forums/viewtopic.php ... lash+error

Re: php.ini logging doesn't reveal anything

Posted: Sat Jul 09, 2005 11:53 am
by garvinhicking
If the output stops at that "<" character this really sounds like a webserver problem.

In your serendipity configuration, are you using "/" forward slashes everywhere? It's better to use "C:/.../" instead of "C:\...\". Especially in your Apache configuration.

From your errorlog only the "Invalid argument: cannot read directory" error looks suspicious. I have never seen such an error, it might be related to path problems.

Can you create a "bug.php" file with some parse errors in it and see if your PHP errorlog gets filled?

Regards,
Garvin

Posted: Sat Jul 09, 2005 5:27 pm
by epu
Thanks for your help.
Can you create a "bug.php" file with some parse errors in it and see if your PHP errorlog gets filled?
when I pass args to phpinfo() I get errors in the logfile ok.

I'll restore to working db, change path slashing, and reconvert and post results.

results of forward slashing s9y config and httpd.conf

Posted: Sat Jul 09, 2005 5:42 pm
by epu

Code: Select all

[Sat Jul 09 08:38:52 2005] [error] [client 127.0.0.1] File does not exist: g:/apache/htdocs/serendipity/0.7.1//entries
[Sat Jul 09 08:44:38 2005] [error] [client 127.0.0.1] File does not exist: g:/apache/htdocs/serendipity/0.7.1//serendipity_admin.css
[Sat Jul 09 08:45:00 2005] [error] [client 127.0.0.1] File does not exist: g:/apache/htdocs/serendipity/0.7.1//admin
when I just fix the slashing to forwards in s9y.

Slashing in apache config is already forward slashed

Code: Select all

    Alias /blog "G:/apache/htdocs/serendipity/0.7.1/"

    <Directory "G:/apache/htdocs/serendipity/0.7.1">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
Is there a free php debugger I can run and break where it's trying to write out the extra slash? This is my local machine, so I have total control.

Re: results of forward slashing s9y config and httpd.conf

Posted: Sat Jul 09, 2005 7:16 pm
by garvinhicking
Did you try to make that /blog alias only poin tto "0.7.1" instead of "0.7.1/"? It seems that this is the error of the duplicate slash.

The "file does not exist" messages appear because you are using Apache Errorhandling URL Rewriting. This is normal, for each rewritten URL Apache writes this information.

About the debugger, I'm not really familiar with this stuff. APD and xdebug have proven helpful for most people wanting to do that. :)

Regards,
Garvin

Posted: Sat Jul 09, 2005 9:12 pm
by epu
Did you try to make that /blog alias only poin tto "0.7.1" instead of "0.7.1/"? It seems that this is the error of the duplicate slash.
That takes care of the apache log warnings/errors, but with or without the corrected slashes, corrected alias, and with either browser, my upgrade still has broken output.

I also tried creating a straight up new install, and with the new empty non upgraded install, I am also missing this button/have broken admin page output.

What are the known stable/working apache/php versions on win32 for the 8.2 release?

Posted: Sun Jul 10, 2005 11:34 am
by garvinhicking
Did you try the trick with a PHP file that creates errors and looked at the log?

I know that the latest XAMPP release works with Serendipity.

Regards,
Garvin

distracted

Posted: Tue Jul 12, 2005 6:37 am
by Guest
Did you try the trick with a PHP file that creates errors and looked at the log?
Yes, from my saturday post, 5:27, I created a bug.php where I took my phpinfo.php and passed args to phpinfo() in order to generate errors. The error log works fine, but does not log any error when I upgrade to 8.2 or when I load the new install.

After I convert, I am getting, on Mozilla Firefox, a popup window. It says 'document has no data'.http://www.eta.org/~shaggy/firefox-only-error.jpg

Regarding debugging, I installed dbg, eclipse, and phpeclipse package. I'm still working on configuring this right (http://www.plog4u.org/index.php/Using_P ... G_Debugger) The results seem promising so far.

Thanks for your help, the version info in XAMPP will be useful. I'll try mounting my files in a newer apache and see if that fixes anything. Then I'll move on through the other XAMPP versions.

Best regards,
-e

upgrade ok after upgrade to apache2

Posted: Sun Jul 17, 2005 8:59 am
by epu
Upgrade works ok now, thanks for your help.
I checked out the XAMPP page for the current versions of software;
Apache HTTPD 2.0.54, MySQL 4.1.12, PHP 5.0.4.
Since you suggested web server was main problem, installed matching apache version (upgrade from 1.3.30->2.0.54) and this fixed the problem. Upgrade worked ok and buttons draw.

Best,
-e