DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > How to Use the Forum

Reply
 
Thread Tools Display Modes
Old 07-04-2007, 09:52 PM   #1
cirquelle
Member
 
Join Date: Jan 2006
Posts: 47
Default RSS feeds are broken!!!

Are you aware that for the last week or so (maybe since the forum change?) RSS feeds are broken?

Clicking the following link in an RSS reader:

http://www.desktoppublishingforum.com/bb/external.php?type=rss2

gives the error message: Error: XML Parse Error

Did someone forget to update the link?
cirquelle is offline   Reply With Quote
Old 07-05-2007, 02:43 AM   #2
iamback
Member
 
iamback's Avatar
 
Join Date: Oct 2005
Location: Amsterdam, NL
Posts: 4,894
Default XML encoding error - cause of all recent problems?

Quote:
Originally Posted by cirquelle View Post
Are you aware that for the last week or so (maybe since the forum change?) RSS feeds are broken?

Clicking the following link in an RSS reader:

http://www.desktoppublishingforum.co....php?type=rss2

gives the error message: Error: XML Parse Error

Did someone forget to update the link?
The error message I see (looking with FF) is a bit more specific:
Code:
XML Parsing Error: syntax error
Location: http://www.desktoppublishingforum.com/bb/external.php?type=RSS2
Line Number 1, Column 36:

<?xml version="1.0" encoding="UTF-8 no BOM"?>
-----------------------------------^
that " no BOM" part (including leading space) should not be there. The link is there, the file it links to is broken.

Now, this is interesting, because if I want to edit my own message (which tries to use AJAX, which also uses XML!), The first click does nothing at all, but on the second click I get a bunch of (JavaScript) errors in my FF error console; last time I paid attention I saw a similar error, also quoting an XML processing statement with that same encoding="UTF-8 no BOM".

Come to think of it, I think the upload form also uses AJAX...

We may have hit on a common cause for all recent problems!

   
__________________
Marjolein Katsma
Look through my eyes on Cultural Surfaces (soon!), My ArtFlakes shop and Flickr.
Occasionally I am also connecting online dots... and sometimes you can follow me on Marjolein's Travel Blog
iamback is offline   Reply With Quote
Old 07-05-2007, 03:32 AM   #3
iamback
Member
 
iamback's Avatar
 
Join Date: Oct 2005
Location: Amsterdam, NL
Posts: 4,894
Default XML, AJAX, too, even HTML - but not uploader problem

Quote:
Originally Posted by iamback View Post
Now, this is interesting, because if I want to edit my own message (which tries to use AJAX, which also uses XML!), The first click does nothing at all, but on the second click I get a bunch of (JavaScript) errors in my FF error console; last time I paid attention I saw a similar error, also quoting an XML processing statement with that same encoding="UTF-8 no BOM".
I have a little console that can show me HTTP requests and responses. This is what I get when trying to edit my own message:
Code:
+++GET 19978+++
POST /bb/ajax.php?do=quickedit&p=47625 HTTP/1.1
Host: www.desktoppublishingforum.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 300
Content-Type: application/x-www-form-urlencoded
Referer: http://www.desktoppublishingforum.com/bb/showthread.php?p=47625
Content-Length: 47
Cookie: bbthreadedmode=linear; bblastvisit=1173302642; bblastactivity=0; bbuserid=379; bbpassword=[munged]; bbsessionhash=[munged]; bbthread_lastview=33d442625fcf4b965f0324366546d231a-33-%7Bi-4411_i-1183329327_i-4409_i-1183487342_i-4412_i-1183361892_i-4414_i-1183321388_i-4415_i-1183486829_i-4416_i-1183414112_i-4408_i-1183413634_i-2982_i-1183382154_i-4387_i-1183585354_i-3031_i-1183357850_i-1830_i-1183418662_i-4395_i-1183421281_i-3701_i-1183357732_i-4311_i-1183515534_i-4417_i-1183606735_i-4341_i-1183604195_i-4418_i-1183502095_i-1978_i-1183449579_i-4425_i-1183494252_i-4427_i-1183483536_i-4397_i-1183514006_i-4430_i-1183585894_i-4402_i-1183592379_i-4376_i-1183556676_i-4432_i-1183608634_i-4433_i-1183599377_i-4434_i-1183586633_i-4435_i-1183603163_i-4436_i-1183611365_i-4437_i-1183598908_i-4438_i-1183614161_i-4439_i-1183614205_i-4440_i-1183632213_%7D; bbforum_view=608f0fc66088684f670c2560cebcff6da-10-%7Bi-25_i-1183526711_i-15_i-1183611864_i-7_i-1183328781_i-26_i-1183610383_i-10_i-1183611489_i-30_i-1183588367_i-28_i-1183442911_i-9_i-1183588307_i-6_i-1183611547_i-12_i-1183611618_%7D; bbcalendar=2ae936cac49742960376509b844f7ca2a-3-%7Bs-7-.calyear._i-2007_s-8-.calmonth._i-7_s-8-.calview1._s-12-.displaymonth._%7D
Pragma: no-cache
Cache-Control: no-cache
Browser reload detected...
Posting 47 bytes...

