1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Profile post error when moving to new hosting server

Discussion in 'XenForo Questions and Support' started by Pauly, Jul 27, 2016.

  1. Pauly

    Pauly New Member

    I have recently taken out a small cloud server package with 1&1 in the UK with the intention of moving my forum there, before going live I moved a backup of the forum to the new server to test, I have setup the site as a domain alias adding 'test' before the domain name
    On the surface of it the site appears fine and seems to function ok, threads can be started/posted and photos & attachments can be posted and downloaded but I get an error when trying to do a profile post
    Picture attached of screen error received when posting followed by the server error logged in ACP, is this a validation error as i am running XenForo away from the registered domain or a problem with the new host server or something else, any info/suggestions gratefully received

    Please note the test site is no longer online and will redirect to main forum

    Capture.PNG

    ErrorException: Argument 1 passed to XenForo_Model_ProfilePost::prepareProfilePost() must be of the type array, boolean given, called in /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/ControllerPublic/Member.php on line 1403 and defined - library/XenForo/Model/ProfilePost.php:356
    Generated By: Pauly, 9 minutes ago


    Stack Trace

    #0 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/Model/ProfilePost.php(356): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/vhosts...', 356, Array)
    #1 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/ControllerPublic/Member.php(1403): XenForo_Model_ProfilePost->prepareProfilePost(false, Array)
    #2 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Member->actionPost()
    #3 /var/www/vhosts/t6forum.com/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /var/www/vhosts/t6forum.com/httpdocs/index.php(13): XenForo_FrontController->run()
    #5 {main}


    Request State

    array(3) {
    ["url"] => string(44) "http://test.t6forum.com/members/pauly.1/post"
    ["_GET"] => array(0) {
    }
    ["_POST"] => array(6) {
    ["message"] => string(18) "good news it works"
    ["_xfToken"] => string(8) "********"
    ["simple"] => string(1) "1"
    ["_xfRequestUri"] => string(1) "/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
    }
    }
     
    Last edited: Jul 27, 2016
  2. Mike

    Mike XenForo Developer Staff Member

    The only way I can see this happening is down to an add-on, I think. The rest of the code should handle it and throw errors as necessary. Can you confirm this with all add-ons disabled?
     
    Pauly likes this.
  3. Pauly

    Pauly New Member

    Hi, thanks for your reply, you are correct disabling all addons resolved the error - i thought i had already done this but problem resolved now much appreciated
     

Share This Page