Advertisement:

Author Topic: Ajax/javascript quote/quick edit/preview/etc. not working  (Read 1659 times)

Offline Gika

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
Ajax/javascript quote/quick edit/preview/etc. not working
« 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 [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.

Offline Gika

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
Re: Ajax/javascript quote/quick edit/preview/etc. not working
« Reply #1 on: September 28, 2009, 09:25:29 AM »
bump?

Offline Gika

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
Re: Ajax/javascript quote/quick edit/preview/etc. not working
« Reply #2 on: October 01, 2009, 04:37:48 AM »
bump again...

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Ajax/javascript quote/quick edit/preview/etc. not working
« Reply #3 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.
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

Offline Gika

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
Re: Ajax/javascript quote/quick edit/preview/etc. not working
« Reply #4 on: October 10, 2009, 07:06:16 PM »
it worked! there were three "..." before the php line, i don't know why. thanks!

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Ajax/javascript quote/quick edit/preview/etc. not working
« Reply #5 on: October 10, 2009, 07:22:10 PM »
Cheers, good to hear!
Marking the topic as 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