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
No dropdown in backend : can
Avatar
Surlepont
Guest
Guests
Feb 28, 2012 - 4:21 am

Hi,

I need to add a forum to an already existing wordpess-based site.

 

I installed the plugin, but in the backend the menus don't expand nor collapse. I can access the general menus (Forums, Options, Components...) by clicking on the wordpress toolbar, clicks on individual categories (Smileys, Login and registration...) have no effect.
Here's a screenshot showing my SP backend : http://uppix.net/8/4/7/a294145.....9872db.jpg

At first I thought it was a jquery conflict, so I checked the header of my pages. On the backend part, all .js included come from the wp-include folder of my website, so no problems here. On the frontend though, there's a nasty include from google's servers. Is it possible it has an effect on the frontend not working properly ?

On a secondary note (didn't investigate it yet, I'm mentioning it just in case it's linked with the main problem), the forum isn't displaying in the page it created. I checked that the slug was correct, but it's just a blank frame (and empty html-wise).

 

The wordpress theme is a heavily-modified raindrop, and the simple-press is currently vanilla (just freshly installed).

Cheers !

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 28, 2012 - 9:02 am

On the admin side I would still think it likely to be a script issue. Can you check if any errors show up in the error console or Firebug when you load a forum admin page?

On the blank page I assume you mean you get the header, title etc but no content. Go to the Integration > Page and permalink panel and try turning in the options at the bottom one at a time (Multiple and Loop options). See if that helps.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Surlepont
Guest
Guests
Feb 28, 2012 - 9:27 am

After using Firebug  :

wpa2a is not defined

wpa2a.script_load();

 

Then tried again on different pages, and I got this error :

"$ is not a function"

In every spa-XXX.php file.

Which indeed suggests that this is a jquery problem

 

As for the blank page, I just tried checking and unchecking both options, one at a time, both of them, none of them, and nothing changed. There is indeed the header and footer, the only thing missing is the content.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 28, 2012 - 9:49 am

Odd - we don't use $ in our jQuery... unless there is some embedded script doing so which is a possibility.
Ok - admin first. What is wpa2a? is that another plugin? Can you deactivate it briefly to see if that is the conflict? Or other plugins that might be loading scripts in the admin side?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Surlepont
Guest
Guests
Feb 28, 2012 - 10:10 am

It actually was a mistake on my part. The wpa2a error was not on the admin side, but on the frontend. It looks like it came from a wordpress plugin called Add2Any, which I disabled.

It didnt change anything on the frontend (still the blank space), but removed the wpa2a error when loading it.

As for the admin side, I looked into the "$ is not a function", and it came from a fep.js file in a plugin called frontend-edit-profile.
I replaced every $() with jQuery() in the file and it's now working correctly !

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 28, 2012 - 10:33 am

So we are half way there! Excellent.
For the front end side can you give me a link to what should be the forum page?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Surlepont
Guest
Guests
Feb 28, 2012 - 11:54 am

Here it is :

http://sparx.hasgard.org/forum/

Avatar
Surlepont
Guest
Guests
Feb 29, 2012 - 3:29 am

I followed the steps explained here (I don't know if it's not obsolete as it comes from the old wiki)

There was no call to wp_head() nor wp_footer().

The functions were there, but commented (and not at the place indicated in the wiki).

 

There's no sign of anything close to _content() in either the page.php or index.php /

 

After adding the footer and head functions, my layout is now totally broken but the forum is showing (remember I did not make the website, I'm just integrating the forum, so I'm a bit limited in what I can do)

It's currently looking like this

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 29, 2012 - 4:35 am

hang on.... there were NO calls to wp_head() and wp_footer() ?

These are mandatory calls. They are two of the main arteries by which WordPress allows plugins to interact and work. If turning them on - i..e to the state required - breaks the site then you have a seriously bad WP theme there. I think this is something you need to take up with the theme author to be honest as you will find that huge numbers of plugins are reliant on these functions being in place and being in place at the right point of processing.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Surlepont
Guest
Guests
Feb 29, 2012 - 7:07 am

Ok that's very weird...

There are several plugins installed that already need wp_head() and wp_footer()  and they all are functioning correctly.

I tried to check where they were defined, and I can find 3 instances :

- In the twentyten and twentyeleven wordpress themes, which are not used.

- In wp-include/theme-compat/, there are header.php and footer.php files with wp_head() and wp_footer()

When I commented these two lines, nothing changed.

I sent an email to the person who made the wordpress website in the first place, but I'm really puzzled : why are other modules working, when I can't find a trace of the hooks being in place ?

 

Apart from those hooks, is there any other possibility of why it wouldn't work ?

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: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620