First time out the door implementing Slim, and everything was OK until I ran the app I’m working on from the server (nginx). I quickly cobbled together the 1st app walkthru code existing of only the ‘hello’ route, it works as advertised on the local php server. However, when netbeans uploaded to a test server (vanilla nginx server) and I ran the same application here’s what I get regardless using the php server or nginx:
[Wed Feb 27 16:59:17 2019] 192.168.1.67:50444 : /home/check - Uncaught Error: Call to undefined method Slim\Router::setCacheFile() in /srv/www/workspace/infraweb/vendor/slim/slim/Slim/DefaultServicesProvider.php:96
Cant figure this one out… composer?!? Workstation and server are updated, not showing any errors when using composer from the cli on either box. It’s quite probable I’ve done something cement headed but I’m not quite sure. The one thing after reading I’m kinda wondering is about the DefaultServicesProvider reference, as I didn’t do anything like install the framework; I simply required Slim in composer and went to work. I used an array structure with the defaults defined in the documents for loading the slim app. If I deserve a shin-kicking here, please be gentle, however any and all constructive criticism is greatly welcomed and encouraged.
Thanx in advance!