+++RESP 19978+++
HTTP/1.1 200 OK
Date: Thu, 05 Jul 2007 10:47:18 GMT
Server: Apache/1.3.37 (Unix) mod_log_bytes/1.2 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.7 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
X-Powered-By: PHP/4.4.7
Cache-Control: private
Pragma: private
Connection: close
Content-Type: text/xml; charset=UTF-8 no BOM
Content-Encoding: gzip
Content-Length: 2162
+++CLOSE 19978+++
Note the "Content-Type" header in the response!

On the next click on the Edit button, the error console comes up with this:
Code:
Error: syntax error
Source File: http://www.desktoppublishingforum.com/bb/ajax.php?do=quickedit&p=47625
Line: 1, Column: 36
Source Code:
<?xml version="1.0" encoding="UTF-8 no BOM"?>
-----------------------------------^

Error: editor has no properties
Source File: http://www.desktoppublishingforum.com/bb/clientscript/vbulletin_quick_edit.js?v=365
Line: 171

Error: vB_Editor[vB_QuickEditor.editorid] has no properties
Source File: http://www.desktoppublishingforum.com/bb/clientscript/vbulletin_quick_edit.js?v=365
Line: 276
... after which the normal ("advanced" for me currently) editor comes up.

Indeed, same XML encoding problem. Now, let's try to attach something...
When I hit the "Manage Attachments" button, the first request and response are:
Code:
+++GET 19985+++
GET /bb/newattachment.php?t=4440&poststarttime=1183632506&posthash=44a58c8119762d46ad036a7471a8c296 HTTP/1.1
Host: www.desktoppublishingforum.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 300
Referer: http://www.desktoppublishingforum.com/bb/newreply.php?do=newreply&p=47625
Cookie: bbthreadedmode=linear; bblastvisit=1173302642; bblastactivity=0; bbuserid=379; bbpassword=44e012d5a97b7f2bdd288e11826532b9; bbsessionhash=ea4a42185e8df82e05ad1cdafbdf5ef0; bbthread_lastview=33d442625fcf4b965f0324366546d231a-33-%7Bi-4411_i-1183329327_i-4409_i-1183487342_i-4412_i-1183361892_i-4414_i-1183321388_i-4415_i-1183486829_i-4416_i-1183414112_i-4408_i-1183413634_i-2982_i-1183382154_i-4387_i-1183585354_i-3031_i-1183357850_i-1830_i-1183418662_i-4395_i-1183421281_i-3701_i-1183357732_i-4311_i-1183515534_i-4417_i-1183606735_i-4341_i-1183604195_i-4418_i-1183502095_i-1978_i-1183449579_i-4425_i-1183494252_i-4427_i-1183483536_i-4397_i-1183514006_i-4430_i-1183585894_i-4402_i-1183592379_i-4376_i-1183556676_i-4432_i-1183608634_i-4433_i-1183599377_i-4434_i-1183586633_i-4435_i-1183603163_i-4436_i-1183611365_i-4437_i-1183598908_i-4438_i-1183614161_i-4439_i-1183614205_i-4440_i-1183632213_%7D; bbforum_view=608f0fc66088684f670c2560cebcff6da-10-%7Bi-25_i-1183526711_i-15_i-1183611864_i-7_i-1183328781_i-26_i-1183610383_i-10_i-1183611489_i-30_i-1183588367_i-28_i-1183442911_i-9_i-1183588307_i-6_i-1183611547_i-12_i-1183611618_%7D; bbcalendar=2ae936cac49742960376509b844f7ca2a-3-%7Bs-7-.calyear._i-2007_s-8-.calmonth._i-7_s-8-.calview1._s-12-.displaymonth._%7D

