{"action":"created","issue":{"url":"https://api.github.com/repos/Phorum/Core/issues/902","labels_url":"https://api.github.com/repos/Phorum/Core/issues/902/labels{/name}","comments_url":"https://api.github.com/repos/Phorum/Core/issues/902/comments","events_url":"https://api.github.com/repos/Phorum/Core/issues/902/events","html_url":"https://github.com/Phorum/Core/issues/902","id":69877573,"number":902,"title":"[2.1.19] String offset cast occurred in /var/www/phorum/mods/spamhurdles/api.php on line 771","user":{"login":"dcaillibaud","id":1430515,"avatar_url":"https://avatars.githubusercontent.com/u/1430515?v=3","gravatar_id":"","url":"https://api.github.com/users/dcaillibaud","html_url":"https://github.com/dcaillibaud","followers_url":"https://api.github.com/users/dcaillibaud/followers","following_url":"https://api.github.com/users/dcaillibaud/following{/other_user}","gists_url":"https://api.github.com/users/dcaillibaud/gists{/gist_id}","starred_url":"https://api.github.com/users/dcaillibaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcaillibaud/subscriptions","organizations_url":"https://api.github.com/users/dcaillibaud/orgs","repos_url":"https://api.github.com/users/dcaillibaud/repos","events_url":"https://api.github.com/users/dcaillibaud/events{/privacy}","received_events_url":"https://api.github.com/users/dcaillibaud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"oricgn","id":4638641,"avatar_url":"https://avatars.githubusercontent.com/u/4638641?v=3","gravatar_id":"","url":"https://api.github.com/users/oricgn","html_url":"https://github.com/oricgn","followers_url":"https://api.github.com/users/oricgn/followers","following_url":"https://api.github.com/users/oricgn/following{/other_user}","gists_url":"https://api.github.com/users/oricgn/gists{/gist_id}","starred_url":"https://api.github.com/users/oricgn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oricgn/subscriptions","organizations_url":"https://api.github.com/users/oricgn/orgs","repos_url":"https://api.github.com/users/oricgn/repos","events_url":"https://api.github.com/users/oricgn/events{/privacy}","received_events_url":"https://api.github.com/users/oricgn/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-04-21T15:34:26Z","updated_at":"2015-09-11T09:46:40Z","closed_at":null,"body":"With phorum 2.1.19 and php 5.4.40, after a lot of spam attempts (without success), I had 6Go of php notice with\r\n\r\n```\r\nPHP Notice:  String offset cast occurred in /var/www/phorum/mods/spamhurdles/api.php on line 771\r\n```\r\n\r\nI have also a lot of\r\n```\r\nPHP Notice:  unserialize(): Error at offset 2222 of 2718 bytes in /var/www/phorum/include/db/mysql.php on line 585\r\n\r\nPHP Notice:  unserialize(): Error at offset 1769 of 1957 bytes in /var/www/phorum/include/db/mysql.php on line 768\r\n\r\nPHP Notice: unserialize(): Error at offset 7744 of 7957 bytes in /var/www/phorum/include/db/mysql.php on line 1350\r\n\r\nPHP Notice: unserialize(): Error at offset 110 of 135 bytes in /var/www/phorum/include/db/mysql.php on line 1441\r\n\r\nPHP Notice:  unserialize(): Error at offset 1322 of 3794 bytes in /var/www/phorum/include/db/mysql.php on line 1470\r\n\r\nPHP Notice:  unserialize(): Error at offset 493 of 585 bytes in /var/www/phorum/include/db/mysql.php on line 3348\r\n```\r\nperhaps data related, and\r\n\r\n```\r\nPHP Notice: Undefined index: HTTP_USER_AGENT in /var/www/phorum/mods/mod_mobile/mod_mobile.php on line 14\r\n\r\nPHP Warning:  strpos(): Empty needle in /var/www/phorum/mods/bbcode/api.php on line 1313\r\n\r\nPHP Notice:  Undefined index: body in /var/www/phorum/mods/post_previews/post_previews.php on line 75\r\n```\r\n\r\nIt's not so important, It's always possible not to log notice, but I prefer keep this because notice are often a sign of possible bug.\r\n\r\nThanks for phorum, and if possible for removing theses notice in a next release\r\n"},"comment":{"url":"https://api.github.com/repos/Phorum/Core/issues/comments/139501917","html_url":"https://github.com/Phorum/Core/issues/902#issuecomment-139501917","issue_url":"https://api.github.com/repos/Phorum/Core/issues/902","id":139501917,"user":{"login":"oricgn","id":4638641,"avatar_url":"https://avatars.githubusercontent.com/u/4638641?v=3","gravatar_id":"","url":"https://api.github.com/users/oricgn","html_url":"https://github.com/oricgn","followers_url":"https://api.github.com/users/oricgn/followers","following_url":"https://api.github.com/users/oricgn/following{/other_user}","gists_url":"https://api.github.com/users/oricgn/gists{/gist_id}","starred_url":"https://api.github.com/users/oricgn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oricgn/subscriptions","organizations_url":"https://api.github.com/users/oricgn/orgs","repos_url":"https://api.github.com/users/oricgn/repos","events_url":"https://api.github.com/users/oricgn/events{/privacy}","received_events_url":"https://api.github.com/users/oricgn/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T09:46:40Z","updated_at":"2015-09-11T09:46:40Z","body":"> PHP Notice:  unserialize(): Error at offset 2222 of 2718 bytes in /var/www/phorum/include/db/mysql.php\r\n\r\nExcept last warning it concerns always to the meta column. I think this could be the same issue: http://davidwalsh.name/php-serialize-unserialize-issues\r\n\r\n> It turns out that if there's a \", ', :, or ; in any of the array values the serialization gets corrupted."}}