7253 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
3rd February 2012 (3 months ago)
#
Hey lekiend, hope you are well!
I saw in the source code that you use an obsolete function.
Which functions do you refer to?
WPML Multilingual CMS 2.4.3
When I use secondary language, logout do not work, it is very slow and it consume a large amount of resources on the server.
So this only happens when done through the WPML plugin. What about if you use the default Twenty Eleven theme, is it still slow then?
Hello Timothy,
You are doing a great Job but I'm a little bit confused about the developper reactivity.
It is not really what I expect about WPMUDEV support.
Any hope to have a solution shortly ?
Thanks
Dimitri
7253 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
12th February 2012 (3 months ago)
#
Hey again Dimitri.
Thanks for the kind words.
It is not really what I expect about WPMUDEV support.
I completely understand, in fact we are currently working towards improving things here and have trial developers going through the stages. You may have also noticed a recent call for support staff, we are still going through the many applicants.
I know this doesn't answer your question completely, I just wanted to show that we are trying to bring more people on board to assist in such matters so that like in this instance a response from a developer would be more timely.
As a quick fix though, could you open up the file:
238 /**
239 * Generate a link to log out. Last used in BP 1.2-beta. You should be using wp_logout_url().
240 *
241 * @deprecated 1.3
242 * @deprecated Use wp_logout_url()
243 * @since 1.0
244 */
The wp_logout_url is not shown as depreciated here:
If your having issues with those functions then perhaps try them in the default theme and if it still continues you might wish to speak with WP support.
Let me know how you get on with the second function mentioned.
7253 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
12th February 2012 (3 months ago)
#
I tried with default theme and it works great.
When I suggested the default theme, I did mean after using those specific functions to see if the same function caused the same affect with the default theme. Did you try that, or just a vanilla version of the theme?
It seems that the theme is not really fine tuned with WPML (multilanguage websites).
That would seem the case, so its not really an issue with the function itself if you tested those functions in the default theme, even though it is depreciated.
I'll ping the developer the again on this one to draw his attention here.
7253 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
12th February 2012 (3 months ago)
#
Hey again. :-)
If the issue happens on the default theme, then I suspect its not an issue with our theme but perhaps something with how the plugin you use interfaces with BuddyPress/default theme. Still the two WP functions are not BuddyPress functions but instead WordPress functions.
Because this happens with the default theme, it would be worth speaking with the WPML Multilingual CMS developers seems the issue only happens between that plugin and BuddyPress. They might be able to comment on why it happens.
I'd be interested to see how you get on in and if you get to the bottom of this. :-)
1775 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Geeky Developer
—
13th February 2012 (3 months ago)
#
i see
seem like wp and bp log out core issue with wpml.
you could however add the absolute path url to the wp_log_out like this...not sure
if it suit you tho
Responses (20)
Support Chimp — 3rd February 2012 (3 months ago) #
Hey lekiend, hope you are well!
Which functions do you refer to?
So this only happens when done through the WPML plugin. What about if you use the default Twenty Eleven theme, is it still slow then?
Take care.
— 4th February 2012 (3 months ago) #
Function bp_log_out_link()
Server is slow and consume large amount of RAM only when trying to logout with secondary language. Trying to logout do not log the user out.
Log out works with other themes.
Dimitri
Support Chimp — 4th February 2012 (3 months ago) #
Thanks for the feedback, I'll ping the theme developer in on this one. :-)
Take care.
— 10th February 2012 (3 months ago) #
OK, do you have a feedback ?
I would like to correct this as soon as possible. Before the end of my wpmudev subscription.
thanks
Support Chimp — 10th February 2012 (3 months ago) #
Hey again.
Yeah I've provided feedback to the developer. I know he is working hard on various releases at the moment. I'll ping him again now to see. :-)
Thanks
— 12th February 2012 (3 months ago) #
Hello Timothy,
You are doing a great Job but I'm a little bit confused about the developper reactivity.
It is not really what I expect about WPMUDEV support.
Any hope to have a solution shortly ?
Thanks
Dimitri
Support Chimp — 12th February 2012 (3 months ago) #
Hey again Dimitri.
Thanks for the kind words.
I completely understand, in fact we are currently working towards improving things here and have trial developers going through the stages. You may have also noticed a recent call for support staff, we are still going through the many applicants.
I know this doesn't answer your question completely, I just wanted to show that we are trying to bring more people on board to assist in such matters so that like in this instance a response from a developer would be more timely.
As a quick fix though, could you open up the file:
/bp-community/lib/templates/bp-template/bp-login-panel.php
And replace around line 24:
<?php bp_loggedin_user_avatar( 'width=25&height=25' ) ?><p><a href="<?php bp_loggedinuser_link() ?>"><?php global $bp; echo $bp->loggedin_user->fullname; ?></a> / <?php bp_log_out_link() ?>With this:
If you need anything else then please just let me know. :-)
Take care.
— 12th February 2012 (3 months ago) #
Hello,
Sorry but the quick fix you've suggested do not work.
The logout link desapear completly :-(
Dimitri
Support Chimp — 12th February 2012 (3 months ago) #
Hey again. :-)
Sorry, it should be this:
Take care.
— 12th February 2012 (3 months ago) #
Sorry but this link do not work. It does exactly the same as the bp_log_out_url().
Dimitri
Support Chimp — 12th February 2012 (3 months ago) #
It shouldn't be, if you take a look here:
http://buddypress.trac.wordpress.org/changeset/4723
You will note:
The wp_logout_url is not shown as depreciated here:
http://codex.wordpress.org/Function_Reference/wp_logout_url
You could also try:
http://codex.wordpress.org/Function_Reference/wp_logout
So:
If your having issues with those functions then perhaps try them in the default theme and if it still continues you might wish to speak with WP support.
Let me know how you get on with the second function mentioned.
Take care.
— 12th February 2012 (3 months ago) #
I tried with default theme and it works great.
As I said in my first post, it works with first main language but it doesn't work with WPML and secondary languages.
It seems that the theme is not really fine tuned with WPML (multilanguage websites).
Dimitri
Support Chimp — 12th February 2012 (3 months ago) #
When I suggested the default theme, I did mean after using those specific functions to see if the same function caused the same affect with the default theme. Did you try that, or just a vanilla version of the theme?
That would seem the case, so its not really an issue with the function itself if you tested those functions in the default theme, even though it is depreciated.
I'll ping the developer the again on this one to draw his attention here.
Take care.
— 12th February 2012 (3 months ago) #
OUPS, I tried with the buddypress default theme and i do have the same problem.
Should I contact the buddypress team to solve this issue ?
Thanks
Support Chimp — 12th February 2012 (3 months ago) #
Hey again. :-)
If the issue happens on the default theme, then I suspect its not an issue with our theme but perhaps something with how the plugin you use interfaces with BuddyPress/default theme. Still the two WP functions are not BuddyPress functions but instead WordPress functions.
Because this happens with the default theme, it would be worth speaking with the WPML Multilingual CMS developers seems the issue only happens between that plugin and BuddyPress. They might be able to comment on why it happens.
I'd be interested to see how you get on in and if you get to the bottom of this. :-)
Take care
— 12th February 2012 (3 months ago) #
Thank,
I'll let you know.
Dimitri
Geeky Developer — 13th February 2012 (3 months ago) #
hi lekiend
open lib/templates/bp-template/bp-login-panel.php line 25
replace bp_log_out_url() with
<a href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', TEMPLATE_DOMAIN ) ?></a>— 13th February 2012 (3 months ago) #
Hello Richie,
I tried your code but it doesn't work.
In fact, root_domain with wpml is the root from the specific language.
In my case it looks like http://mydomain/nl/ (in dutch)
Link code is like this:
http://mydomain/nl/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fmydomain%2Fnl&_wpnonce=f670e450c5';This do not work.
Thanks
Geeky Developer — 13th February 2012 (3 months ago) #
i see
seem like wp and bp log out core issue with wpml.
you could however add the absolute path url to the wp_log_out like this...not sure
if it suit you tho
<a href="<?php echo wp_logout_url( 'http:://yoursite.com/' ) ?>"><?php _e( 'Log Out', TEMPLATE_DOMAIN ) ?></a>— 13th February 2012 (3 months ago) #
Sorry, but it doesn't work :-(
The link become
http://mydomain.com/nl/wp-login.php?action=logout&redirect_to=http%3A%3A%2F%2Fmydomain.com%2F&_wpnonce=f670e450c5Dimitri
Become a member