dartharnold / mining-buddy-plus

Automatically exported from code.google.com/p/mining-buddy-plus
3 stars 0 forks source link

Patch for /trunk/Mining/classes/api_class.php #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Changed line 179 to use https

Original issue reported on code.google.com by AaronWin...@gmail.com on 20 Jan 2013 at 11:39

Attachments:

GoogleCodeExporter commented 9 years ago
If you make this change, users that do not have an API entered will see the 
following when they go Preferences:

Fatal error: Uncaught exception 'Exception' with message 'String could not be 
parsed as XML' in 
/home/*****/public_html/*****/miningbuddyplus/classes/api_class.php:203 Stack 
trace: #0 
/home/*****/public_html/*****/miningbuddyplus/classes/api_class.php(203): 
SimpleXMLElement->__construct('Bad Request') #1 
/home/*****/public_html/*****/miningbuddyplus/functions/html/makePreferences.php
(213): api->authorizeApi() #2 
/home/*****/public_html/*****/miningbuddyplus/functions/process/get.php(104): 
makePreferences() #3 
/home/*****/public_html/*****/miningbuddyplus/index.php(74): process_get() #4 
{main} thrown in 
/home/*****/public_html/*****/miningbuddyplus/classes/api_class.php on line 203

Users that already have an API entered will work normally. As of right now I 
have to leave it as http so that new users can access the preferences page. 
However, their API will say not valid when they enter it and I have to mark 
them as valid by editing their API key through phpmyadmin.

Original comment by appri...@gmail.com on 5 Sep 2013 at 8:22