Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-11-24 11:00:02

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

Upgrading 4.2 to 4.5.2 issue

Hi team

I’ve been upgrading one website from 4.2 to 4.5.2 and have a major problem. I’ve re-uploaded 4.5.2 but it hasn’t been resolved and there’s still the same issue.

Basically there’s no access to admin and nothing comes up on my website except for the following message:

Warning: include(/home/content/d/e/t/detail/html/textpattern/lib/constants.php) [function.include]: failed to open stream: No such file or directory in /home/content/d/e/t/detail/html/index.php on line 36

Warning: include() [function.include]: Failed opening '/home/content/d/e/t/detail/html/textpattern/lib/constants.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/d/e/t/detail/html/index.php on line 36

Warning: include(/home/content/d/e/t/detail/html/textpattern/lib/txplib_misc.php) [function.include]: failed to open stream: No such file or directory in /home/content/d/e/t/detail/html/index.php on line 37

Warning: include() [function.include]: Failed opening '/home/content/d/e/t/detail/html/textpattern/lib/txplib_misc.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/d/e/t/detail/html/index.php on line 37

Warning: include(/home/content/d/e/t/detail/html/textpattern/publish.php) [function.include]: failed to open stream: No such file or directory in /home/content/d/e/t/detail/html/index.php on line 44

Warning: include() [function.include]: Failed opening '/home/content/d/e/t/detail/html/textpattern/publish.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/d/e/t/detail/html/index.php on line 44

Fatal error: Call to undefined function textpattern() in /home/content/d/e/t/detail/html/index.php on line 45

Just as well I started with a little looked at site rather than the 800 page one.

Any clues before I sink into despair. Maybe the .htaccess wasn’t transferred …

Ta.

Last edited by detail (2012-11-24 11:00:47)

Offline

#2 2012-11-24 11:42:39

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

Re: Upgrading 4.2 to 4.5.2 issue

I’m not an expert on PHP stuff, so bear with me…

  • check .htaccess did definitely get transferred, do you recall if you had any modifications to the previous one you had installed? Do you have additional .htaccess files per your post here on on earlier thread?
  • check file permissions: perhaps the files have been transferred with 000 or other such oppressive settings. Try setting the files to 755 and try again.

Last edited by gaekwad (2012-11-24 11:42:52)

Offline

#3 2012-11-24 12:25:21

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

Re: Upgrading 4.2 to 4.5.2 issue

Hummm.

I do have more than one copy of .htaccess on the server.

There is one copy where it’s supposed to be. That’s good.

There are other copies but they in the old folders I have renamed “textpattern_previous” and “textpattern_faulty”. I don’t have another copy in the new “textpattern” folder.

When I have tried to delete these folders I have got the message on Cyberduck:

FTP Error: Cannot delete textpattern_faulty

550 Can't remove directory: Directory not empty

It’s probably this .htaccess issue again but I’m finding it hard to delete these files.

I do have another couple of sites running on the same server but they have their own installation of Textpattern and are working as normal.

Offline

#4 2012-11-24 12:32:21

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

Re: Upgrading 4.2 to 4.5.2 issue

detail wrote:

Cyberduck

Have you set Cyberduck to show invisible files? Make sure it’s set on both your remote and local directories, then make sure your .htaccess is uploaded. On the grounds you’re doing a fresh upload of all the Textpattern files, rather than an overwrite, it would make sense to check all files/folders have been uploaded and have the right permissions (755 for files is a good start). Take your old textpattern/config.php and drop it into the new installation in the textpattern folder. Does that help?

Offline

#5 2012-11-24 12:39:20

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

Re: Upgrading 4.2 to 4.5.2 issue

Thanks for this.

Yes I can see the .htaccess and it has the date of the old version.

I have now removed the contents of the old txp folders so there is only one copy of the .htaccess so it must be something else causing that fatal error.

Fatal error: Call to undefined function textpattern() in /home/content/d/e/t/detail/html/index.php on line 45

Cheers.

11pm on Saturday night, what am I doing this for at this stage of the week.

Offline

#6 2012-11-24 12:43:20

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

Re: Upgrading 4.2 to 4.5.2 issue

detail wrote:

Fatal error: Call to undefined function textpattern() in /home/content/d/e/t/detail/html/index.php on line 45

OK, interesting. The only other instance of something puking on line 45 of index.php was an incomplete file transfer over FTP. So, can you log in yet? If so, take a look at your diagnostics from the admin panel. Failing that, be absolutely certain you’ve copied everything up to the server.

detail wrote:

11pm on Saturday night, what am I doing this for at this stage of the week.

Yeah. You’re not alone there, trust me :)

Last edited by gaekwad (2012-11-24 12:43:29)

Offline

#7 2012-11-24 23:20:07

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

Re: Upgrading 4.2 to 4.5.2 issue

Pete,

No login possible.

The only difference I can find is the RPC folder: I have the new one from 4.5.2 not the one from the 4.4.1 installation.

Could that be the culprit?

On the other hand the error message on my website says that the site can’t load /textpattern/lib/constants.php and a few other bits from the lib folder. I uploaded the /lib again but it has made no difference.

Cheers.

Offline

#8 2012-11-25 01:01:41

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Upgrading 4.2 to 4.5.2 issue

Your problems would appear to be caused by an incomplete transfer of the Textpattern files – are you certain that all the files have been transferred? Might be worth checking the error logs on the server too.

Offline

#9 2012-11-25 06:10:36

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

Re: Upgrading 4.2 to 4.5.2 issue

Thanks Jonathan, and Pete

I can say that this has now been resolved.

The issue was not that I didn’t have too few files, I had too many and it turned out, after 24 hours of tearing hair out, I had the simplest of issues to fix in the end.

I had up loaded the update inside another folder, soon as I took it all out of the folder, it all worked.

We all have these little moments of not seeing the absolute obvious, I guess, I hope.

Thanks Pete and Jonathan for your input.

Didn’t help that for some reason I can’t access the error logs on the server.

I’ve got an admin page finally and now just have to clean up the destruction I have wrought on the site in attempting to fix it all, like uploading all the photos once again … what else would you do on a sunny 31ºC Sunday.

Ta again ….

Offline

Board footer

Powered by FluxBB