Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Add Topic Button Does Nothing
Avatar
kailas
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2012 - 1:08 pm

Hi Guys,

 

Thanks for your help before. I got everything in the Beta installed, and the configuration menu under Forums gives a rich experience. I set up a test group, then a test forum, added members, moderator, and gave standard rights to the members and full rights to the mod. I am logged in as WP admin.

But when I go to Add Topic, the button does nothing - and I see Javscript(void) in the browser message bar. I figure if I can get past this hurdle, then I will be running smoothly. Any thoughts?

Kailas

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 2, 2012 - 2:47 pm

That usually suggests there is a script conflict with something else running on your site.
Try switching briefly to the WP default theme to see if that works. if so then we know you have theme problems. A link to your forum page would help us try and find it for you.

andy-signature.png
YELLOW
SWORDFISH
Avatar
kailas
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2012 - 3:49 pm

Yes. Thank you. That is exactly what it is. I switched to 2011 and the button worked perfectly. My URL is http://wordpress.shreemaa.org/forum.

I am going to take a look at it in Chrome and turn on the debugging console and see if I can see any errors.

Kailas

Avatar
kailas
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2012 - 6:17 pm

Hi,

I deactivated BuddyPress and immediately the Add Topic button worked perfectly.

 

Then I deactivated every plugin that was not an Admin tool and renamed the /javacscripts directory in my theme so they could not load.

 

As I said, I got Add Topic to work and the animation for the Topic text area worked fine - but then I tested the Cancel button, and it didn't work. 

 

So I checked that button in Chrome's developer tools and it's calling: "onclick="jQuery(document).ready(function() { spjEdCancelEditor(); });"

 

I see one error: Uncaught ReferenceError: spjEdCancelEditor is not defined. It points to line 395:

 
<input type='button' tabindex='107' class='spSubmit' id='sfcancel' name='cancel' value='Cancel' onclick='jQuery(document).ready(function() { spjEdCancelEditor(); });' />
 
Which I presume is the cancel button throwing the error?
 

Do you have any recommendations as to what / where I could look next to try and narrow down what file is conflicting?

Kailas

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 3, 2012 - 3:55 am

Does the cancel button work in the WP default theme or is it broken there as well?

andy-signature.png
YELLOW
SWORDFISH
Avatar
kailas
Member
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 1:25 pm

It does work in the default theme.

But on my custom theme, even I disabled all the plugins from the front and back end, and all of my theme's javascripts, I still can't use Cancel. 

I got some more detail on the error:

Line 392:

<input type='button' tabindex='107' class='spSubmit' id='sfcancel' name='cancel' value='Cancel' onclick='jQuery(document).ready(function() { spjEdCancelEditor(); });' />
</div>
  1. Uncaught ReferenceError: spjEdCancelEditor is not defined
    (anonymous function)
    f.Callbacks.n
    f.Callbacks.o.add
    e.fn.e.ready
    (anonymous function)
    onclick
I just don't know how, with every single imported script turned off, it could still be erroring out...
 
I understand there is some kind of conflict - the documentation says that a ReferenceError object is passed when a statement contains an illegal reference.
 
But how could some other script wipe out the reference to your object spjEdCancelEditor if it's scope was declared in the right place in memory?
Or, could it be a load issue? And how would that be solved?
 
Kailas
 
Avatar
kailas
Member
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 4:45 pm

One more update. I took the theme down to the barest bones that I started with, from https://github.com/drewsymo/Foundation. So none of the customizations I made to that are involved.

BuddyPress and Simple-Press are installed.

The URL is http://wordpress.shreemaa.org/.....evi-katha/ and I know you guys are busy, but if you want you can log into wp-login.php (since the login button does not work) using "test_member" pwd "abc123" and see the issue with all the buttons returning javascript:void(null).

Kailas

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 8:09 pm

you have general js issues on forum pages... and I am not really sure why... except something is stopping from jquery from working...

we have fair number of folks that use sp with buddypress though not sure how many on 5.0...  but has historically been fine...

have you checked your server error logs for any more info?  and check forum - toolbox - error log to see if any info there...

Avatar
kailas
Member
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 11:31 pm

Problem solved. Thank you guys, for replying to my questions. I was finally able to track the issue down to the fact that the Foundation.js file upon which the theme was based contained a copy of jQuery, and that being called twice, was wiping out the memory of the objects your code instantiated. Looking forward to using Simple Press!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 11:33 pm

ah, good detective work... thanks for the update!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626