+++RESP 19985+++
HTTP/1.1 200 OK
Date: Thu, 05 Jul 2007 10:55:25 GMT
Server: Apache/1.3.37 (Unix) mod_log_bytes/1.2 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.7 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
X-Powered-By: PHP/4.4.7
Cache-Control: private
Pragma: private
Content-Encoding: gzip
Content-Length: 3973
Connection: close
Content-Type: text/html; charset=UTF-8 no BOM
+++CLOSE 19985+++
... followed by a bunch more to get the embedded images (note the Content-Type: invalid, but the browser doesn't complain)

Now, if I try to upload an image, I see no AJAX... but the HTML page that is sent back still has the same Content-Type. OK, so no AJAX in the uploader...

But looking at the source of this page I see the "UTF no BOM" in a meta statement as well! And at least AJAX edit-in-place and the RSS feeds have a common cause of the problems!
Both HTML and XML are served with charset (resp. encoding) "UTF-8 no BOM": and this ends up inside every served document as well (in meta statement resp. XML processing statement within an XML file).
The "no BOM" part is probably the result of some confusion: a BOM is a byte-order mark (used in some Unicode formats but not required in UTF-8): it is a physical property of how a file is stored; some editors allow you to store a file in UTF-8 format without a BOM, for instance. But "encoding" or "charset" in HTTP headers and XML processing statements can only have the UTF-8 (or other format) - the "no BOM" has no business there and is in fact invalid. If a machine receives a file (of HTTP response) it's up to the receiving software to look for the BOM; it doesn't need to be told it's not there.

   
__________________
Marjolein Katsma
Look through my eyes on Cultural Surfaces (soon!), My ArtFlakes shop and Flickr.
Occasionally I am also connecting online dots... and sometimes you can follow me on Marjolein's Travel Blog
iamback is offline   Reply With Quote
Old 07-05-2007, 05:18 AM   #4
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,187
Default

Thank you for all that (and thank your little console, too!)

I got advice from vBulletin to turn off “problematical” AJAX settings, which I have just done.

I have also removed “no BOM” from the charset.

Now I must have my coffee and say good morning to our guests. In the meantime, I hope you and others will see if anything has improved.

Attachments, anyone? RSS? Single click to edit, etc.?

Merci!

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel is offline   Reply With Quote
Old 07-05-2007, 05:39 AM   #5
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Attachments don't attach

Quote:
Originally Posted by ktinkel View Post
Thank you for all that (and thank your little console, too!)

I got advice from vBulletin to turn off “problematical” AJAX settings, which I have just done.

I have also removed “no BOM” from the charset.

Now I must have my coffee and say good morning to our guests. In the meantime, I hope you and others will see if anything has improved.

Attachments, anyone? RSS? Single click to edit, etc.?

Merci!
Attachments don't attach, I tried it. I never did try RSS, though.
dthomsen8 is offline   Reply With Quote
Old 07-05-2007, 07:11 AM   #6
kt_alterego
Member
 
kt_alterego's Avatar
 
Join Date: Jul 2007
Posts: 1
Default

Well, KT fixed the RSS feed. Even I, her lowly alter ego, can use it.

And editing seems to require only a single click. That’s all to the good.

But I still get Upload of image failed when I try to attach an image.

Back to the drawing board.
kt_alterego is offline   Reply With Quote
Old 07-05-2007, 09:24 AM   #7
iamback
Member
 
iamback's Avatar
 
Join Date: Oct 2005
Location: Amsterdam, NL
Posts: 4,894
Default

Quote:
Originally Posted by ktinkel View Post
Thank you for all that (and thank your little console, too!)

I got advice from vBulletin to turn off “problematical” AJAX settings, which I have just done.

I have also removed “no BOM” from the charset.
Actually, I suspect that if the "no BOM" is removed glbally, AJAX should start working normally again. It is single-click now, but does it the "old-fashioned" way going directly to the full edit page: a new page load. (But I rather like the edit-in-place! If all you need to do is edit the content, that's much quicker.)

Quote:
Originally Posted by ktinkel View Post
Now I must have my coffee and say good morning to our guests. In the meantime, I hope you and others will see if anything has improved.
Say hi! from me too.

Quote:
Originally Posted by ktinkel View Post
Attachments, anyone? RSS?
Like I deduced, attachments are unrelated. But RSS looks OK now, and HTML, too, both with just "UTF-8" for encoding/charset. HTTP headers correct, too. (I suspect it's a global setting in vBulletin that does it all).

Congratulations! Off now! Enjoy your guests' company now!

   
__________________
Marjolein Katsma
Look through my eyes on Cultural Surfaces (soon!), My ArtFlakes shop and Flickr.
Occasionally I am also connecting online dots... and sometimes you can follow me on Marjolein's Travel Blog
iamback is offline   Reply With Quote
Old 07-05-2007, 10:19 AM   #8
cirquelle
Member
 
Join Date: Jan 2006
Posts: 47
Default

RSS feeds are working today! Thank you. One down...
cirquelle is offline   Reply With Quote
Old 07-05-2007, 10:51 AM   #9
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,187
Default

Quote:
Originally Posted by cirquelle View Post
RSS feeds are working today! Thank you. One down...
Yes indeed. Glad I could fix something!

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel is offline   Reply With Quote
Old 07-05-2007, 02:59 PM   #10
Michael Rowley
Member
 
Join Date: Jan 2005
Location: Ipswich (the one in England)
Posts: 5,105
Default

KT (alter ego):

If your alter id keeps interfering, you'll have to call your superego to the rescue!

   
__________________
Michael
Michael Rowley is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE6 broken?? gary Web Site Building & Maintenance 7 03-22-2006 07:19 AM
Automated news feeds for HTML sites ktinkel Web Site Building & Maintenance 11 02-15-2006 02:17 PM


All times are GMT -8. The time now is 03:19 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Contents copyright 2004–2019 Desktop Publishing Forum and its members.