AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] Frontend assets will not load on the main forums page

1 Posts
1 Users
0 Reactions
1,070 Views
Posts: 1
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@harty83)
New Member
Joined: 5 years ago
[#16746]

I've run into a problem that I can't figure out the "why." The website was built on local and migrated to live. Everything works with the exception that the frontend JS assets are not loaded when visiting the main Forums page so the Add Topic button does nothing, etc. The frontend JS assets load on other pages such as members, recent posts, etc. However, if I edit ./wp-content/plugins/wpforo/wpf-includes/wpf-hooks.php line 1299 from

wp_register_script( 'wpforo-frontend-js', WPFORO_URL . '/wpf-assets/js/frontend.js', array('jquery', 'wpforo-dynamic-phra     ses'), WPFORO_VERSION, true );

 to 

wp_register_script( 'wpforo-frontend-js', WPFORO_URL . '/wpf-assets/js/frontend.js', array('jquery', 'wpforo-dynamic-phra     ses'), WPFORO_VERSION, false );

the assets load fine in the head tag. Again, they only don't load on the Forums page but they do for all others unless I make the above edit then they load for them all. I can't figure out why that is. We've tried uninstalling and reinstalling the forum plugin and encounter the same issue. No other page seems to have any issues. We've tried disabling all plugins with the same results. 

Any hints? 

 

Thanks!

Alan


Share: