Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-10-16 00:13:58

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Styles won't update - gives 404 error on save

Hi… sorry if this has already been covered elsewhere, I’ve had a quick scout and not found a thing.

Basically this is the sequence of events…

developed a site using 4.5.7 ready to replace a development on 4.5.5.

Finished the site, exported the entire database. imported the database into the 4.5.5 site. Stuck on the language setting page and couldn’t get off it. Realised I had to update that version of TP to 4.5.7. Did so, all was well, but then the style sheet wouldn’t save, and on clicking Save it would give me a 404 error.

Ditched the whole site… reinstalled 4.5.7 from scratch, then imported the relevant JS files, images etc. Dropped all the database tables, and imported the database of the new site I developed. No problems at all… all works… apart from when trying to amend the stylesheet… which is throwing up the same error.

No errors listed in the diagnostics… site works perfectly… other than a couple of styling issues… which I cannot fix!

Thanks for any input in advance… I’ve spent a few hours on it now, and am no nearer a solution!

Offline

#2 2014-10-16 01:03:56

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

Re: Styles won't update - gives 404 error on save

Sounds familiar. Dive in from here


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

Offline

#3 2014-10-16 07:44:32

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Re: Styles won't update - gives 404 error on save

Aha! That appears to be just what I am after uli, thank you very much sir!

Offline

#4 2014-10-16 09:01:38

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Re: Styles won't update - gives 404 error on save

Unfortunately that doesn’t seem to work.

It’s a bit odd, because on clicking save on the /textpattern/index.php?event=css page it goes to /textpattern/index.php and shows a 404 error… yet that is the page it goes to straight after login… and it works.

Offline

#5 2014-10-16 09:03:17

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Re: Styles won't update - gives 404 error on save

.htaccess looks like this…

#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

ErrorDocument 403 "TXP: Access not allowed" 
ErrorDocument 500 "TXP: Script crashed"

Edited for code clarity by gaekwad

Last edited by gaekwad (2014-10-16 09:05:02)

Offline

#6 2014-10-16 09:06:48

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

Re: Styles won't update - gives 404 error on save

Hey Mekajinn – can you share the URL? Make sure the textpattern/setup folder is deleted or renamed first.

Edit: also, can you post your high diagnostics here?

Last edited by gaekwad (2014-10-16 09:08:12)

Offline

#7 2014-10-16 09:26:15

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Re: Styles won't update - gives 404 error on save

High diagnostics…

Textpattern version: 4.5.7 (r5900)
Last update: 2014-10-15 23:30:00/2014-10-15 23:14:45
Document root: /home/hd/public_html
$path_to_site: /home/hd/public_html
Textpattern path: /home/hd/public_html/textpattern
Permanent link mode: section_title
Temporary directory path: /home/hd/public_html/textpattern/tmp
Site URL: www.hardmandesign.co.uk
PHP version: 5.4.30
GD Graphics Library: bundled (2.1.0 compatible); supported formats: GIF, JPG, PNG.
Server TZ: UTC
Server local time: 2014-10-16 09:25:32
DST enabled?: 1
Automatically adjust DST setting?: 1
Time zone: Europe/London (0)
MySQL: 5.6.17
Locale: en_GB.UTF-8
Server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.32-431.20.3.el6.x86_64
Active plugins: zem_contact_reborn-4.0.3.20m, zem_contact_lang-4.0.3.6
Admin-side theme: classic 4.5.7

.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

ErrorDocument 403 "TXP: Access not allowed" 
ErrorDocument 500 "TXP: Script crashed" 

------------------------

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
17 Tables: OK

