Update from really old version, have a few issues

Having trouble installing serendipity?
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Update from really old version, have a few issues

Post by dkrat »

I updated the blog from 1.4.x to 2.3.5 using the simi manual update method (did a full backup, uploaded new files, ran the update from the admin login).

The update seemed to go OK, but now can't access parts of the blog or log in.

I'm not even sure where to look first. I tried running a CGI version of PHP with no change. Currently on PHP 7.4.6.

I know this is coming from a really, really old version. Any ideas for trouble shooting from here?

Main issues seem to be:
Can't log in as admin
Can't access /archive related posts
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Update from really old version, have a few issues

Post by onli »

Have a look into your server log. There should be errors listed.

A likely cause for issues are the plugins. There were a bunch old versions that would not be compatible with PHP 7.4, probably all of them. Those errors should be listed in the server log.

A second possible issue is the password hash. I think you were still on md5? We changed to sha and then to bcrypt, and it's possible moving the password to the new storage scheme failed. Shouldn't, usually works, but given how old the version was... But that we can look at when there are no errors in the server log, archives works again, but the login is still broken (solvable with a fixlogin.php script).
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Re: Update from really old version, have a few issues

Post by dkrat »

Thank you onli,

Unfortunately my webhosts logs are pretty useless. I don't see anything that even reflects errors or the plugins. You are probably correct though, there are a number of plugins left over from the old. What is the best way to disable/remove them at this point?

I see some plugins with updated last modified dates, and some that were not. That should help me with which ones to disable/remove first.

I'm going to assume the pass was using MD5. Unfortunate I'm not the one who set it up so I'm going back and trying to fill gaps while trying to do this upgrade.

Appreciate your help!
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Update from really old version, have a few issues

Post by onli »

The plugin files of the old plugins I'd simply remove from the server. Keep them as backup! But they should just not be loaded anymore, and if they caused errors that errors would vanish. You can then uninstall them in the plugin list - will look a bit strange there, but should not break.

Try the plugins first. If it does not help, we can help you with resetting your password, which would then save it with the modern hash system.
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Re: Update from really old version, have a few issues

Post by dkrat »

Thanks onli,

I removed the old plugins (after backing up) and still not able to log in.

What is the best path for a password reset at this point?
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Update from really old version, have a few issues

Post by onli »

The password reset works by uploading a php file into your webroot that sets the new password when visiting it in a browser. Have a look at viewtopic.php?f=2&t=24799, both options should work.
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Re: Update from really old version, have a few issues

Post by dkrat »

That got me back in! Thank you onli.

I'm still getting a 403 forbidden when trying to access anything via archive. Any suggestions there?
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Re: Update from really old version, have a few issues

Post by dkrat »

Also, running a installation verification returned the following errors.
plugins/serendipity_plugin_remoterss/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/plugin_remoterss_nasaiotd.tpl corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/UTF-8/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_en.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_remoterss/plugin_remoterss.tpl corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_bg.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/UTF-8/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_en.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_bg.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_event_xhtmlcleanup/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_bg.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/UTF-8/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_en.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/serendipity_plugin_creativecommons.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_bg.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_creativecommons/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_bg.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/UTF-8/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_en.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_bg.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_eventwrapper/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_zh.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_bg.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/UTF-8/lang_fr.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/serendipity_plugin_templatedropdown.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_es.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_de.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_ko.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_en.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_cn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_cs.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_tn.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_cz.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_bg.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_ja.inc.php corrupt or modified: failed verification
plugins/serendipity_plugin_templatedropdown/lang_fr.inc.php corrupt or modified: failed verification
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Update from really old version, have a few issues

Post by onli »

Yeah, progress! :)

The files might very well just be modified, I wouldn't worry about that yet. You could look into one and check whether they contian something strange.

403 from the archive to me sounds like not directly related to serendipity. But first: Did you already try to upgrade your plugins now?
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Re: Update from really old version, have a few issues

Post by dkrat »

Yes! Thank you so much.

I have been trying to sort out the correct way to update the plugins. Is there a "how to" for this?
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Update from really old version, have a few issues

Post by onli »

The usual way is to install the spartacus plugin, then go into the plugin menu and click on the "Update plugins" button at the top. Is that available to you?
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Re: Update from really old version, have a few issues

Post by dkrat »

I was able to add the plugin and ran the update check and it said all plugins are up to date. It also says it checked 210 plugins, which I'm not sure about. I only show 26 folders in the plugins folder.
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Re: Update from really old version, have a few issues

Post by dkrat »

Hmm, via FTP i see two plugin folders.

root/blogfolder/plugins
and
root/blogfolder/serendipity/plugins

The first on seems to have been updated. The latter has not (timestamps are all pre update)

Is that normal?

edit: the plugins folder inside the serendipity folder does not appear to have any updates applied. The folder above it does show updates.
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Update from really old version, have a few issues

Post by onli »

If the plugins are under /blogfolder/plugins/somotherfolder/, then they would be loaded. If they are not under plugins/, then they should be ignored. I would remove them from the server (but do make a backup) to confirm this and to not have old php files on the server.
dkrat
Regular
Posts: 16
Joined: Mon Dec 14, 2020 11:58 pm

Re: Update from really old version, have a few issues

Post by dkrat »

Thank you onli, I have removed the old plugins safely.

Unfortunately I'm still having issues post the updates. I see that javascript is not loading on the pages at all. Looking at the //index.php?/plugin/admin/serendipity_editor.js for help in there, but I'm afraid it's over my head. Is it safe to post the contents of such a report?
Post Reply