ztizzlegaming / CSGOWinBig

Open-source Counter-Strike: Global Offensive jackpot betting website.
MIT License
172 stars 105 forks source link

[FIXED] Problem after switching to Blazingfast.io #118

Open mx0c opened 8 years ago

mx0c commented 8 years ago

Hi, after i switched my server to Blazingfast.io im getting an 500 internal server error.

ErrorLog: [22-Dec-2015 13:04:08 UTC] PHP Fatal error: Call to a member function fetchAll() on a non-object in /home/csgojack1/public_html/php/update.php on line 21

Browser Console: http://imgur.com/m7Ei7yM

update.php line 21: $currentPotArr = $stmt->fetchAll();

script.js line 311: $.getJSON('php/update.php', function (jsonObj) {

Domain: csgojack.de

Thanks in Advance!

andrewda commented 8 years ago

http://csgojack.de/php/update.php

You have DDoS protection on. I think there's a way to disable it for certain files, but I'm not entirely sure as I've never used Blazingfast.

After DDoS check it returns a 500, which I'm assuming has to do with Blazingfast's protection.

mx0c commented 8 years ago

Deactivated ddos protection - didnt change anything. Any other idea?

andrewda commented 8 years ago

Something in your update.php is causing an internal server error. Has it been changed?

mx0c commented 8 years ago

Didnt change anything except the sql login stuff.

mx0c commented 8 years ago

Stack trace:

0 {main}

thrown in /home/csgojack1/public_html/php/update.php on line 21 [25-Dec-2015 17:31:10 UTC] PHP Fatal error: Uncaught Error: Call to a member function fetchAll() on boolean in /home/csgojack1/public_html/php/update.php:21 Stack trace:

0 {main}

thrown in /home/csgojack1/public_html/php/update.php on line 21

mx0c commented 8 years ago

WHY?!

andrewda commented 8 years ago

http://stackoverflow.com/questions/12316185/fatal-error-call-to-a-member-function-fetchall-on-a-non-object-in-pdo

Google is your friend ;)

mx0c commented 8 years ago

I already read that but my query is right... $stmt = $db->query('SELECT * FROM currentPot'); isnt it?

mx0c commented 8 years ago

i reuploaded the clean database template. Now im getting this error: http://imgur.com/5kTkRnf

Line: var serverMostRecentID = parseInt(chat[chat.length - 1]['id'], 10);

mx0c commented 8 years ago

ok fixed it #41 Close Pls