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
Cannot Add topic
Avatar
Mark Devlin
Member
Free Members
sp_UserOfflineSmall Offline
Jun 6, 2014 - 11:55 am

Hi, I added the forum to my site: But I can't add topics. When I click on the "Add Topic" button, nothing happens:

http://newslines.org/forum/sup.....?new=topic

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 6, 2014 - 12:27 pm

I am afraid that your problem starts here - http://codex.simple-press.com/.....-conflict/ with both jQuery and the jQuery UI being incorrectly loaded against WP standards.

There is also an inline call to a javascript function named st_go() which does not actually exist causing a script error.

There may be something else... who knows! With these issues it is impossible to dig any deeper.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Devlin
Member
Free Members
sp_UserOfflineSmall Offline
Jun 6, 2014 - 2:54 pm

I checked the source according to your article and the jquery all seems to be loaded locally. I also use: https://wordpress.org/plugins/.....y-updater/

I also looked for st_go() in the html source output file but I couldn't find it

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 6, 2014 - 4:05 pm

Neither the main jQuery library or the jQuery UI library are being loaded from the WordPress supplied versions which are the only ones that are properly supported. Plus your theme is allowing 2 copies of the UI lib to be loaded which means it is also not even following the WP API standards.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mark Devlin
Member
Free Members
sp_UserOfflineSmall Offline
Jun 6, 2014 - 10:03 pm

I took all references to jquery out of the functions.php file

I removed any references to jquery in the header

I turned off the JQuery updater plugin

It still doesn't work. I can't get the topic to open. Can you tell me how to track down this error?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 6, 2014 - 10:27 pm

concur that those are gone... but guests cannot actually trying to post, so cannot tell much more...

its still likely to be a javascript conflict... so a bit more you can try...

temp switch to the default wp theme... see if still occurring... could help narrow down...

if still problem, try deactivating all other wp plugins... work now?  if so, reactivate one by one until breaks... then we know conflict and can try to deal with it...

you might be able to get more info to by having your browser console open when loading page... any js errors reported?  click on the add topic button and see if any more errors reported...

Avatar
Mark Devlin
Member
Free Members
sp_UserOfflineSmall Offline
Jun 9, 2014 - 8:41 pm

Hi, I have removed ALL plugins and it still does not work. I put it on my staging server with guest access so you can check it:

http://newslines.staging.wpeng.....m/support/

Please advise on next steps.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 9, 2014 - 8:47 pm

all plugins and changed to the default wp theme?  its often the wp theme incorrectly loading js...

on that site, http://newslines.staging.wpeng.....?ver=1.0.0 is generating js errors stopping execution..

was the theme written to work with the latest jQuery that comes with wp?  I notice it oddly mixes use of jQuery and $ as the namespace...  and the error is on one of the $ usages...

personally, I would change the $ usages to match the other jQuery ones... but no guarantee that will matter.. but its a small file...

Avatar
Mark Devlin
Member
Free Members
sp_UserOfflineSmall Offline
Jun 9, 2014 - 8:52 pm

It works on a different theme so I guess it's as you say.

was the theme written to work with the latest jQuery that comes with wp?  I notice it oddly mixes use of jQuery and $ as the namespace…  and the error is on one of the $ usages…

personally, I would change the $ usages to match the other jQuery ones… but no guarantee that will matter.. but its a small file…

I'm not sure how to do this, can you lead me through it?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 9, 2014 - 9:28 pm

example... change:

$(".uxde-tabs").tabs();

to

jQuery(".uxde-tabs").tabs();

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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625