Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-07-27 11:23:39

eudaimon
New Member
Registered: 2019-07-25
Posts: 3

Upgrade to 4.7.3 riddled with errors

I’m new to Textpattern so please forgive my ignorance. My client hadn’t updated their site since 2011 (!!!) and it crashed with the latest version of PHP. I upgraded it to 4.7.3 and am getting multiple errors. The most concerning is at the admin page:

Warning: include(/nfs/c08/h06/mnt/120036/domains/glgpub.com/html/textpattern/textpattern/lib/class.trace.php): failed to open stream: No such file or directory in /nfs/c08/h06/mnt/120036/domains/glgpub.com/html/textpattern/index.php on line 88

Warning: include(): Failed opening ‘/nfs/c08/h06/mnt/120036/domains/glgpub.com/html/textpattern/textpattern/lib/class.trace.php’ for inclusion (include_path=’.:/usr/local/php-5.6.21/share/pear’) in /nfs/c08/h06/mnt/120036/domains/glgpub.com/html/textpattern/index.php on line 88

Fatal error: Class ‘Trace’ not found in /nfs/c08/h06/mnt/120036/domains/glgpub.com/html/textpattern/index.php on line 89

They can’t log in and are understandably flipping out. I have experience with other CMS but can’t figure this one out. lib/class.trace.php does exist on the server but for some reason this message just won’t go away.

A number of the files have also needed manual updating (txplib_misc.php is one) but when I try to pull fixes other people have implemented they commonly return fatal errors re: class: Txp missing. Where is that defined? If it was in a previous update please let me know so I can grab the file.

The site is glgpub.com.

Thanks!

Offline

#2 2019-07-27 13:58:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,271
Website

Re: Upgrade to 4.7.3 riddled with errors

Hi eudaimon and welcome to txp.

Did you try disabling all your plugins?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#3 2019-07-27 15:21:03

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,206

Re: Upgrade to 4.7.3 riddled with errors

eudaimon, when I try to open textpattern.js from your site, there’s the 4.3 version coming up. If you didn’t roll back to the site’s previous version of TXP after posting here, the file transfer might have failed for some file or another (which is the main reason for failing upgrades. I’ve cultivated the habit of ftp’ing twice on updates.)

There should be no need to pull fixes or anything, such tips are usually posted here by people running the dev version. Ignore safely.

Edited: clarification, wording


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2019-08-08 06:44:16

eudaimon
New Member
Registered: 2019-07-25
Posts: 3

Re: Upgrade to 4.7.3 riddled with errors

Hello all,

Thank you for responding. I did try disabling the plugins but that had no effect. I also went through and made sure all of the appropriate files switched over (thanks, uli!) but that just threw up new error messages. It looks like the program is calling for commands that aren’t defined and/or are defined using outdated code/protocols.

Eight years worth of updates really is a lot…unless every file is updated with every new version, there must be one or more files in one of the interim versions that isn’t included in the latest one. I’m going to try rolling back to the original (broken) version and then pulling each update individually. It’ll be a pain but hopefully it’ll fill in what’s missing.

Offline

#5 2019-08-08 09:10:10

eudaimon
New Member
Registered: 2019-07-25
Posts: 3

Re: Upgrade to 4.7.3 riddled with errors

Okay, I have a new issue:

We can get into the admin side, but only briefly. Every time I try to take an action on the back end I’m forced out of the system and must log in again. This will take me to the page I’m trying to reach, but will not allow me to complete any actions I try to take (uploading images, posting articles, etc. — nothing works). I’m also getting a lot of ‘non static method [method] should not be called statically in [file].php’. Any ideas?

Offline

#6 2019-08-08 09:10:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,665
Website

Re: Upgrade to 4.7.3 riddled with errors

I’m currently seeing the ‘unexpected yield’ error, which means a lower version of Txp than 4.5.5 and at least PHP 5.5 installed. When you say “the latest version of PHP” what version exactly is that?

For the record, you should never need to manually run the updates. The process is:

  1. Check the Minimum system requirements are met.
  2. Log out of any Textpattern admin interface.
  3. Upgrade/replace all files on your server from the ones in the 4.7.3 distribution (including hidden .htaccess files if using Apache).
  4. Visit the admin interface in your browser (a full cache/cookie refresh for the domain is advisable before logging in).
  5. Log in with a Publisher level account. The necessary upgrade scripts automatically run to upgrade Txp to the latest version. You’ll see a welcome message when done.
  6. Sorted.

If your experience is different to this, please document the steps you go/have gone through and we’ll try and figure out what’s going wrong.

One other thing: if you’ve attempted an upgrade already, your database version string may be set incorrectly. Please check it with a MySQL client such as phpMyAdmin – it’s in the txp_prefs table and the key is called version. Prior to upgrading, its value should be set to the version of Txp that was previously installed so the upgrade script knows where to start the upgrade process from. If it’s not set to the old version number,manually alter it to reflect the previous version installed and then try the upgrade process above.

Last edited by Bloke (2019-08-09 14:35:55)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#7 2019-08-08 09:14:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,665
Website

Re: Upgrade to 4.7.3 riddled with errors

eudaimon wrote #318991:

I’m also getting a lot of ‘non static method [method] should not be called statically in [file].php’. Any ideas?

This is probably because your currently installed version of Textpattern (4.3.0 by the looks of things?) isn’t compatible with the version of PHP installed. Earlier versions of Txp struggle with newer PHP versions due to changes in the programming language.

EDIT: the non-static errors imply that your version of PHP is lower than 5.4.0, which may be why the upgrade to Textpattern 4.7.3 failed – as that is the minimum supported version of PHP.

Last edited by Bloke (2019-08-08 09:17:45)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#8 2019-08-08 13:52:24

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,454
Website

Re: Upgrade to 4.7.3 riddled with errors

Hi eudiamon,

A couple of things you write like “a number of the files have also needed manual updating” and the fact that visiting your site still shows the old admin login screen suggest you might not have gone through the entire update procedure.

First off, if you haven’t already, make a backup of the entire /nfs/c08/h06/mnt/120036/domains/glgpub.com/html/ and of the database from mySQL so you have something to go back to in case of any inadvertent accidents.

Then, check especially Bloke’s item number 3

Upgrade/replace all files on your server from the ones in the 4.7.3 distribution (including hidden .htaccess files if using Apache).

with a mini proviso. Keep the /images and /files folders as they contain stuff your client has uploaded over the years and keep the file /textpattern/config.php (which contains the database and path details). If there’s any other custom files or apps in there that your client has, keep that too but otherwise to upgrade you really do need to replace the all the old Textpattern installation files with the all the new ones, including all subfolders.

The rest should then follow as Bloke wrote.

One of your error messages in your first post suggests you might be on PHP 5.6.21. The most recent version of Textpattern (4.7.3 at present) should support that, so the note above about php 5.4 may not apply.

Once the upgrade has happened successfully and you can login and see the diagnostics pane, there may need to be some other updates to plugins (if used) as several years have passed and many plugins are either no longer needed or obsolete. That’s stage 2, though.


TXP Builders – finely-crafted code, design and txp

Offline

#9 2019-08-09 09:48:30

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,454
Website

Re: Upgrade to 4.7.3 riddled with errors

If you need some direct assistance, feel free to email me. I’ve helped people to get over this problem before (as you can see from other threads).


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB