Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2014-10-16 10:23:15

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

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

Try these in the dummy CSS one at a time and see if it save-barfs (it’s a word) on either or both:

Test 1 (no quotes):

body {background-color: #00ff00;}

Test 2 (double quotes):

p {font-family: "Times New Roman";}

Offline

#14 2014-10-16 10:24:03

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

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

Mekajinn wrote #284840:

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

Does editing those cause the same error, or just the main style?

Offline

#15 2014-10-16 10:34:30

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

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

Tried either and both of those lines in the test stylesheet, all saved fine.

Editing the other stylesheets save-barfs with the same result as I posted previously… so not a 404 error, but TXP: Access not allowed

Offline

#16 2014-10-16 10:37:37

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

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

hmmm… I’ve tried copying and pasting the whole stylesheet into the test… same result… then removed about 2/3 of it and it saved. I don’t really understand how it can be a size issue though.

Offline

#17 2014-10-16 10:40:26

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

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

Mekajinn wrote #284833:
/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)

Shouldn’t there be a line with update/_to_4.5.7.php in between the above? I’ve no copy of the most recent 4.5.7 running so I can’t see for myself. Pete, did you upgrade already? The file _to_4.5.7.php exists in the “update” folder (the only sub-sub-decimal place update file in the 4.5 branch), but is it also listed in the high diagnostics?


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

Offline

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

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

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

Though not the most elegant solution, I’ve had great success by emailing the offending content of the stylesheet / page / form / article to the host saying something along the lines of “this content trips your counter measures and I can’t save it in my CMS. Please tweak your rules.”

Lo and behold, they wrote back and apologised, relaxing the rules somewhat. The thread that led to this outcome started here if it offers anything over and above what you’ve tried already. Temporarily removing or renaming your .htaccess file can give insight into the real error thrown by the server before Txp gets awakened.


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

Online

#19 2014-10-16 10:47:56

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

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

Mekajinn wrote #284845:

hmmm… I’ve tried copying and pasting the whole stylesheet into the test… same result… then removed about 2/3 of it and it saved. I don’t really understand how it can be a size issue though.

Mustn’t be the size. As gaekwad/Pete tried to test with you: It might be certain characters. Edit: Stef was faster.

Last edited by uli (2014-10-16 10:49:44)


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

Offline

#20 2014-10-16 10:55:09

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

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

The thing I don’t understand is that exactly the same stylesheet was fine with 4.5.5.

I’ve experimented further by removing the lines…

background-image:url(images/2.jpg); background-repeat:no-repeat; background-attachment: fixed; background-position:top; background-size: 100%;

from the original… no joy…

However, if I copy the main stylesheet over to the test one bit by bit it saves… but only if those lines above are removed. This works until I get to about 3/4 of the stylesheet copied and then it results in the same error.

I am more than happy to send the stylesheet to my hosts to facilitate a solution… thanks Stef… and not just for that suggestion, I’ve used a few of your plugins, awesome work sir!

Last edited by Mekajinn (2014-10-16 11:05:55)

Offline

#21 2014-10-16 10:59:19

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

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

background-image:url(/images/71.png);
background-repeat:no-repeat;
background-position: 96% 50%;

later on the stylesheet refuses to save until I remove the above code… seems to be some problem with how I do the bg images

Offline

#22 2014-10-16 11:15:01

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

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

specifically this line…

background-image:url(‘/images/71.png’);

in fact, specifically the phrase…

background-image

how odd!

Offline

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

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

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

yup, saving into the test stylesheet, if I remove all references to background-image it saves no problem.

As I said before, it’s odd that this is an issue in 4.5.7, but I will contact my hosts anyway and see if they can shed any light on it.

Thanks all.

Offline

#24 2014-10-16 11:19:50

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

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

a new empty stylesheet…

.test {

background-image:

}

save-barfs,

.test {

background-image

}

saves without issue!

Offline

Board footer

Powered by FluxBB