Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-11-05 02:34:04

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 259
Website

My 4.5.2 upgrade is wack

Just upgraded from 4.50 to 4.52. At first all seems fine, but then the admin interface causes grief:

  • The ‘Save’ button is missing from my content:write page. The ‘Publish’ button is visible when creating a new article
  • When I force a save via hitting return on my keyboard, I get the HTML of my page spat back at me – see Random code appears on the page
  • In Admin: plugins there is no ‘active’ flag (I can’t tell whether plugins are active or not)
  • When I change the option in presentation: sections default_write_section I get "I’m sorry. I’m afraid I can’t do that. I think section section_set_default is no safe operation at this time."

And thats just the start of it. :-o

Running under MAMP (ick: my native MySQL installation is b0rked).

Only one plugin installed:
cnk_versioning Christian Nowak (mod by Maniqui) 0.1.7

Diagnostics checkout fine:

Textpattern version: 4.5.2 (r4197)
Last Update: 2012-11-05 01:55:57/2012-10-09 20:00:42
Document root: /Users/***/Sites
$path_to_site: /Users/***/Sites/all-sorts.biz
Textpattern path: /Users/***/Sites/all-sorts.biz/textpattern
Permanent link mode: section_title
upload_tmp_dir: /Applications/MAMP/tmp/php
Temporary directory path: /private/var/tmp
Site URL: 192.168.1.2:8888/all-sorts.biz
PHP version: 5.2.17
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server TZ: Pacific/Auckland
Server Local Time: 2012-11-05 15:28:04
DST enabled?: 1
Automatically adjust DST setting?: 1
Time Zone: Pacific/Auckland (43200)
MySQL: 5.5.25
Locale: en_GB.UTF-8
Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.2.17
Apache version: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.2.17
PHP Server API: apache2handler
RFC 2616 headers: 
Server OS: Darwin 12.2.0
Active plugins: cnk_versioning-0.1.7
Admin-side theme: classic 4.5.2

Pre-flight check: 
------------------------
Web Domain DNS lookup fails: 192.168.1.2
------------------------

.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	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

# SVG
AddType image/svg+xml  svg svgz
AddEncoding gzip       svgz

(added bc.. for better display. -Els)

Last edited by els (2012-11-05 08:38:14)

Offline

#2 2012-11-05 02:56:30

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 259
Website

Re: My 4.5.2 upgrade is wack

For completeness, here’s the ‘random code’ that happens every time I try to save an article:

A jQuery Javascript file is being served instead of the html:

;
				$(document).ready(function() {
					$("#messagepane").html("<span id=\"message\" class=\"success\">Article posted.  <a href=\"#close\" class=\"close\">&times;</a></span>");
					$('#message.success, #message.warning, #message.error').fadeOut('fast').fadeIn('fast');
				});;
$("[name=sLastMod]").val("1352084026");
$("[name=sPosted]").val("1189422737");
$("#keywords").val("image1");
$("#url-title").val("a-strict-geometric-grid-of-your-work-with-generous-white-space-will-see-you-right");

… etc


<!-- runtime: 0.0272 -->
<!-- Memory: 1536Kb -->

Last edited by giz (2012-11-05 03:02:16)

Offline

#3 2012-11-05 09:15:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: My 4.5.2 upgrade is wack

Just out of curiosity, have you done a complete, hard refresh? Seems like some of these issues might be caused by stale (cached) files. I might be wrong.

Last edited by Bloke (2012-11-05 09:15:22)


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

#4 2012-11-05 18:36:10

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 259
Website

Re: My 4.5.2 upgrade is wack

Thanks, Bloke. You’re a mensch.

Clearing the cache (Safari 6.02) fixed most of the problems – my ‘Save’ buttons and Plugin status toggles are back.

I have a new problem, though: when I try to save an existing article, I get a Javascript error: form_submission_error

Popping open the web inspector on the page shows no issues…

Update: the same thing happens in my MS Windows browsers (it is not browser-specific).

Last edited by giz (2012-11-05 19:15:24)

Offline

#5 2012-11-05 22:57:59

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 259
Website

Re: My 4.5.2 upgrade is wack

I fixed the problem by installing a fresh TXP 4.5.2, and then copying over the relevant sql tables.

Yay!

(TXP 4.5+ is great by the way, thanks to all you hard-working developers).

Offline

Board footer

Powered by FluxBB