Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-09-10 19:23:21

Lirodon
New Member
Registered: 2015-04-27
Posts: 5

4.6 update issues

So I’ve uploaded the Textpattern 4.6 files and went into the admin panel, but on the Languages page I get this when I attempt to update the language files.

Warning "unlink(/srv/example.com/http/subdomain/textpattern/include/import/BloggerImportTemplate.txt): Permission denied"
in /srv/example.com/http/subdomain/textpattern/update/_to_4.6.0.php at line 151.
textpattern/lib/txplib_misc.php:1676 adminErrorHandler()
updateErrorHandler()
textpattern/update/_to_4.6.0.php:151 unlink()
textpattern/update/_update.php:84 include()
textpattern/index.php:180 include()

It also doesn’t let me go to any other page in the admin CP.

What exactly is going on?

edit: Figured it out. For some reason, it was actually breaking on the cleanup steps. Personally, it should just degrade gracefully and tell you about these recommended file deletions if it is unable to do so for whatever reason.

Last edited by Lirodon (2016-09-10 19:41:00)

Offline

#2 2016-09-10 19:50:38

etc
Developer
Registered: 2010-11-11
Posts: 3,940
Website

Re: 4.6 update issues

Lirodon wrote #301298:

edit: Figured it out. For some reason, it was actually breaking on the cleanup steps. Personally, it should just degrade gracefully and tell you about these recommended file deletions if it is unable to do so for whatever reason.

Fair point, thank you for the report and sorry for the trouble. Most probably, the update script has no write access to these files/directories, but it’s not a reason to fail.

Offline

#3 2016-09-11 00:38:22

Lirodon
New Member
Registered: 2015-04-27
Posts: 5

Re: 4.6 update issues

etc wrote #301299:

Fair point, thank you for the report and sorry for the trouble. Most probably, the update script has no write access to these files/directories, but it’s not a reason to fail.

Yeah. If it could just fire off a “This directory has been deprecated and can be safely removed, but we were unable to remove it automatically” message and not fail the whole thing, that’d be an improvement.

Offline

#4 2016-09-11 03:09:33

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,396
Website

Re: 4.6 update issues

An issue for this has been created on GitHub – will be fixed in Textpattern 4.6.1. Thanks!

Offline

#5 2016-09-12 10:35:36

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,176

Re: 4.6 update issues

For completeness, and anyone else looking for a solution: I replicated this and in my case a manual delete of /textpattern/include/import/ made the error message go away.

Last edited by gaekwad (2016-09-12 10:35:50)

Offline

#6 2016-09-12 10:50:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,792
Website

Re: 4.6 update issues

gaekwad wrote #301357:

For completeness, and anyone else looking for a solution: I replicated this and in my case a manual delete of /textpattern/include/import/ made the error message go away.

Thanks for the confirmation.

Dammit, tidying up after oneself is harder than I’d hoped…


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 2016-09-27 12:53:25

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: 4.6 update issues

I’m also stuck on the languages page, with the following error messages:

User_Error "Duplicate entry '65327418883b3a7637106bfd222002eb' for key 'PRIMARY'"
in /home/acch/artandculturecenter.org/textpattern/lib/txplib_db.php at line 405.
textpattern/lib/txplib_misc.php:1676 adminErrorHandler()
updateErrorHandler()
textpattern/lib/txplib_db.php:405 trigger_error()
textpattern/lib/txplib_db.php:532 safe_query()
textpattern/update/_to_4.6.0.php:191 safe_alter()
textpattern/update/_update.php:84 include()
textpattern/index.php:180 include()

Tried logging out and back in, but no use.


Yes, I have tried turning it off and on.

Offline

#8 2016-09-27 13:20:31

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,792
Website

Re: 4.6 update issues

alesh

Looks like the txp_discuss_nonce table is giving you issues. Can you empty it and try logging in again?


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

#9 2016-09-27 13:26:54

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: 4.6 update issues

Bloke wrote #301778:

alesh

Looks like the txp_discuss_nonce table is giving you issues. Can you empty it and try logging in again?

That did it. Thanks a ton.


Yes, I have tried turning it off and on.

Offline

#10 2016-09-28 16:00:03

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: 4.6 update issues

gaekwad wrote #301357:

For completeness, and anyone else looking for a solution: I replicated this and in my case a manual delete of /textpattern/include/import/ made the error message go away.

I’ve also had to manually delete /textpattern/include/txp_import.php (because of line 141 on _to_4.6.0.php: if (file_exists(txpath.DS.'include'.DS.'txp_import.php')) {) or the error would keep coming.

When upgrading an existing install, a clean method could be using rsync with the --delete option (be careful!! run it with the --dry-run option first, so you see exactly what will be synced and deleted).
Here is a command (while standing on the root of a freshly downloaded/extracted/checked-out Textpattern 4.6.0)

rsync -rv --dry-run --delete css.php index.php textpattern path/to/your/website/

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB