Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-09-06 10:24:41

livelifeloud
New Member
Registered: 2013-09-06
Posts: 3

Stylesheet editor broken after update attempt

Hello, so I’m relatively new to Textpattern after I took over from the web guy at my company.

I tried to update to version 4.5.4 from 4.2.0, but it just wasn’t working, and instead of trying to figure it out, I decided to revert back to 4.2 as we need the site to be live asap, and thought I could worry about it at a later date.

After replacing the 4.5.4 files with my old 4.2.0 files, my stylesheet editor and section editor in admin are not connecting: getting notices at the top like:

Notice: Undefined index: edit_raw_css_by_default in /home/proitprint/public_html/textpattern/include/txp_css.php on line 60

so obviously something wasn’t transferred back properly or theres something wrong with the txp_css.php, but I can’t figure out what.

I should also note that in the diagnostics page this is popping up:

The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: fork

Any help much appreciated :)

Thanks

Last edited by livelifeloud (2013-09-06 10:26:30)

Offline

#2 2013-09-06 10:30:46

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Stylesheet editor broken after update attempt

Welcome to the Textpattern forum!

Do you have green lines on Admin > Diagnostics? If not (which I assume) please post the contents of the textarea on that page.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2013-09-06 10:34:01

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Stylesheet editor broken after update attempt

You hadn’t edited your post when I wrote my response. Can’t tell anything re PHP modules, sorry.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2013-09-06 10:34:40

livelifeloud
New Member
Registered: 2013-09-06
Posts: 3

Re: Stylesheet editor broken after update attempt

Thanks for the fast reply :)

There are no green lines I’m afraid.

Below is the contents of the textarea:

Textpattern version: 4.2.0 (r3275)
Last Update: 2013-09-06 09:57:54/2013-09-06 09:55:50
Document root: /home/proitprint/public_html
$path_to_site: /home/proitprint/public_html
Textpattern path: /home/proitprint/public_html/textpattern
Permanent link mode: section_title
Temporary directory path: /home/proitprint/public_html/textpattern/tmp
Site URL: printit.org.uk
PHP version: 5.3.2-1ubuntu4.21
GD Image Library: 2.0; supported formats: GIF, JPG, PNG.
Server TZ: Europe/London
Server Local Time: 2013-09-06 11:33:57
DST enabled?: 1
Automatically adjust DST setting?: 1
Time Zone: Europe/London (0)
MySQL: 5.5-mysql-switch1.0
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.32-45-generic-pae
Active plugins: zem_contact_lang-4.0.3.6m, zem_contact_reborn-4.0.3.20m, rvm_substr-0.3, glx_admin_image-2006.1, ign_password_protect-0.5b9m
Admin-side theme: classic 4.2.0

Pre-flight check:
————————————
/home/proitprint/public_html/textpattern/setup/ still exists
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: fork
————————————

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

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On 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

————————————

Offline

#5 2013-09-06 11:35:43

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

Re: Stylesheet editor broken after update attempt

You did do a backup of your database prior to attempting the upgrade, right?

If so revert back to that. When you perform an upgrade various settings in the database tables are updated for new/changed functionality and settings, so downgrades aren’t as simple as placing the old Textpattern version back on your site.

If not, I’d personally look into the reasons why the site isn’t working in v4.5, since that version of Textpattern is much more secure (and generally nicer all round) than v4.2.

Offline

#6 2013-09-06 12:16:19

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Stylesheet editor broken after update attempt

Textpattern version 4.2.0 has various publicly known major critical security vulnerabilities; including few remote code execution vulnerabilities. These vulnerabilities were resolved in releases 4.4.0 (exploits) and 4.4.1 (CSRF protection); you truly should update at least to 4.4.1 as soon as possible, if you want to keep the site safe.

Offline

#7 2013-09-06 14:20:12

livelifeloud
New Member
Registered: 2013-09-06
Posts: 3

Re: Stylesheet editor broken after update attempt

Thanks everyone. Yes it did turn out to be me not uploading the backed-up database properly.

I’m not sure why the update didn’t work in the first place though, I replaced all the necessary files from the download etc. I’ll give it another go on Monday and come back if it doesn’t work again.

Offline

Board footer

Powered by FluxBB