What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed Server Error

Freelancer

Member
I am not aware of what the User did, but when he saved his preferences, the following Server Error was thrown:

Code:
Error Info
Undefined property: XenForo_ControllerResponse_Error::$redirectType - library/XFA/YoutubeProfileSidebar/Extends/XenForo/ControllerPublic/Account.php:25

Stack Trace
#0 /var/www/clients/client180/web812/web/library/XFA/YoutubeProfileSidebar/Extends/XenForo/ControllerPublic/Account.php(25): XenForo_Application::handlePhpError(8, 'Undefined prope...', '/var/www/client...', 25, Array)
#1 /var/www/clients/client180/web812/web/library/SV/UserEss/XenForo/ControllerPublic/Account.php(51): XFA_YoutubeProfileSidebar_Extends_XenForo_ControllerPublic_Account->actionPersonalDetailsSave()
#2 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(351): SV_UserEss_XenForo_ControllerPublic_Account->actionPersonalDetailsSave()
#3 /var/www/clients/client180/web812/web/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /var/www/clients/client180/web812/web/index.php(13): XenForo_FrontController->run()
#5 {main}

Request State
Array
(
    [url] => https://www.mywebsite.com/account/personal-details-save
    [_GET] => Array
        (
            [/account/personal-details-save] => 
        )

    [_POST] => Array
        (
            [status] => 
            [gender] => 
            [xfa_yps] => 
            [location] => 
            [occupation] => 
            [homepage] => 
            [custom_fields] => Array
                (
                    [map_location] => 
                    [CustomField1] => CUFTestData1
                    [CustomField2] => 
                )

            [custom_fields_shown] => Array
                (
                    [0] => map_location
                    [1] => CustomField1
                    [2] => CustomField2
                )

            [useress_tags] => 
            [about_html] => <p><br></p>
            [_xfRelativeResolver] => https://www.mywebsite.com/account/personal-details
            [_xfToken] => ********
            [save] => Save Changes
            [_xfRequestUri] => /account/personal-details
            [_xfNoRedirect] => 1
            [_xfResponseType] => json
        )

)
 

Fred

Administrator
Staff member
Hi
In XFA/YoutubeProfileSidebar/Extends/XenForo/ControllerPublic/Account.php

find

PHP:
if($response->redirectType == XenForo_ControllerResponse_Redirect::SUCCESS)

Replace by

PHP:
if($response instanceof XenForo_ControllerResponse_Redirect && $response->redirectType == XenForo_ControllerResponse_Redirect::SUCCESS)

It's should fix your problem ;)
 
Top