• 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

viper357

Active member
#1
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?

member_view
node_list.css

Thanks.
 

Chris D

XenForo developer
Staff member
#2
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.
 

viper357

Active member
#3
post_max_size is 8M, max_input_vars is 1000. Not sure if those are good or bad?
Does the 403 error happen instantly or after a while.
It happens instantly.
It might be worth seeing if you can track down any PHP error logs
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] [81.98.70.53:54243-1#APVH_marineaquariumsa.com] File not found [/home/marineaq/public_html/403.shtml]
2016-10-09 14:09:33.995 [INFO] [81.98.70.53:54243] File not found [/home/marineaq/public_html/403.shtml]
2016-10-09 14:08:53.589 [INFO] [81.98.70.53:54205] File not found [/home/marineaq/public_html/403.shtml]
 

viper357

Active member
#4
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
 

Jake Bunce

XenForo moderator
Staff member
#5
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
Those errors look like vB, not XenForo. If you have vB installed and aren't using it then you may want to remove it.

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] [81.98.70.53:54243-1#APVH_marineaquariumsa.com] File not found [/home/marineaq/public_html/403.shtml]
2016-10-09 14:09:33.995 [INFO] [81.98.70.53:54243] File not found [/home/marineaq/public_html/403.shtml]
2016-10-09 14:08:53.589 [INFO] [81.98.70.53:54205] File not found [/home/marineaq/public_html/403.shtml]
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.
 

viper357

Active member
#7
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.
 

Mike

XenForo developer
Staff member
#8
FWIW, as you mentioned it worked automatically, it's almost certainly something like a false positive from mod_security.