Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-06-06 09:34:15

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 176
Website

4.7.0 upgrade

Run into a couple of issues on a site upgrade from 4.5.4. Yeah, was interrupted and, well, it hasn’t quite worked.

Just as background, earlier in the day I had to upgrade the server from php 5.3 to 5.6.27. That seems to be working okay on the other sites I run on the same server, and that I haven’t yet upgraded.

1. The site won’t load and only gets this error message on the page:

Fatal error: Call to a member function start() on null in /home/content/39/6300239/html/bluelake/textpattern/publish.php on line 35

I can log into the admin okay and it doesn’t mention this error message.

Line 35 + 36 is:

$trace->start('[PHP includes, stage 2]');
include_once txpath.'/vendors/Textpattern/Loader.php';

That path seems to be right.

So there’s that.

2. And then there’s an error about the location of the images folder:

Image directory is not writable: /home/content/39/6300239/html/bluelake/textpattern/images. 

/images is obviously not in the /textpattern/ folder.

This seems to be have been caused because the path_to_site is not showing correctly in the diagnostics:

Textpattern version: 4.7.0 (e8c2b591e79ca7b1a81db9ad8a989263)
Last update: 2018-06-06 06:45:09/2018-06-05 22:11:05
Site URL: bluelake.co.nz
Admin URL: bluelake.co.nz/textpattern
Document root: /var/chroot/home/content/39/6300239/html (/home/content/39/6300239/html)
$path_to_site: /home/content/39/6300239/html/bluelake/textpattern            <---- That's obviously not right!!
Textpattern path: /home/content/39/6300239/html/bluelake/textpattern
Article URL pattern: section_title
Production status: live
upload_tmp_dir: /tmp
Temporary directory path: /home/content/39/6300239/html/bluelake/textpattern/tmp
PHP version: 5.6.27

How do I correct the path_to_site? ie, get rid of that textpattern folder.

In the preferences, I just have the standard Image directory: images.

Sorry, I’m also in New Zealand and it’s getting late. It might take a while for me to get back to any replies. Thanks.

Offline

#2 2018-06-06 10:05:51

etc
Developer
Registered: 2010-11-11
Posts: 5,064
Website GitHub

Re: 4.7.0 upgrade

Try disabling plugins?

Offline

#3 2018-06-06 10:12:03

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 176
Website

Re: 4.7.0 upgrade

Nope. Sadly not.

I did a hard reload after emptying the cache.

Same message.

Thanks for the suggestion.

Offline

#4 2018-06-06 10:15:06

etc
Developer
Registered: 2010-11-11
Posts: 5,064
Website GitHub

Re: 4.7.0 upgrade

Here a similar problem was discussed, any clues?

Offline

#5 2018-06-06 10:19:56

etc
Developer
Registered: 2010-11-11
Posts: 5,064
Website GitHub

Re: 4.7.0 upgrade

You can edit the hidden path_to_site pref in txp_prefs table.

Offline

#6 2018-06-06 10:21:30

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 176
Website

Re: 4.7.0 upgrade

Thanks. Very similar.

I have the same yellow warnings:

Some Textpattern files have been modified: 
/home/content/39/6300239/html/bluelake/css.php, 
/home/content/39/6300239/html/bluelake/index.php Help

Fix in the morning!

Offline

#7 2018-06-06 10:30:57

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 176
Website

Re: 4.7.0 upgrade

etc wrote #312383:

You can edit the hidden path_to_site pref in txp_prefs table.

I haven’t ventured into changing tables previously but should be able to work it out.

Might do that in the morning as well.

Thanks for your help.

Looks like there might be a few glitches with the upgrade path to iron out in the next iteration.

Offline

#8 2018-06-06 10:36:15

etc
Developer
Registered: 2010-11-11
Posts: 5,064
Website GitHub

Re: 4.7.0 upgrade

detail wrote #312385:

Looks like there might be a few glitches with the upgrade path to iron out in the next iteration.

Possible, there is a lot of changes between 4.5.4 and 4.7, hope you’ll work it out without too much trouble.

Offline

#9 2018-06-06 13:14:12

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,611
Website

Re: 4.7.0 upgrade

Also,

detail wrote #312378:

How do I correct the path_to_site? ie, get rid of that textpattern folder.

Also, just to be sure, check you have the correct path set in your config.php.


TXP Builders – finely-crafted code, design and txp

Offline

#10 2018-06-06 20:48:48

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 176
Website

Re: 4.7.0 upgrade

detail wrote #312384:

I have the same yellow warnings:

Some Textpattern files have been modified:...

Man, I made a basic mistake. But it comes from having different files with the same name.

index.php has one version at 4KB and another at 8KB. Guess there must be a reason for that.

I managed to get two copies of same file.

Now corrected and that warning has gone away. Phew!!

However

I now have a new fatal error on the website page!!

Fatal error: Class 'smd_MLP' not found in /home/content/39/6300239/html/bluelake/textpattern/lib/txplib_misc.php(1826) : eval()'d code on line 11

Any thoughts on this one?

Offline

#11 2018-06-06 20:52:37

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,611
Website

Re: 4.7.0 upgrade

detail wrote #312413:

Man, I made a basic mistake. But it comes from having different files with the same name.

index.php has one version at 4KB and another at 8KB. Guess there must be a reason for that.

I managed to get two copies of same file.

Ah yes, the one in the root directory and the one in the textpattern directory. It happens easily.

Fatal error: Class 'smd_MLP' not found ...

I’m guessing you have a multi-language site using MLP? I’ve no idea whether that’s been kept up to date with 4.7.0.


TXP Builders – finely-crafted code, design and txp

Offline

#12 2018-06-06 20:53:51

etc
Developer
Registered: 2010-11-11
Posts: 5,064
Website GitHub

Re: 4.7.0 upgrade

This one comes from MLP plugin, try disabling it to confirm.

Offline

Board footer

Powered by FluxBB