2021-07-20, 10:26 PM
Hey everyone. Something happened, suddenly, out of nowhere literally. It was working fine when I've started seeing this error, don't know what caused it. When I'm logged in, I can access anywhere except admin cp and a user's profile (only got 1 test user). When I'm logged out, I still can't get in admin cp and user's profile, and can't get in the thread where I posted with the test account. Here's the error log:
Hope to get some help because I've tried lots of stuff but still no luck.
Different(?) errors while I'm in my test account. Every aspect of the site, as I mentioned earlier, works. I can open new threads, post new replies, send PMs etc. etc. But I can't get into any thread that contains a post from a different member than I'm currently logged in, I can't get into their profile (can get into mine) and I can't get into admin CP no matter what. Also, I'd like to mention that I've not even touched any specified files above. Disabling plugins won't do anything.
<error>
<dateline>1626819708</dateline>
<script>inc/functions.php</script>
<line>1460</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>in_array() expects parameter 2 to be array, null given</message>
<back_trace>#0 errorHandler->error() called at [[PHP]: ]
#1 in_array() called at [/inc/functions.php:1460]
#2 usergroup_permissions() called at [/inc/functions.php:1358]
#3 user_permissions() called at [/member.php:2041]
</back_trace>
</error>
<error>
<dateline>1626819708</dateline>
<script>inc/functions.php</script>
<line>1466</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>array_key_exists() expects parameter 2 to be array, null given</message>
<back_trace>#0 errorHandler->error() called at [/inc/functions.php:1466]
#1 usergroup_permissions() called at [/inc/functions.php:1358]
#2 user_permissions() called at [/member.php:2041]
</back_trace>
</error>
<error>
<dateline>1626819708</dateline>
<script>inc/functions.php</script>
<line>1480</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>array_key_exists() expects parameter 2 to be array, null given</message>
<back_trace>#0 errorHandler->error() called at [/inc/functions.php:1480]
#1 usergroup_permissions() called at [/inc/functions.php:1358]
#2 user_permissions() called at [/member.php:2041]
</back_trace>
</error>
<error>
<dateline>1626819708</dateline>
<script></script>
<line>0</line>
<type>20</type>
<friendly_type>MyBB SQL Error</friendly_type>
<message>SQL Error: 2006 - MySQL server has gone away
Query: SELECT location,nopermission FROM mfdkpwr_sessions WHERE uid='2' AND time>'1626818808' ORDER BY time DESC LIMIT 1</message>
<back_trace>#0 errorHandler->error() called at [/inc/db_mysqli.php:601]
#1 DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2 DB_MySQLi->query() called at [/inc/db_mysqli.php:793]
#3 DB_MySQLi->simple_select() called at [/member.php:2433]
</back_trace>
</error>
Hope to get some help because I've tried lots of stuff but still no luck.
<error>
<dateline>1626867811</dateline>
<script>inc/functions.php</script>
<line>1480</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>array_key_exists() expects parameter 2 to be array, null given</message>
<back_trace>#0 errorHandler->error() called at [/inc/functions.php:1480]
#1 usergroup_permissions() called at [/inc/functions.php:1358]
#2 user_permissions() called at [/inc/functions_post.php:716]
#3 build_postbit() called at [/showthread.php:1117]
</back_trace>
</error>
<error>
<dateline>1626867811</dateline>
<script>inc/functions.php</script>
<line>1460</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>in_array() expects parameter 2 to be array, null given</message>
<back_trace>#0 errorHandler->error() called at [[PHP]: ]
#1 in_array() called at [/inc/functions.php:1460]
#2 usergroup_permissions() called at [/inc/functions.php:1358]
#3 user_permissions() called at [/inc/functions_post.php:716]
#4 build_postbit() called at [/showthread.php:1117]
</back_trace>
</error>
<error>
<dateline>1626867811</dateline>
<script>inc/functions.php</script>
<line>1466</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>array_key_exists() expects parameter 2 to be array, null given</message>
<back_trace>#0 errorHandler->error() called at [/inc/functions.php:1466]
#1 usergroup_permissions() called at [/inc/functions.php:1358]
#2 user_permissions() called at [/inc/functions_post.php:716]
#3 build_postbit() called at [/showthread.php:1117]
</back_trace>
</error>
<error>
<dateline>1626867811</dateline>
<script></script>
<line>0</line>
<type>20</type>
<friendly_type>MyBB SQL Error</friendly_type>
<message>SQL Error: 2006 - MySQL server has gone away
Query: SELECT url, url_term FROM mfdkpwr_urls WHERE url IN ('')</message>
<back_trace>#0 errorHandler->error() called at [/inc/db_mysqli.php:601]
#1 DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2 DB_MySQLi->query() called at [/inc/db_mysqli.php:793]
#3 DB_MySQLi->simple_select() called at [/inc/plugins/linktools.php:4013]
#4 lkt_retrieve_terms() called at [/inc/plugins/linktools.php:3924]
#5 lkt_insert_preview_placeholders() called at [/inc/plugins/linktools.php:3903]
#6 lkt_hookin__parse_message_start() called at [/inc/class_plugins.php:142]
#7 pluginSystem->run_hooks() called at [/inc/class_parser.php:153]
#8 postParser->parse_message() called at [/inc/functions_post.php:810]
#9 build_postbit() called at [/showthread.php:1117]
</back_trace>
</error>
Different(?) errors while I'm in my test account. Every aspect of the site, as I mentioned earlier, works. I can open new threads, post new replies, send PMs etc. etc. But I can't get into any thread that contains a post from a different member than I'm currently logged in, I can't get into their profile (can get into mine) and I can't get into admin CP no matter what. Also, I'd like to mention that I've not even touched any specified files above. Disabling plugins won't do anything.