From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: xml statement in html and apache error Date: Sun, 26 Jun 2011 20:15:06 +0200 Message-ID: <8762nsmpcl.wl%dmaus@ictsoc.de> References: <7928.1302151682@alphaville.dokosmarshall.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Jun_26_20:15:06_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QatrU-00061I-SL for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 14:15:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QatrS-0001lI-O3 for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 14:15:12 -0400 Received: from app1a.xlhost.de ([213.202.242.161]:52402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QatrR-0001ks-U0 for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 14:15:10 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: nicholas.dokos@hp.com, Emacs-orgmode mailing list --pgp-sign-Multipart_Sun_Jun_26_20:15:06_2011-1 Content-Type: text/plain; charset=US-ASCII At Thu, 07 Apr 2011 11:18:27 +0200, Richard Riley wrote: > > Nick Dokos writes: > > > Richard Riley wrote: > > > >> > >> I cant really give too many details or suggestions as to why it failed, > >> but the default xml string at the top of export to html files was > >> causing apache to fail. > >> > >> ,---- > >> | Parse error: syntax error, unexpected T_STRING in > >> | /home/shamrock/common-files/webs/richardriley.net/projects/emacs/index.html > >> | on line 1 > >> `---- > >> > >> I simply removed the html xml declaration, > >> > >> ,---- > >> | org-export-html-xml-declaration is a variable defined in `org-html.el'. > >> | Its value is > >> | (("php" . "")) > >> `---- > >> > > > > This looks wrong (even though unrelated to the problem): in my setup I get > > > > > > You're right. Was late at night. I pasted the wrong value. The working value > is > > ,---- > | org-export-html-xml-declaration is a variable defined in `org-html.el'. > | Its value is > | (("php" . "\"; ?>")) > `---- > > That other value was in my scratch buffer from trying to debug the > situation. Note, I dont export to php, only html (currently). > > > > > org-export-html-xml-declaration is a variable defined in `org-html.el'. > > Its value is > > (("html" . "") > > ("php" . "\"; ?>")) > > > > > > > > so deleting the html entry should leave you with the second line. You seem > > to have a mash of the two entries instead. > > > > Sorry! Mea culpa there in my "bug report". > > >> reexported my private little web, reloaded apache and all was > >> well. Which was cool considering I hadnt exported it from the org data > >> for all of about 2 years! > >> > >> Far from thought out, almost certainly not "correct" I am sure, but got > >> my web back working. > >> > >> Possibly someone else can comment on cause/effect. > >> > > > > Well, I exported a toy project and despite the presence of the xml headers, > > my apache is not complaining at all. I also spot-checked a couple of files > > on orgmode.org and they have the xml header, but apache seems to deliver > > them without a problem. Which version of apache are you running? Mine is > > 2.2.16. > > Two machines, both with Debian Squeeze. > > ,---- > | Server version: Apache/2.2.16 (Debian) > | Server built: Mar 22 2011 20:56:31 > `---- > > > > > Nick > > > > PS. The exercise also uncovered an org bug but I'll post that as a > > separate message. > > > > Let me re-run the scenario and check my publish parameters - its really > been a LONG time since I published but something changed with > apache. Both machines are relatively new installs. Possibly something > third party needs to be instaled on squeeze now to get xml statements > parsed? A google was not so helpful. Not sure if you have fixed this problem but Parse error: syntax error, unexpected T_STRING in on line 1 Was/is an error of the PHP processor. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sun_Jun_26_20:15:06_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAk4HdyoACgkQma24O1pEeOZ5gAEAjvJ8iWu9uYvol4Niw2w85eb7 rn62pbHToPShAOIpIqoBANSfHm1yGYpg9rrzmS+MpPLy//do1YYxCvlNMrZg3aBi =X8FG -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Jun_26_20:15:06_2011-1--