• XEN DEVELOPMENT is a developer's resource for new developers wanting to build XenForo 2 add-ons. Experienced developers are also welcome to share their experienes and knowledge. This site is not affiliated with XenForo or a replacement for the official XenForo developer forums.

Slight annoyance with the redirect system

vexx

New member
Hey guys,

Just want to report a small bug. Xenword works fine for me so far but when I try to login to WP admin, it redirects me to Xenforo's login page. I login there, try to go to wp-admin again, it says in Xenforo that I'm already logged in and I should return to the main page. I do that, then for the 3rd time, I go to wp-admin and it finally works. I'm not sure if this is something that can't be avoided due to Xenforo's login system but I thought I should post it here for reference.
 

LPH

Flight Director
Staff member
This is due to the WordPress login through /wp-admin and why a notice is on the notification bar not to attempt to login through /wp-admin. It's best to login through the login widget or go to the XenForo installation and login then browse to the WordPress.

Sometimes, it is important to add the following to the wp-config.php

PHP:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
 

Laron

New member
Lifetime License
I do that, then for the 3rd time, I go to wp-admin and it finally works.
This is expected functionality and is what I explain to all of my authors that use the wordpress portal.

Ideally I would prefer it worked differently as for non-technical people/authors, they can have a lot of trouble with this.
 

vexx

New member
This is due to the WordPress login through /wp-admin and why a notice is on the notification bar not to attempt to login through /wp-admin. It's best to login through the login widget or go to the XenForo installation and login then browse to the WordPress.

Sometimes, it is important to add the following to the wp-config.php

PHP:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
I have defined the site in wp-config, I always do that to avoid certain issues :)

As for the login widget, I'm now working on pulling the avatar, inbox and alert icons from the admin bar to the menu bar of the site. I don't want to use the widget, I want to integrate both platforms seamlessly (to some extent).
 

LPH

Flight Director
Staff member
Unfortunately, I haven’t played with the toolbar code yet for alerts and conversations.
 
Top