News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Ajax/javascript quote/quick edit/preview/etc. not working

Started by Gika, September 26, 2009, 07:54:19 PM

Previous topic - Next topic

Gika

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 [nofollow]
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 [nofollow]
Line: 29

thanks in advance.


Gika


Norv

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.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Gika

it worked! there were three "..." before the php line, i don't know why. thanks!

Norv

To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: