Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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,316

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: 12,485
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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

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

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

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

#25 2014-10-16 11:44:12

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

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

As an aside, you’ve got a couple of typos in your CSS: visted and inerit. Invoice in the post, etc.

Offline

#26 2014-10-16 11:46:08

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

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

The mod security rule caused the issue, the hosts bypassed the particular rule for the domain and all is well again.

Thanks for your help all!

Jim

Offline

#27 2014-10-16 11:46:41

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

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

gaekwad wrote #284857:

As an aside, you’ve got a couple of typos in your CSS: visted and inerit. Invoice in the post, etc.

oh dear, how embarrassing! I will deal with that now!

Offline

#28 2014-10-16 11:48:25

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

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

thanks gaekwad =]

Offline

#29 2014-10-16 12:16:00

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

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

Mekajinn wrote #284858:

The mod security rule caused the issue, the hosts bypassed the particular rule for the domain and all is well again.

Strange that there was no mention of mod_security in the diagnostics…

Offline

#30 2014-10-16 13:29:08

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

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

They have their security settings set pretty high usually… which can be a pain in the arse tbh.

Offline

Board footer

Powered by FluxBB