prdatur / phpminer

PHPMiner is a web interface for cgminer on linux machines
Other
34 stars 15 forks source link

Undefined indexes in controllers/main.php #46

Open camelman912 opened 10 years ago

camelman912 commented 10 years ago

Hey there, I am trying to get your PHPMiner running and I'm getting constant phperror... See below (since I can't attach a log file sorry). the only modifications I've made to the php files is my configs. the rest is exactly what I took out of https://github.com/prdatur/phpminer/archive/1.3.1.zip

Please assist!! :-) Thanks!!!

PHPMiner version: 1.3.1 Error: NOTICE: Undefined index: pools in C:\inetpub\wwwroot\miner\controllers\main.php on line 1063
Backtrace:
File: C:\inetpub\wwwroot\miner\index.php
Line: 159: call_user_func_array (Args: array(), array())
File: (unknown)
Line: (unknown): main->get_device_list (no args)
File: C:\inetpub\wwwroot\miner\controllers\main.php
Line: 721: main->get_device_data (Args: , 0, 0, array())
Line: 931: main->get_detailed_rig_data (Args: "localhost", )

Error: WARNING: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\miner\controllers\main.php on line 1063
Backtrace:
File: C:\inetpub\wwwroot\miner\index.php
Line: 159: call_user_func_array (Args: array(), array())
File: (unknown)
Line: (unknown): main->get_device_list (no args)
File: C:\inetpub\wwwroot\miner\controllers\main.php
Line: 721: main->get_device_data (Args: , 0, 0, array())
Line: 931: main->get_detailed_rig_data (Args: "localhost", )

Error: NOTICE: Undefined index: pools in C:\inetpub\wwwroot\miner\controllers\main.php on line 1071
Backtrace:
File: C:\inetpub\wwwroot\miner\index.php
Line: 159: call_user_func_array (Args: array(), array())
File: (unknown)
Line: (unknown): main->get_device_list (no args)
File: C:\inetpub\wwwroot\miner\controllers\main.php
Line: 721: main->get_device_data (Args: , 0, 0, array())
Line: 931: main->get_detailed_rig_data (Args: "localhost", )

Error: WARNING: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\miner\controllers\main.php on line 1071
Backtrace:
File: C:\inetpub\wwwroot\miner\index.php
Line: 159: call_user_func_array (Args: array(), array())
File: (unknown)
Line: (unknown): main->get_device_list (no args)
File: C:\inetpub\wwwroot\miner\controllers\main.php
Line: 721: main->get_device_data (Args: , 0, 0, array())
Line: 931: main->get_detailed_rig_data (Args: "localhost", )

camelman912 commented 10 years ago

Well, I think I may have solved something, but something else isn't working. I was receiving those error when PHPMiner was watching what CGWatcher was already doing. Now when I click stop via phpminer the miner stops properly. then I no longer receive the recurring error. However, when I go to start the miner via your interface, the pool information isn't being passed onto the batch file and I get a console window asking for a pool URL.

Thx!!!