Topic-icon yahoo login error

Active Subscriptions:

None
7 years 4 months ago #60475 by skyfranky
yahoo login error was created by skyfranky
when login with yahoo, got below error
JFORM::SETFIELDATTRIBUTE `XML` IS NOT AN INSTANCE OF SIMPLEXMLELEMENT
The topic has been locked.
Support Specialist
7 years 4 months ago - 7 years 4 months ago #60476 by mel
Replied by mel on topic yahoo login error
Could you let me know which version of Joomla you are using? I just had someone else report the same error this morning and haven't gotten details back.

* Also is Automatic Registration enabled on your site.
* Does this happen with any other social networks?

-Melissa
Last edit: 7 years 4 months ago by mel.
The topic has been locked.
Support Specialist
7 years 4 months ago #60480 by mel
Replied by mel on topic yahoo login error
Looks like this was introduced with 3.6.5 recently, as the login / register view was extensively tested with our automated and manual tests. This should be a simple code fix and I'll put out a release later tonight/tomorrow. In the meantime, you can update /components/com_jfbconnect/views/loginregister/view.html.php.

At line 67, change this block of code:
$language = JFactory::getLanguage();
$language->load('com_users');
JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_users/models');
$userModel = JModelLegacy::getInstance('Registration', 'UsersModel');
$this->data = $userModel->getData();
JForm::addFormPath(JPATH_SITE . '/components/com_users/models/forms');
JForm::addFieldPath(JPATH_SITE . '/components/com_users/models/fields');
$this->form = $userModel->getForm();
to
JForm::addFormPath(JPATH_SITE . '/components/com_users/models/forms');
JForm::addFieldPath(JPATH_SITE . '/components/com_users/models/fields');
$language = JFactory::getLanguage();
$language->load('com_users');
JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_users/models');
$userModel = JModelLegacy::getInstance('Registration', 'UsersModel');
$this->data = $userModel->getData();
$this->form = $userModel->getForm();

It's essentially just moving up two lines of code for addFormPath/addFieldPath.

-Melissa
The topic has been locked.