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

XF 1.5 Merging 403 error

Discussion in 'Installation, Upgrade, and Import Support' started by viper357, Oct 9, 2016.

  1. viper357

    viper357 Active Member

    Hi, just upgraded from 1.5.8 to 1.5.10 and had 6 templates that needed to merge changes, four of them merged fine but two of them keep giving me 403 forbidden errors when I click the Merge button. Any idea's what would cause this?


  2. Chris D

    Chris D XenForo Developer Staff Member

    It could be an issue with the post_max_size value or max_input_vars in php.ini. Although if it is either of those things either those values are very low or the template is massive (which it shouldn't be).

    Does the 403 error happen instantly or after a while. If it takes a while then it could be down to the max_execution_time being hit.

    It might be worth seeing if you can track down any PHP error logs to see if there's anything logged there which might suggest what's going wrong.
  3. viper357

    viper357 Active Member

    post_max_size is 8M, max_input_vars is 1000. Not sure if those are good or bad?
    It happens instantly.
    These are the only errors I can find that show up after I try to merge the two templates.

    2016-10-09 14:09:38.553 [INFO] [] File not found [/home/marineaq/public_html/403.shtml]
    2016-10-09 14:09:33.995 [INFO] [] File not found [/home/marineaq/public_html/403.shtml]
    2016-10-09 14:08:53.589 [INFO] [] File not found [/home/marineaq/public_html/403.shtml]
  4. viper357

    viper357 Active Member

    Sorry, these ones as well...

    [09-Oct-2016 08:11:16 America/Chicago] PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/marineaq/public_html/includes/functions.php on line 945
    [09-Oct-2016 08:11:16 America/Chicago] PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/marineaq/public_html/includes/functions.php on line 949
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Those errors look like vB, not XenForo. If you have vB installed and aren't using it then you may want to remove it.

    Might be related, but there is no useful error message there.

    Looking at the paths... do you have vB and XF both in the web root? You may want to clean that up. At least make sure the .htaccess file is XenForo's. This is not necessarily the cause of your problem though.
  6. viper357

    viper357 Active Member

    Yes I still have my old vb3 forum installed in root. I'll work on removing it. Thanks.
  7. viper357

    viper357 Active Member

    I managed to get it to work by using the 'Automatically Merge Changes' button at the top right instead of viewing the template and then clicking the Merge button. So all seems fine now, thanks.
  8. Mike

    Mike XenForo Developer Staff Member

    FWIW, as you mentioned it worked automatically, it's almost certainly something like a false positive from mod_security.
  9. viper357

    viper357 Active Member

    Possibly, my IP address did get banned from my own server due to trying to merge these templates. I'll look into it, thanks.

Share This Page