flammy / fsapi-remote

Example Code how to use the fsapi (Frontier Silicon API for PHP)
GNU General Public License v2.0
8 stars 3 forks source link

Class 'Radio' not found in /var/www/html/fsapi-remote/src/Backend.php #10

Open zbyszekkrok opened 4 years ago

zbyszekkrok commented 4 years ago

Hi

I know that last update was 3 years ago, but maybe you take a look here sometimes :). Your Frontier API looks interesting and might perfectly match my needs.

I tried install your code on Raspbian (Debian 9, stretch, PHP 7). After configuring, the "index.php" fails to load with error as below in Apache error.log:

PHP Fatal error: Uncaught Error: Class 'Radio' not found in /var/www/html/fsapi-remote/src/Backend.php:70\nStack trace:\n#0 /var/www/html/fsapi-remote/src/Backend.php(26): Backend->getActiveRadio(Array)\n#1 /var/www/html/fsapi-remote/index.php(11): Backend->__construct(Object(xajax), Object(Config))\n#2 {main}\n thrown in /var/www/html/fsapi-remote/src/Backend.php on line 70, referer: http://10.11.11.2/fsapi-remote/index.php?setup=true

I'm not a programmer, so I'm unable verify what is going wrong and fix...

Best regards,

Zbyszek K.

tagru commented 4 years ago

Funny thing, I am stumbling over this issue as well. Looks like something is missing in the repo?

I would be thrilled as well if this is project is put out of retirement and would be a run-able state at last.

Thanks and regards, tagru

RJdaMoD commented 4 years ago

Hi, take a look at my pull requests for this repo (and maybe also the fsapi repo), i've got it running on a raspberry3 with apache2/php7 and a SilverCrest radio. Greets, RJ

zbyszekkrok commented 2 years ago

Yeah! Thx RJdaMoD! It works on Raspbian 9, php7 (I know, old)!

Hint to others: download RJdaMoD's version of fsapi and fsapi-remote. Both!