10 Custom fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: Core/5.4.30, date/5.4.30, ereg, libxml, openssl, pcre, sqlite3/0.7, zlib/2.0, bcmath, bz2, calendar, ctype, curl, dom/20031129, hash/1.0, filter/0.11.0, ftp, gd, gettext, SPL/0.2, iconv, session, intl/1.1.0, json/1.2.1, mbstring, mcrypt, standard/5.4.30, mysql/1.0, mysqli/0.1, mysqlnd/mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, Phar/2.0.1, posix, pspell, Reflection/$Id: f6367cdb4e3f392af4a6d441a6641de87c2e50c4 $, imap, SimpleXML/0.1, soap, sockets, exif/1.4 $Id$, tidy/2.0, tokenizer/0.1, wddx, xml, xmlreader/0.1, xmlrpc/0.51, xmlwriter/0.1, xsl/0.1, zip/1.11.0, cgi-fcgi, PDO/1.0.4dev, pdo_sqlite/1.0.1, pdo_mysql/1.0.2, SourceGuardian/9.5, ionCube Loader, Zend Guard Loader

pretext_data: array (
  'status' => '200',
  'id' => '',
  's' => '',
  'c' => '',
  'context' => '',
  'q' => '',
  'm' => '',
  'pg' => '',
  'p' => '',
  'month' => '',
  'author' => '',
  'request_uri' => '/8ec62868fcfd4a224811ba1bec56d26d/?txpcleantest=1',
  'qs' => 'txpcleantest=1',
  'subpath' => '\\/',
  'req' => '/8ec62868fcfd4a224811ba1bec56d26d/?txpcleantest=1',
)

/home/hd/public_html/index.php: 
	r4086 (710756ce23f563b56112accbda667023)
/home/hd/public_html/css.php: 
	r4086 (290a801bc9aef107b59842d8bc09a023)
/home/hd/public_html/textpattern/css.php: 
	r3189 (f982b66c60b84981d516ea890033a3c7)
/home/hd/public_html/textpattern/include/import/import_b2.php: 
	r3997 (ba12ae6a6e29c8ab9dc19001ca0e8e68)
/home/hd/public_html/textpattern/include/import/import_blogger.php: 
	r3901 (71a08d35f05bed6e95703cd6ef3f1032)
/home/hd/public_html/textpattern/include/import/import_mt.php: 
	r3446 (9939c74ae762ccccc6351387ddb875c2)
/home/hd/public_html/textpattern/include/import/import_mtdb.php: 
	r3997 (90eed43b5781cad7152a0217d7a2ac76)
/home/hd/public_html/textpattern/include/import/import_wp.php: 
	r3997 (92c579bab8046e492b7ab6730406abd6)
/home/hd/public_html/textpattern/include/txp_admin.php: 
	r4092 (dc0d17b1c983c097701062bee013ddac)
/home/hd/public_html/textpattern/include/txp_article.php: 
	r4270 (e49112760b2bcf939bda85470c6aab1f)
/home/hd/public_html/textpattern/include/txp_auth.php: 
	r3964 (f106ac932addeea6f754f37b47d172de)
/home/hd/public_html/textpattern/include/txp_category.php: 
	r4972 (623746c39809e9243e84aee5794285c3)
/home/hd/public_html/textpattern/include/txp_css.php: 
	r4090 (7b9eb76a53fc9ad5510e424a27b626c2)
/home/hd/public_html/textpattern/include/txp_diag.php: 
	r4192 (3ea4332aba598e41a3b7e92212de72f9)
/home/hd/public_html/textpattern/include/txp_discuss.php: 
	r4089 (d02e06ca1cbd8aea2bdefd9cec9467c0)
/home/hd/public_html/textpattern/include/txp_file.php: 
	r5858 (a470e6e01c7331045ee5f5057fed0ff7)
/home/hd/public_html/textpattern/include/txp_form.php: 
	r4156 (74ca8aefb860914c6b7e075d492dbb91)
/home/hd/public_html/textpattern/include/txp_image.php: 
	r5084 (f0e90eed0827aee50783463008179ec8)
/home/hd/public_html/textpattern/include/txp_import.php: 
	r3997 (b3aab863b203406b358acdf18cd0b7ed)
/home/hd/public_html/textpattern/include/txp_link.php: 
	r4089 (ae94cf402425f44ca0711370e66e7288)
/home/hd/public_html/textpattern/include/txp_list.php: 
	r4089 (c46d070b5458c0d05a580b51803cb7e2)
