Support Forum

Unable to switch between profile tabs, infinite loading

TH Thibaud
Thibaud
Member

Hi,

Simple press is awesome but I experience a small problem on the profile page.

 

I’m unable to switch between profile tabs, infinite loading

-It doesnt matter the user role you have, even for the admin

-I tried to change the sp theme, but no way

 

I detected an infinite redirect for this URL will the tab is loading :

nav-menus.php?menu=0&lang=/wp-admin

The &lang= parameter probably comes from WPML…  I don’t know if it is related..

 

Also I prevent users to access admin pages in the General settings and ticked the redirect to user profile when they try to acess the admin. But even if i allow them it keeps loading..

 

Create an account if you want to see it in action. Here is the URL http://wp-infinity.com/forum/ 

 

Last thing : By default, when you acess a profile page, you land on the overview profile page (and cannot load the others tabs) so i desactivated the overview tab in the profile settings… and then you land to the next tab, wish is Edit Profile. AND THE TAB LOAD AS EXPECTED. 

Seems that every tabs works, but you cannot go from one to another.

 

Thanks if you can help with this, and congrat for simple press !

12 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I think you need to briefly deactivate the WPML plugin and re-try these things to see if that is the culprit – but judging by that URL fragment then it certainly seems to be heavily interfering.

TH Thibaud
Thibaud
Member

Yep it works when i desactivate WPML..

But I really need WPML, their is a lot of work after this plugin. Paid translators,  etc..

Any idea to make theme play nicely together ? 

 

Maybe all tabs on a single page ? Just suggesting..

YS Yellow Swordfish
Yellow Swordfish
Member

I have never looked at WPML. The main problem appears to be that it butchers the URLs. And clearly doesn’t get it right every time either.

So two questions really:

  1. Do you need the WPML plugin active on the forum page?
  2. If you do then does it come with any options about preserving URLs or similar?

 

 

TH Thibaud
Thibaud
Member

1/ WPML can only be activated sitewide, but I don’t need a multilingual forum, so I just don’t translate thoses pages but WPML remain active.

 

2/ No such options, WPML is set to different languages in directories (http://wp-infinity.com/ – Français, http://wp-infinity.com/en/ – Anglais, etc.

 

The menus are also translated but I can’t see your (nav-menus.php?menu=0&lang=/wp-admin)

I don’t understand the menu=0, does simple press create an invisible menu for thoses tabs ?

TH Thibaud
Thibaud
Member
I get thoses errors i the console when the tab is loading :
 
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
The “fb-root” div has not been created, auto-creating all.js:56
Uncaught TypeError: Object function a(e){if(!e)return;var t,r,i,o;n.apply(this,[e]),t=this.params(),r=t.size||this.dataAttr(“size”),i=t.showScreenName||this.dataAttr(“show-screen-name”),o=t.count||this.dataAttr(“count”),this.classAttr.push(“twitter-follow-button”),this.showScreenName=i!=”false”,this.showCount=t.showCount!==!1&&this.dataAttr(“show-count”)!=”false”,o==”none”&&(this.showCount=!1),this.explicitWidth=t.width||this.dataAttr(“width”)||””,this.screenName=t.screen_name||t.screenName||s.screenName(this.attr(“href”)),this.preview=t.preview||this.dataAttr(“preview”)||””,this.align=t.align||this.dataAttr(“align”)||””,this.size=r==”large”?”l”:”m”} has no method ‘init’ widgets.js:45
 
Failed to load resource http://wp-infinity.com/wp-admin/nav-menus.php?menu=0&lang=
 
GET http://wp-infinity.com/wp-admin/nav-menus.php?menu=0&lang= nav-menus.php:1

 

 

 

And this :

nav-menus.php?menu=0&lang=
/wp-admin
GET
302
Found
   
text/problem-with-post-edit-buttontml
http://wp-infinity.com/wp-admin/nav-menus.php?menu=0&lang=
Redirect
   
491 B
0 B
1.75 s
1.75 s
                 
 
 
1.75 s
1 ms
 
[Image Can Not Be Found]nav-menus.php?menu=0&lang=
/wp-admin
GET
(failed)
   
Pending
http://wp-infinity.com/wp-admin/nav-menus.php?menu=0&lang=
Redirect
   
13 B
0 B
1 ms
                   
YS Yellow Swordfish
Yellow Swordfish
Member

Thibaud Litzler said
1/ WPML can only be activated sitewide, but I don’t need a multilingual forum, so I just don’t translate thoses pages but WPML remain active.

Well then you could try to use a plugin named ‘Plugin Organiser’ which should allow you to disable any WordPress plugin on specific pages – in this case the forum page.

The menus are also translated but I can’t see your (nav-menus.php?menu=0&lang=/wp-admin)

I don’t understand the menu=0, does simple press create an invisible menu for thoses tabs ?

Simple:Press does NOT use a file named nav-menus.php nor does it construct that sort of url when loading the profile forms. It has nothing to do with SP. This is why I said it was ‘butchering’ URLs.

As to the errors you posted – not sure what the first one is. The ‘fb root’ one is to do with a facebook connect plugin you probably have active. Not sure where the TypeError is coming from as you haven’t included the source and the remainder is caused by your WPML plugin doing something with the SP profile URLs and getting them entirely wrong!

Plugins like this WPML are written for simple blog post type pages. They are not written to take into account dynamically produced rewritten URLs.

TH Thibaud
Thibaud
Member

As long as we can acess the first tab can we past the different sp-form php template together ?

 

[edit] I’ll try plugin organizer first..

 

YS Yellow Swordfish
Yellow Swordfish
Member

I would. Rewriting the profile would be hard although you could just use the WP instead of course.

TH Thibaud
Thibaud
Member

WPML is desactived on all forum pages, but the problem remain..

TH Thibaud
Thibaud
Member

Well I tried to past the signature template at the end of the sp-form-account.php.

 

Problem is that i cannot save the signature indepandantly, the button saves the account.. Looks more complicated than just copy and paste smile

 

Maybe we could move the left tabs on top ? Top tabs works !!

TH Thibaud
Thibaud
Member

Done !! Just by sorting the tabs in profile settings. If someone face the same issue just rename the top tabs by what you want and activate / move one left tab by top tab. You are then limited in number of options, but enough for the main settings you want your member to access..

 

Thank you swordfish for your help.