Support Forum

Add Topic Not Working

ET Eric Tetreault
Eric Tetreault
Member

I just installed Simplepress and establish forums with permissions. No forum currently as a topic and when I click the ADD TOPIC button, nothing happens. 

  • This has never worked.
  • I tried removing all permissions on the forums and adding them back. 
  • I tried Toolbox > Housekeeping > Reset Auths Cache and that did not help.

15 Answers

New Answer

SS SP Community Support
SP Community Support
Admin

When a button or link doesn’t work the most common reason is because there is a Javascript error being thrown (usually because of a conflict) or a php error on the backend (for a similar reason).

To start with, can you check your browser console to see if there are any javascript errors being shown?

Then, check the WordPress debug.log file (after turning on WordPress debug flags) and see if there are any new errors in there after you try to add a topic.

Thanks.

ET Eric Tetreault
Eric Tetreault
Member

 

Here is what I am getting in my error log.

[09-Apr-2019 19:54:02 UTC] PHP Warning:  include(/home/xr3788q2cge2/public_html/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /home/xr3788q2cge2/public_html/wp-settings.php on line 84
[09-Apr-2019 19:54:02 UTC] PHP Warning:  include(): Failed opening '/home/xr3788q2cge2/public_html/wp-content/advanced-cache.php' for inclusion (include_path='.:/opt/alt/php71/usr/share/pear') in /home/xr3788q2cge2/public_html/wp-settings.php on line 84
SS SP Community Support
SP Community Support
Admin

None of those are SP specific but it would be worth it to get those resolved just in case they are interfering with SP functions.

Also, you might just want to post your SP, WP and PHP versions into this thread.

You didn’t see any Javascript errors in the browser console?

ET Eric Tetreault
Eric Tetreault
Member

Thanks for your help. Here is my install info:

Simple:Press   Version: 6.0.7
Build: 15857
Release: Release
WordPress   Version: 5.1.1
Language: en-US
Character Set: UTF-8
Theme: Avada
PHP   Version: 7.1.18
Memory: 128M
Max Upload: 32M
Timeout: 300
MySQL   Version: 5.6.39
Server   Version: Apache
ET Eric Tetreault
Eric Tetreault
Member

Javascript console has this:

Uncaught Error: `selector` option must be specified when initializing tooltip on the window.document object!
at k.init (bootstrap.tooltip.js?ver=3.3.5:1)
at new k (bootstrap.tooltip.js?ver=3.3.5:1)
at HTMLDocument.<anonymous> (bootstrap.tooltip.js?ver=3.3.5:1)
at Function.each (jquery.js?ver=1.12.4:2)
at a.fn.init.each (jquery.js?ver=1.12.4:2)
at a.fn.init.d [as tooltip] (bootstrap.tooltip.js?ver=3.3.5:1)
at setupTooltips (eval at <anonymous> (sp-forum-footer.min.js?ver=5.1.1:1), <anonymous>:1:410)
at HTMLDocument.eval (eval at <anonymous> (sp-forum-footer.min.js?ver=5.1.1:1), <anonymous>:1:57)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)

SS SP Community Support
SP Community Support
Admin

The Avada theme can sometimes do funky thinks with javascript.  One thing to try might be to temporarily disable the Avada theme and use the wp core 2019 theme, flush all your caches and then see if the ADD TOPIC button works.

SS SP Community Support
SP Community Support
Admin

You switched out the theme to use the WP 2019 theme and you’re still seeing the same Javascript error?

SS SP Community Support
SP Community Support
Admin

If that’s the case, then chances are another plugin is likely the source of the conflict.  Unfortunately, to identify that, you need to go through the process of disabling them one at a time until the Javascript error disappears.  The last one that was disabled is likely the source of the conflict.  Its a PITA but its the only way to figure out which one it is.

ET Eric Tetreault
Eric Tetreault
Member

Here is what I get:

jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
bootstrap.tooltip.js?ver=3.3.5:1 Uncaught Error: `selector` option must be specified when initializing tooltip on the window.document object!
at k.init (bootstrap.tooltip.js?ver=3.3.5:1)
at new k (bootstrap.tooltip.js?ver=3.3.5:1)
at HTMLDocument.<anonymous> (bootstrap.tooltip.js?ver=3.3.5:1)
at Function.each (jquery.js?ver=1.12.4:2)
at a.fn.init.each (jquery.js?ver=1.12.4:2)
at a.fn.init.d [as tooltip] (bootstrap.tooltip.js?ver=3.3.5:1)
at setupTooltips (eval at <anonymous> (sp-forum-footer.min.js?ver=5.1.1:1), <anonymous>:1:410)
at HTMLDocument.eval (eval at <anonymous> (sp-forum-footer.min.js?ver=5.1.1:1), <anonymous>:1:57)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
k.init @ bootstrap.tooltip.js?ver=3.3.5:1
k @ bootstrap.tooltip.js?ver=3.3.5:1
(anonymous) @ bootstrap.tooltip.js?ver=3.3.5:1
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
d @ bootstrap.tooltip.js?ver=3.3.5:1
setupTooltips @ VM9226:1
(anonymous) @ VM9226:1
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2

ET Eric Tetreault
Eric Tetreault
Member

I disabled all of my plugins, forced refreshed my browser to clear the cache and am still unable to get ADD TOPIC to work. :

SS SP Community Support
SP Community Support
Admin

Hi:

Are you still seeing that Javascript error?

If all your other plugins are disabled and your WP theme is the 2019 theme, you shouldn’t be seeing that javascript error.  Its not something that is part of simple-press.  So if you’re still seeing that error it means that something isn’t quite fully disabled (or possibly cached somewhere).

Thanks.

ET Eric Tetreault
Eric Tetreault
Member

I disabled all plugins and the Avada theme and the javascript error is gone. I then activate the Avada theme and the javascript error comes back (no surprise, you were right from the start). I can’t get rid of the Avada theme. What can I do now?

 

jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
bootstrap.tooltip.js?ver=3.3.5:1 Uncaught Error: `selector` option must be specified when initializing tooltip on the window.document object!
at k.init (bootstrap.tooltip.js?ver=3.3.5:1)
at new k (bootstrap.tooltip.js?ver=3.3.5:1)
at HTMLDocument.<anonymous> (bootstrap.tooltip.js?ver=3.3.5:1)
at Function.each (jquery.js?ver=1.12.4:2)
at a.fn.init.each (jquery.js?ver=1.12.4:2)
at a.fn.init.d [as tooltip] (bootstrap.tooltip.js?ver=3.3.5:1)
at setupTooltips (eval at <anonymous> (sp-forum-footer.min.js?ver=5.1.1:1), <anonymous>:1:410)
at HTMLDocument.eval (eval at <anonymous> (sp-forum-footer.min.js?ver=5.1.1:1), <anonymous>:1:57)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
k.init @ bootstrap.tooltip.js?ver=3.3.5:1
k @ bootstrap.tooltip.js?ver=3.3.5:1
(anonymous) @ bootstrap.tooltip.js?ver=3.3.5:1
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
d @ bootstrap.tooltip.js?ver=3.3.5:1
setupTooltips @ VM849:1
(anonymous) @ VM849:1
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2

SS SP Community Support
SP Community Support
Admin

Looks like the Bootstrap Tooltip library is the issue here. You can try to comment out its loader in the avada theme directly.  From what I can tell, its located in a file called includes/lib/inc/class-fusion-scripts.php.  Commenting it out would look something like this:

https://www.screencast.com/t/QSmkvL8bGT

You would wrap the loader element between comments /*   */

No guarantee that wouldn’t break something else but it should allow you to get the add topic link to work.

Thanks.