/home/hd/public_html/textpattern/include/txp_log.php: 
	r4062 (a7c83c892b6a9f35558c7b5675e3ddb7)
/home/hd/public_html/textpattern/include/txp_page.php: 
	r4873 (3f3f62ac0c661312173d671ec05506d0)
/home/hd/public_html/textpattern/include/txp_plugin.php: 
	r5882 (a841813b63bec1d4b5b75ffb5881a200)
/home/hd/public_html/textpattern/include/txp_prefs.php: 
	r4062 (ce782278209ddfa4470ead9d78a05460)
/home/hd/public_html/textpattern/include/txp_section.php: 
	r5860 (87d0198cdfc904980bd8ae2982cf17c9)
/home/hd/public_html/textpattern/include/txp_tag.php: 
	r4095 (45b9ab3c7ab3ecbf0d94fa0de1288a31)
/home/hd/public_html/textpattern/index.php: 
	r5900 (656b164fb40920bcd7203d5b05d3163f)
/home/hd/public_html/textpattern/jquery.js: 
	unknown (3576a6e73c9dccdbbc4a2cf8ff544ad7)
/home/hd/public_html/textpattern/lib/IXRClass.php: 
	unknown (aca78e2c650bbdd9ca17ed3e0f4e6006)
/home/hd/public_html/textpattern/lib/admin_config.php: 
	r3896 (1a3b0257eeebd0c010cfc97640a257dd)
/home/hd/public_html/textpattern/lib/class.thumb.php: 
	r5753 (fee74810020c56cc1f478ecdbaf30da4)
/home/hd/public_html/textpattern/lib/classTextile.php: 
	unknown (fc65fe0de6e4c627ab77ff08e60afb6c)
/home/hd/public_html/textpattern/lib/constants.php: 
	r4060 (bf278b5c526b90e2c2094b3b1981d238)
/home/hd/public_html/textpattern/lib/taglib.php: 
	r2868 (86c4a02eac06778882ead9844b30cc33)
/home/hd/public_html/textpattern/lib/txplib_admin.php: 
	r5889 (6fe09c3b4f06c8d603fd01978c7cc6c4)
/home/hd/public_html/textpattern/lib/txplib_db.php: 
	r3752 (a8942c0c929afd3be8c92bd73a85d86e)
/home/hd/public_html/textpattern/lib/txplib_forms.php: 
	r4872 (144564171e455893b8c68842af7b7b66)
/home/hd/public_html/textpattern/lib/txplib_head.php: 
	r3989 (1ed98f05fae11a524d7b1897fbae45d1)
/home/hd/public_html/textpattern/lib/txplib_html.php: 
	r4163 (e8e93162cc4d6182f5bc73fe0ddf617d)
/home/hd/public_html/textpattern/lib/txplib_misc.php: 
	r5892 (b94d859cc94cf2e3f58b8f104b55fbfc)
/home/hd/public_html/textpattern/lib/txplib_publish.php: 
	r5671 (6d7f4610b176b73c4d2a5f658accd3f9)
/home/hd/public_html/textpattern/lib/txplib_theme.php: 
	r3944 (31eec9c215d07430de2b7f42145a11bc)
/home/hd/public_html/textpattern/lib/txplib_update.php: 
	r4020 (57a285b9a3549de0c5d621f48be7355b)
/home/hd/public_html/textpattern/lib/txplib_validator.php: 
	r3802 (424003170e59c520dc416cbf0af13b66)
/home/hd/public_html/textpattern/lib/txplib_wrapper.php: 
	r2931 (7886343e3154836d717301ac08f9ba3c)
/home/hd/public_html/textpattern/publish.php: 
	r4461 (89bf49e029c639573606a5509a869ad6)
/home/hd/public_html/textpattern/publish/atom.php: 
	r4011 (c4055157a4744747205273c762f2ef13)
/home/hd/public_html/textpattern/publish/comment.php: 
	r4058 (a31272ae2767bae48205609e96124917)
/home/hd/public_html/textpattern/publish/log.php: 
	r3505 (44fabcd5884fd33c7bc068a366dcc93a)
