403 & 503 Errors

Status
Not open for further replies.

thesouth

New Member
Messages
7
Reaction score
0
Points
1
The forum I host is experiencing a relatively high number of 403 and 503 errors sporadically. This has only started happening in the past few days, so I'm not sure if this is a mod_security issue or not. However, nothing about the forum installation has changed, and there don't seem to be any error logs I can access through cPanel or FTP, so I'm perplexed about these errors.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
403 errors would most likely be caused by mod security, 503 errors on the other hand would generally be something else.

Are you able to reproduce either of these errors on demand?

I checked out the error log for your site, I'm seeing 724 bot (bad IP) attempts blocked in the past 48 hours and mod security blocks triggered 67 times. Both of these would throw a 403 error.

The majority of mod security errors seem to be blocking legitimate spam attempts with some blocking submissions using editpost.php, do you recall seeing a 403 while editing a post at all?
 

thesouth

New Member
Messages
7
Reaction score
0
Points
1
Yes, I do have a user reporting that they get a 403 error when trying to edit a specific post. (If it's useful, this is the post in particular: http://thesouthpacific.x10.mx/thread-242-post-4851.html#pid4851) The errors seem to be affecting random posts, as far as I can tell. That particular post can't be edited at all without a 403 error, no matter who attempts to do it.

We do have issues with spambots signing up for our forums a lot. We used StopForumSpam.com for a bit, but there was an issue in MyBB's code that prevented it from working correctly.

For the 503 error, I can reproduce it trying to edit an announcement. For that, I have another admin on the forum reporting that they get the following errors, which is likely an issue with PHP 5.4 and MyBB:
The following warnings occurred:
Warning [2] Illegal string offset 'fid' - Line: 1597 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1597 errorHandler->error
Warning [2] Illegal string offset 'fid' - Line: 1597 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1597 errorHandler->error
Warning [2] Illegal string offset 'fid' - Line: 1597 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1597 errorHandler->error
Warning [2] Illegal string offset 'startdate' - Line: 1602 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1602 errorHandler->error
Warning [2] Illegal string offset 'enddate' - Line: 1609 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1609 errorHandler->error
Warning [2] Illegal string offset 'startdate' - Line: 1655 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1655 errorHandler->error
Warning [2] gmdate() expects parameter 2 to be long, string given - Line: 1655 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
PHP:
   errorHandler->error
/modcp.php 1655 gmdate
Warning [2] Illegal string offset 'enddate' - Line: 1656 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1656 errorHandler->error
Warning [2] gmdate() expects parameter 2 to be long, string given - Line: 1656 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
[PHP]   errorHandler->error
/modcp.php 1656 gmdate
Warning [2] Illegal string offset 'startdate' - Line: 1658 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1658 errorHandler->error
Warning [2] gmdate() expects parameter 2 to be long, string given - Line: 1658 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
[PHP]   errorHandler->error
/modcp.php 1658 gmdate
Warning [2] Illegal string offset 'enddate' - Line: 1659 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1659 errorHandler->error
Warning [2] gmdate() expects parameter 2 to be long, string given - Line: 1659 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
[PHP]   errorHandler->error
/modcp.php 1659 gmdate
Warning [2] Illegal string offset 'startdate' - Line: 1661 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1661 errorHandler->error
Warning [2] gmdate() expects parameter 2 to be long, string given - Line: 1661 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
[PHP]   errorHandler->error
/modcp.php 1661 gmdate
Warning [2] Illegal string offset 'enddate' - Line: 1662 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1662 errorHandler->error
Warning [2] gmdate() expects parameter 2 to be long, string given - Line: 1662 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
[PHP]   errorHandler->error
/modcp.php 1662 gmdate
Warning [2] Illegal string offset 'startdate' - Line: 1664 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1664 errorHandler->error
Warning [2] gmdate() expects parameter 2 to be long, string given - Line: 1664 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
[PHP]   errorHandler->error
/modcp.php 1664 gmdate
Warning [2] Illegal string offset 'enddate' - Line: 1665 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1665 errorHandler->error
Warning [2] gmdate() expects parameter 2 to be long, string given - Line: 1665 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
[PHP]   errorHandler->error
/modcp.php 1665 gmdate
Warning [2] Illegal string offset 'subject' - Line: 1711 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1711 errorHandler->error
Warning [2] Illegal string offset 'message' - Line: 1712 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1712 errorHandler->error
Warning [2] Illegal string offset 'allowhtml' - Line: 1715 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1715 errorHandler->error
Warning [2] Illegal string offset 'allowmycode' - Line: 1724 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1724 errorHandler->error
Warning [2] Illegal string offset 'allowsmilies' - Line: 1733 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1733 errorHandler->error
Warning [2] Illegal string offset 'enddate' - Line: 1743 - File: modcp.php PHP 5.4.36 (Linux)
File Line Function
/modcp.php 1743 errorHandler->error
Warning [2] Illegal string offset 'fid' - Line: 12 - File: modcp.php(1805) : eval()'d code PHP 5.4.36 (Linux)
File Line Function
/modcp.php(1805) : eval()'d code 12 errorHandler->error
/modcp.php 1805 eval[/quote]
 

thesouth

New Member
Messages
7
Reaction score
0
Points
1
I'm bumping this because users on our forums are still experiencing 403 errors. It's making parts of the forums unusable.

We do regularly have spam accounts sign up, but these accounts do not post and are regularly banned. I realize that mod_security is there to deal with spam issues, among other things, but it's also blocking legitimate use.
 
Status
Not open for further replies.
Top