Page 1 of 3
Can't add specific text to content SOLVED!!
Posted: Thu 9. Oct 2008, 10:49
by tester
Hey!
I've run into a weird problem - I think. Whenever or wherever I try to add this code:
Code: Select all
<div id="kulturretur">
<div class="hcss_menu">
<ul class="act_path">
<li class="sub_ul"><a href="http://www.kulturretur.dk">KulturReturs teams</a>
<ul>
<li class="sub_no"><a href="http://www.team-island.dk">Team Island</a></li>
<li class="sub_no"><a href="http://www.team-groenland.dk">Team Grønland</a></li>
<li class="sub_no"><a href="http://www.team-rumaenien.dk">Team Rumænien</a></li>
</ul>
</li>
</ul>
</div>
</div>
I get this result when I try to update or save the content.
Bad Request
Your browser sent a request that this server could not understand.
(Error code 400).
I've tried to add the text as content type "html", "plain text" and "wysiwyg html" and no matter what I get same response from the browser
I'm running phpwcms 1.3.5
Any ideas?
tester
Re: Can't add specific text to content
Posted: Sat 11. Oct 2008, 07:34
by santscho
I do not think, that this is a error of phpwcms.
I've tried to put your html code in a content part html (phpwcms 1.3.9). Everything works fine.
Maybe you provide more information like browser you are using, operating system...
and maybe also the url of this page. Then we can try to find the error with help of "tidy" or "web developer".
And try this: copy this code in a plain html-file. upload the file on your webserver and open it with your browser. what result do you get?
Open the website/testpage with IE-Netrenderer
http://ipinfo.info/netrenderer/
Ralph
Re: Can't add specific text to content
Posted: Sat 11. Oct 2008, 13:35
by tester
Hi!
Thanx Ralph.
It has been tested with different versions of IE and Firefox on Windows.
I've tried with Safari and Firefox on Mac OS X.
The code is running on
http://www.team-rumaenien.dk and
http://www.team-groenland.dk
Both phpwcms 1.3.9 and different server.
The problem is at
http://www.team-island.dk (phpwcms 1.3.5) and I've tried to put the code
into the template without any success.
Based on your reply I tried to upload the source code of
http://www.team-island.dk/index.php as
http://www.team-island.dk/test.html
with the problematic code embedded and guess what - no problem - the code rendered nicely.
Any workarounds besides updating
tester
Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 01:21
by santscho
The problem is at
http://www.team-island.dk (phpwcms 1.3.5) and I've tried to put the code
into the template without any success.
From my side (OSX 10.5.5 | Safari 3.1.2 | FireFox 3.0.3) no problems with this page. Correct output of a horizontal dropdown menu. Also no error message.

Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 09:35
by tester
Guess I didn't describe my problem good enough
There is no problem watching the page.
The problem arises when I try to update the page
with the code above from within phpwcms.
The code is not at the page now - I can't get it there.
Every time I try I get the error 403 and nothing gets updated.
tester
Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 10:12
by flip-flop
I have tested your snippet in an v1.3.5 iso installation, it is running well for me.
I can´t solve your problem. I think an update to v1.3.9 is one option for you.
Knut
Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 10:36
by marcus@localhorst
when I read the error message Bad Request, I thinked first on "Bad Behavior" - I have no idea that "Bad Behaviour" affects thr backend. But can you check, that it is turned off in config and try it again? greetings m.
Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 10:57
by tester
I don't think bad behaviour has anything to do with the back end.
I managed to get the code uploaded without updating. I split the code in two CP's.
CP #1
CP #2
Code: Select all
<div class="hcss_menu">
<ul class="act_path">
<li class="sub_ul"><a href="http://www.kulturretur.dk">KulturReturs teams</a>
<ul>
<li class="sub_no"><a href="http://www.team-island.dk">Team Island</a></li>
<li class="sub_no"><a href="http://www.team-groenland.dk">Team Grønland</a></li>
<li class="sub_no"><a href="http://www.team-rumaenien.dk">Team Rumænien</a></li>
</ul>
</li>
</ul>
</div>
</div>
both as HTML.
Thanx to all of you for your effort
tester
Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 11:35
by update
tester wrote:I don't think bad behavior has anything to do with the back end.
Well, this doesn't seem to be true in every case... I've had such (or similar) errors too in an installation (version 051208) right in the back end every now and then, mainly occurring when using IE6
Updating to a newer version did the trick.
Your solution seems to work? Strange enough.
Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 13:42
by santscho
Yes, that is strange. But I would like to know, if that happen only with this specific code or with all html codes you put in a html cp.
Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 13:51
by tester
Bad behaviour is set to "0", Claus

, so I guess it doesn't have any influence anyways.
It's only with this specific code. And it doesn't matter what kind of CP i use. HTML, text, code, whatever.
I also tried to put it in the template without any luck.
tester

Re: Can't add specific text to content
Posted: Sun 12. Oct 2008, 15:07
by marcus@localhorst
it's just witchcraft, nothing more

Re: Can't add specific text to content
Posted: Mon 20. Oct 2008, 22:05
by tester
The witchcraft continues and I'm getting kind of desperate.
On this page:
http://www.team-island.dk/index.php?8-dage
I'm trying to update "2008" in the headline to "2009". And I can't.
Every time the browser throws a "Bad request" at me when I try.
And I'm just changing the number "8" to a "9" in a WYSIWYG HTML CP.
I would be very glad if anyone has some ideas.
tester
Re: Can't add specific text to content
Posted: Mon 20. Oct 2008, 22:14
by Jensensen
no idea, sorry, btw:
8 dages grupperejser 2008
seems to be the article headline. my suggestion (--> search engines...): rather use h1
"Bad request" is new since some last weeks updates, i think. What/which version running?
BRING IT UP TO THE DEVELOPERS SCREEN AND POST IT HERE:
http://code.google.com/p/phpwcms/issues/list
Re: Can't add specific text to content
Posted: Mon 20. Oct 2008, 22:21
by tester
Hi Jensensen!
Vesion 1.3.5
And the message I receive is:
"Bad Request
Your browser sent a request that this server could not understand."
tester