Page 1 of 2

Lost Admin Suite & Blog

Posted: Thu Sep 13, 2012 1:58 pm
by ed587
I had version 1.41 and uploaded all the files for 1.62 keeping the old serendipity_config_local.inc.php and my bullet template. Went to the admin suite and I get an HTTP 500 Internal Server error. I get this error also when I go to the blog at http://www.neterm.net/serendipity/index.php.

Also noticed I have no .htaccess file.

I'm reading all I can and have been trying to follow directions to restore everything.

Re: Lost Admin Suite & Blog

Posted: Thu Sep 13, 2012 3:32 pm
by Timbalu
A white page of death means some fatal PHP errors, which are logged to your http servers (apache?!) access and error.log.
Ask your ISP to get you that information, please.

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 12:58 am
by ed587
Here is what I got back from my ISP:

http://neterm.net/InternalServerErrors.jpg

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 7:59 am
by Timbalu
Those deprecated "Warnings" can be ignored, as they are just warnings about changed coding standards with newer PHP versions. Next Serendipity 1.7 will take care about them.
With 1.6.x versions you disable the warnings as described here: http://board.s9y.org/viewtopic.php?f=11&t=18887

The other thing is that serendipity_getimagesize() fatal error in karma plugin, which stops the system with the blank page.
This indicates you haven't really uploaded a full! new Serendipity version onto your server. This is a core function which can't vanish like that. And Serendipity is working and has no problems with that!

Well, I can't really tell how you managed to upload, but you could try again with FileZilla FTP.

PS. Maybe that also might have to do with that huge! image you set to the startpage.

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 12:13 pm
by yellowled
Timbalu wrote:Well, I can't really tell how you managed to upload, but you could try again with FileZilla FTP.
Some FTP client still try to “continue” uploading a file by default instead of replacing it. That's always a good source of error – make sure your FTP client replaces/overwrites files.

YL

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 1:02 pm
by ed587
Thanks Timbalu and yellowled. I've used FileZilla and the blog comes up and I get the login for the Serendipity Admin Suite. I can't log in to use Update but I will check the database and see what UserID and Password they have in there. I didn't change the password so I don't know what is up with that but I'm well on my way to making everything work.

I appreciate your help.

~Ed

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 1:19 pm
by Timbalu
Yes you have (parts of?) 1.6.2 now, but there still is that issue that the htaccess file has not been created successfully.
The default and bulletproof template also did not have been updated, as you can see at the login screen, which is white without styles... that may need another ftp round!
If the log then still tells you that you cannot login, this could be due to changes from md5 to hash some versions ago. Then try the script fixlogin.php, which is also mentioned in that thread above.

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 1:29 pm
by Timbalu
As I see it is the missing htaccess which white's the login screen.
Try and upload a .htaccess file with this content:

Code: Select all

# BEGIN s9y
ErrorDocument 404 /serendipity/index.php
DirectoryIndex /serendipity/index.php
php_value session.use_trans_sid 0
php_value register_globals off

RewriteEngine On
RewriteBase /serendipity/
RewriteRule ^(.*/documentation([0-9a-z\.\_\+]+)\.html?)$ - [L]
RewriteRule ^(archives/([0-9]+)-[0-9a-z\.\_!;,\+\-]+\.html) index.php?/$1 [NC,L,QSA]
RewriteRule ^(authors/([0-9]+)-[0-9a-z\.\_!;,\+\-]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/authors/([0-9]+)-[0-9a-z\.\_!;,\+\-]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [NC,L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive/? index.php?url=/archive [L,QSA]
RewriteRule ^(index|atom[0-9]*|rss|b2rss|b2rdf).(rss|rdf|rss2|xml) rss.php?file=$1&ext=$2
RewriteRule ^(plugin|plugin)/(.*) index.php?url=$1/$2 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]

<Files *.tpl.php>
    deny from all
</Files>

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 1:42 pm
by ed587
Thanks Ian,

The .htaccess file fixed up the admin suite login screen but it is still not liking my credentials. I don't see the fixlogin script in the replies above.

Also I have kept my old Bulletproof folder and I have been replacing the new one which is uploaded with all of 1.62 so I don't lose my blog formatting. Are there just certain files in the Bulletproof Folder I must keep?

Also I can look at my author I.D. and password using phpMyAdmin but I don't see a way of changing the password value.

~Ed

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 1:57 pm
by Timbalu
ed587 wrote:The .htaccess file fixed up the admin suite login screen but it is still not liking my credentials. I don't see the fixlogin script in the replies above.

Also I have kept my old Bulletproof folder and I have been replacing the new one which is uploaded with all of 1.62 so I don't lose my blog formatting. Are there just certain files in the Bulletproof Folder I must keep?
That is bad.
Bulletproof and default have to stay like they are.
Rename your modified bulletproof to my_bulletproof and also add that name into the info.txt file.
I already posted this thread: http://board.s9y.org/viewtopic.php?f=11&t=18887. Please read.
There "AFC_North" posted the fixlogin.php scripts content again.
Adjust the username and password to yours, upload, point your browser to that file and off you go.
ed587 wrote:Also I can look at my author I.D. and password using phpMyAdmin but I don't see a way of changing the password value.
Do not touch these settings with phpmyadmin!
But you can verify if you already have the "hashtype" column, which is added by a db upgrade.

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 2:02 pm
by Timbalu
I would rethink using this startpage at http://www.neterm.net/serendipity/, which redirects to /serendipity/index.php.

Code: Select all

function redirectPage() {
window.location.href= "http://www.neterm.net/serendipity/index.php";
}
This might catch unwanted issues with the htaccess rules.

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 2:11 pm
by Timbalu
You guestbook page is found now, but there is no content delivered.
This indicates the guestbook smarty template file(s) (.tpl) are missing.
You may need to upload that plugin again with FileZilla.

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 2:26 pm
by Timbalu
Additionally your templates html head

Code: Select all

<!-- additional user stylesheet: this can be used to override selected styles -->
        <link rel="stylesheet" type="text/css" href="user.css" media="screen" />
points to

Code: Select all

http://www.neterm.net/serendipity/pages/user.css
giving a html page instead of user stylesheets. How come?

I'll stop this investigation now, promised! ;-)

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 2:31 pm
by ed587
No Ian. I'd like to get this bog fixed up. I don't mind the shakedown.

~Ed

Got this line while running fixlogin.php

/ Unknown column 'hashtype' in 'field list'Password changed.

Unfortunately I do not know what it means.

~Ed

Re: Lost Admin Suite & Blog

Posted: Fri Sep 14, 2012 3:15 pm
by Don Chambers
ed587 wrote:Got this line while running fixlogin.php

/ Unknown column 'hashtype' in 'field list'Password changed.

Unfortunately I do not know what it means.

~Ed
It means the table didn't get properly upgraded... 'hashtype' didn't exist in your previous 1.4 version, but does in the latest 1.6.2 (I think it was introduced around 1.5. not sure).

You can try to trigger the upgrade process again... simply edit the file serendipity_config_local.inc.php, change this line:

Code: Select all

$serendipity['versionInstalled']  = '1.6.2';
to this:

Code: Select all

$serendipity['versionInstalled']  = '1.4';
Save the file, and browse your page.. it should trigger the upgrade process. After that, you may still need to run your fixlogin.php script. If the upgrade was successful, you should not get the "Unknown colum 'hashtype'.." error.