/home/hd/public_html/textpattern/publish/rss.php: 
	r4011 (cd09a65a913c7a80054913862f276c2b)
/home/hd/public_html/textpattern/publish/search.php: 
	r2812 (b7937850ab0bdf4feaa21e48e5aa362e)
/home/hd/public_html/textpattern/publish/taghandlers.php: 
	r5569 (7bee25bf5847373b7600bc3dd25d8a91)
/home/hd/public_html/textpattern/textpattern.js: 
	r5004 (f3002dc6889403e1ca67ea63c5fdb8dc)
/home/hd/public_html/textpattern/theme/classic/classic.php: 
	r4055 (b91499484878c1a6139ebbde44940375)
/home/hd/public_html/textpattern/update/_to_1.0.0.php: 
	r5875 (9435ee9f8eb6c0d41885214f7503a8e6)
/home/hd/public_html/textpattern/update/_to_4.0.2.php: 
	r5875 (d5d5e2330f4eb2e17003795d90ddadc3)
/home/hd/public_html/textpattern/update/_to_4.0.3.php: 
	r4011 (2f7736feb6882fc8358cab3e0e595c4d)
/home/hd/public_html/textpattern/update/_to_4.0.4.php: 
	r4011 (165d755acb41c7120872910eec114f12)
/home/hd/public_html/textpattern/update/_to_4.0.5.php: 
	r4011 (bab79d1c2bb9d0fdb98da773e2434639)
/home/hd/public_html/textpattern/update/_to_4.0.6.php: 
	r4011 (3a323f019b0170f26357fa851b68f37b)
/home/hd/public_html/textpattern/update/_to_4.0.7.php: 
	r4011 (a48d3e4e077d1341d498a97367bc4233)
/home/hd/public_html/textpattern/update/_to_4.0.8.php: 
	r3057 (cf91a8e5a56f341d625630f0cddb996e)
/home/hd/public_html/textpattern/update/_to_4.2.0.php: 
	r4011 (29eab41ee2b29c730f04b29fe81ceeff)
/home/hd/public_html/textpattern/update/_to_4.3.0.php: 
	r4011 (69789c04be7d027fcf37154adb359b8d)
/home/hd/public_html/textpattern/update/_to_4.4.0.php: 
	r4011 (47f79ff490ff344eba0f5577e10ee6c3)
/home/hd/public_html/textpattern/update/_to_4.4.1.php: 
	r4011 (7db179e3c17bd7e0c2587f489ed92964)
/home/hd/public_html/textpattern/update/_to_4.5.0.php: 
	r5875 (2069082373508aa79edfc894e4f15768)
/home/hd/public_html/textpattern/update/_update.php: 
	r5900 (988af7b15cedf67a08b0f7d327f20d7b)

------------------------

site url is http://www.hardmandesign.co.uk

Edited by gaekwad: formatting

Last edited by gaekwad (2014-10-16 09:34:20)

Offline

#8 2014-10-16 09:47:05

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Re: Styles won't update - gives 404 error on save

thanks for helping gaekwad =]

Offline

#9 2014-10-16 10:01:32

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

Re: Styles won't update - gives 404 error on save

I wonder if size matters. Can you create a second (or additional) stylesheet? Can you save something in it?

Offline

#10 2014-10-16 10:17:02

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Re: Styles won't update - gives 404 error on save

When I copy the body section of the css (basically the first line) and try and create a new style it takes me to a plain white page with “TXP: Access not allowed” on it… url is site/textpattern/index.php

Offline

#11 2014-10-16 10:17:39

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Re: Styles won't update - gives 404 error on save

however there are 3 other stylesheets already attached form the development… IE8, IE7 and backup.

Offline

#12 2014-10-16 10:18:46

Mekajinn
Member
From: UK
Registered: 2014-04-02
Posts: 24

Re: Styles won't update - gives 404 error on save

Rather peculiarly, if I create a new style and put a line of randomness in there (hmmhgnbkyikun), and then try to save as a new file it does so, no problem.

Offline

Board footer

Powered by FluxBB