Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Gika on September 26, 2009, 07:54:19 PM

Title: Ajax/javascript quote/quick edit/preview/etc. not working
Post by: Gika on September 26, 2009, 07:54:19 PM
as per title.
not sure what's going on really, i think i edited something in Subs.php but not something relevant to the ajax/javascript stuff. it worked till yesterday.

this is what firefox's error console shows:

Error: not well-formed
Source File: http://www.pcentral.biz/forum/index.php?action=quotefast;quote=126302;sesc=06306a514d3429965cfd105efdb658c3;xml (http://www.pcentral.biz/forum/index.php?action=quotefast;quote=126302;sesc=06306a514d3429965cfd105efdb658c3;xml)
Line: 1, Column: 4
Source Code:
...<?xml version="1.0" encoding="UTF-8"?>
<smf>
   <quote>(cut stuff)</quote>
</smf>
and

Error: XMLDoc.getElementsByTagName("quote")[0] is undefined
Source File: http://www.pcentral.biz/forum/Themes/default/xml_topic.js (http://www.pcentral.biz/forum/Themes/default/xml_topic.js)
Line: 29

thanks in advance.
Title: Re: Ajax/javascript quote/quick edit/preview/etc. not working
Post by: Gika on September 28, 2009, 09:25:29 AM
bump?
Title: Re: Ajax/javascript quote/quick edit/preview/etc. not working
Post by: Gika on October 01, 2009, 04:37:48 AM
bump again...
Title: Re: Ajax/javascript quote/quick edit/preview/etc. not working
Post by: Norv on October 10, 2009, 10:57:48 AM
Please download the attached file, and run it from your SMF folder. It will tell you if the php files in SMF start with <?php and end with ?> as expected for almost all of them. If not, take care with what you edit a file: please note that some editors can insert characters they don't tell about, and which can break php execution, like byte order mark. :)

Alternatively, you can simply try restoring Subs.php from the installation package, in case you didn't have other mods edits in it.

Please, let us know if this issue is solved.
Title: Re: Ajax/javascript quote/quick edit/preview/etc. not working
Post by: Gika on October 10, 2009, 07:06:16 PM
it worked! there were three "..." before the php line, i don't know why. thanks!
Title: Re: Ajax/javascript quote/quick edit/preview/etc. not working
Post by: Norv on October 10, 2009, 07:22:10 PM
Cheers, good to hear!
Marking the topic as solved.