Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
Re: 4.6 update issues
An issue for this has been created on GitHub – will be fixed in Textpattern 4.6.1. Thanks!
Offline
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
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
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
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
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
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/
Offline
Re: 4.6 update issues
maniqui wrote #301804:
because of line 141 on _to_4.6.0.php
It’s been patched in 4.6.1, hopefully out later this week. Sorry for the pain everyone. I knew there must be a reason why we never attempted deleting old files before… now I know why! Live and learn.
EDIT: Great tip about rsync, btw. Thanks!
Last edited by Bloke (2016-09-28 19:58:58)
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
Re: 4.6 update issues
I upgraded a test site from 4.5.7 to 4.6.0. When I the change production status from ‘Live’ to ‘Testing’ or to ‘Debugging’ the whole admin side disappears! Front side works fine and the debugging and testing seem to work ok.
I can get the admin side back by changing the production status back to “Live’ by writing directly to the database.
Textpattern version: 4.6.0 (86d82f868a753eb919f2250d82f4dcae)
Last update: 2016-09-29 19:05:06/2016-09-29 19:43:53
Document root: /mnt/target02/343821/v12.joebai.ch/web/content
$path_to_site: /mnt/target02/343821/v12.joebai.ch/web/content
Textpattern path: /mnt/target02/343821/v12.joebai.ch/web/content/textpattern
Article URL pattern: section_title
upload_tmp_dir: /tmp
Temporary directory path: /mnt/target02/343821/v12.joebai.ch/web/content/textpattern/tmp
Site URL: v12.joebai.ch
PHP version: 5.6.20-0+deb8u1
GD Graphics Library: 2.1.1-dev; supported formats: GIF, JPG, PNG.
Server TZ: America/Chicago
Server local time: 2016-09-29 15:18:18
Daylight Saving Time enabled?: 1
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): Europe/Zurich (3600)
MySQL: 5.5.5-10.0.23-MariaDB-0+deb8u1-log
Database server time: 2016-09-29 15:18:18
Database server time offset: 0 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: en_GB.UTF-8
Server: Apache/2.4
Apache version: Apache/2.4
PHP server API: apache2handler
RFC 2616 headers:
Server OS: Linux 3.16.0-4-amd64
Active plugins: rvm_if_this_article-0.1, zem_contact_lang-4.0.3.6, zem_contact_reborn-4.0.3.20m, rvm_privileged-0.4, adi_contact-0.5, smd_wrap-0.20, arc_youtube-2.0.2, adi_matrix-1.2, smd_article_stats-0.30, sed_copyright-1.3, rah_sitemap-1.2, smd_access_keys-0.11, soo_plugin_pref-0.2.2, sed_plugin_library-0.5.2, abl_droploader-0.20, adi_form_links-0.1, adi_recent_tab-0.4, smd_browse_by-0.11, smd_write_cats-0.30, rah_nocache-0.4.0, glz_custom_fields-1.4.0-beta, arc_meta-1.1.2
Admin-side theme: hive 4.6.0
Pre-flight check:
------------------------
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: leak, posix_getpwuid, posix_getpwnam, posix_getgrid, posix_getgrnam, posix_getgroups
------------------------
.htaccess file contents:
------------------------
# BEGIN Textpattern
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
# END Textpattern
------------------------
Edit: added some Textile for readability (maniqui)
Last edited by maniqui (2016-09-30 13:56:54)
Offline