#2746 - Sometimes block loading results in a MySQL query error This is a spacer post for a website comment topic. The content this topic relates to: #2746 - Sometimes block loading results in a MySQL query error By Guest posted 30th Jul 2016, 12:17 PM Do not fill this field in. Ok, I've worked this out. It happens when the session ID is numeric. PHP changes numeric array indices into integers, so we get it back with an integer and it breaks a query. This is the chance of it happening: (10/16)^13*100=0.222% By Guest posted 30th Jul 2016, 12:23 PM Oh wow, so I must have gotten lucky XD By Guest posted 30th Jul 2016, 12:24 PM Fixed. sources/users.php in my latest commit By Guest posted 30th Jul 2016, 12:27 PM Thanks. Also, is it weird that if a block causes an error, it loads up global_html_wrap again to display the error (and you then get two headers/pages in one)? By Guest posted 30th Jul 2016, 12:28 PM Yeah, it can't track output progress really, not really got a solution to that one. 0 guests and 0 members have recently viewed this. Sort: Relevance Newest first Oldest first Rating Popularity
It happens when the session ID is numeric. PHP changes numeric array indices into integers, so we get it back with an integer and it breaks a query.
This is the chance of it happening:
(10/16)^13*100=0.222%
sources/users.php in my latest commit