News:

Join the Facebook Fan Page.

Main Menu

Quick Modify issue

Started by ɔɔɔɔɔɔuɥoɾ, September 04, 2010, 03:09:27 PM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

Hello all

I'm having a strange issue here, cant figure it out myself

The Quick modify button is loading the forum to edit the post, it does this for all theme, core and curve, it does this in all boards too. I have looked at the code in Display.template.php and it is all in order. (I think the issue is in Sources or Java, but I don't know where).
What happens is when I click the quick modify button, the Ajax bar pops up on the top of the screen, but suddenly dissapears and leaves me at the same place.
Information~

SMF version 2 RC3 - Upgraded from RC1.2 - I'm sure this happened after the upgrade, quick modify has been working in the last few weeks.
Theme, My own custom theme (based on core), I can confirm that the issues have started long after using this theme.
*Mods

1.Hide Tag 2.3.6 
2.SimplePortal 2.3.2 
4.Treasury 2.06 
5.Custom Tab 1.2 
6.Moderator and Administrator Comment Tags 1.8 
7.The Rules 1.3 
8.Custom Form Mod 1.6 
9.vNES Integration 2.1
10.Twitter and Facebook Publisher mod 2.4 
11.SMF Arcade 2.5 RC1 
12.Invitation System 1.0.3 
13.Linkbucks (for guests) 0.2 
14.Board Sort Methods RC3.o
15.Restrict Quote 1.0 
16.reCAPTCHA for SMF 0.9.8 
17.Guest Only BBC 0.1 
18.Members Only BBC 0.1 
19.vNES Integration 2.5 
20.Aeva Media 1.4


Most recent mod was AEVA, then Admin/Guest/Member BBC.

Thanks in Advanced.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

xenovanis

Any javascript errors reported in your browser?
"Insanity: doing the same thing over and over again and expecting different results."

ɔɔɔɔɔɔuɥoɾ

#2
Actually, yes..

Error: XML or text declaration not at start of entity
Source File: index.php?action=quotefast;quote=51969;modify;xml
Line: 2, Column: 1
Source Code:
<?xml version="1.0" encoding="UTF-8"?> // weird, I do not use UTF-8 ???

and..

Error: XMLDoc.getElementsByTagName("message")[0] is undefined
Source File: Themes/default/scripts/topic.js
Line: 257

Line 257 in topic.js
this.sCurMessageId = XMLDoc.getElementsByTagName('message')[0].getAttribute('id');
That happens when clicking the quick modify


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

ɔɔɔɔɔɔuɥoɾ



SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

xenovanis

Your Topic.js matches the default one. The other error seems to be caused by the Ajax chat integration:
http://www.simplemachines.org/community/index.php?topic=257973.msg1975241#msg1975241

You have more issues though. Your preview and insert quote options aren't working as well.
Could you run attached file to check for any files missing php end tags or files having additional whitespaces after the php end tag?
"Insanity: doing the same thing over and over again and expecting different results."

ɔɔɔɔɔɔuɥoɾ

myforum.com/file_check.php is the URL for that, Their are many comments, like does not end with ?>

Is this ok?


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

xenovanis

That *could* cause problems. I was hoping to see Post.php had a problem, but it doesn't.

However, start with these files and check them for the closing tag or additional whitespaces after the closing tag:
    *  /Sources/ManageMembers.php
          o File does not end with ?>
    * /Sources/TreasuryUpdate.php
          o File does not end with ?>
    * /Sources/boxynews.php
          o File does not end with ?>
    * /Sources/twitter.JSON.php
          o File does not end with ?>
    * /Sources/recaptchalib.php
          o File does not end with ?>
    * /Sources/Aeva-getid3/module.tag.id3v2.php
          o File does not end with ?>
"Insanity: doing the same thing over and over again and expecting different results."

ɔɔɔɔɔɔuɥoɾ

I fixed some white space after the ?> for those files but it still lists it as does not end with ?>.

It sounds to me that something as gone out of context somehow, I see the ajax is "Simply Giving up"

Code ( From Topic.js) Select

// Grab the message ID.
this.sCurMessageId = XMLDoc.getElementsByTagName('message')[0].getAttribute('id');

// If this is not valid then simply give up.
if (!document.getElementById(this.sCurMessageId))
return this.modifyCancel();


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

xenovanis

I have this feeling it's the Ajax Chat integration. Not sure though.

Sorry I can't be of more help :(
"Insanity: doing the same thing over and over again and expecting different results."

ɔɔɔɔɔɔuɥoɾ

Quote from: xenovanis on September 04, 2010, 04:57:35 PM
I have this feeling it's the Ajax Chat integration. Not sure though.

Sorry I can't be of more help :(

I remember the quick modify working with Ajax Chat installed though, why must I get the difficult to fix errors...


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

ɔɔɔɔɔɔuɥoɾ

#11
So, Can anybody else solve this SMF ajax/java mystery ???

Internet Explorer Error Details, upon clicking Quick Modify

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Mon, 6 Sep 2010 15:54:29 UTC


Message: 'getElementsByTagName(...).0' is null or not an object
Line: 257
Char: 2
Code: 0
URI: www.mysite.com/Themes/default/scripts/topic.js


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

ɔɔɔɔɔɔuɥoɾ

Well I managed to fix this, after uninstalling almost 10 mods, it started working, the only thing I can confirm was wrong with any mod was in the custom forms mod, where some how in Admin.php the below line of code was not added, however, I cant see how this effects the posting area.

loadLanguage('Modifications');


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

live627

I can't tell from your last post if you still need help

ɔɔɔɔɔɔuɥoɾ

Well, I managed to fix it, whoops, I left it unsolved, I will mark that solved right now, however the cause of this is not 100% solved, on the other hand, the issue is gone, WYSIWYG editor was also broken due to this error, which is still unknown exactly...


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: