Closed netz0 closed 4 years ago
Just include the file (require_once, include...) or start using composer.
I do use composer. Makes no difference.
then you don't need to laod GUMP manually (require_once)
then you don't need to laod GUMP manually (require_once)
I tried both ways, manually or with the auto loader. I have no idea why its not working for me while the old version worked fine on the same box. I will try to research my test server since for some reason it does not like something about the new lang folder that was not in previous releases.
It seems its trying to load something related to the language file and it cannot find the proper class.
I was also facing this issue and i have used the require_once '../vendor/autoload.php'; before the Gump class and its working fine
I had an older GUMP version running fine. But it seems the latest versions gives me errors.
The examples folder is gone (was on older versions) and I'm using the same code for testing:
Fatal error: Uncaught Error: Class 'GUMP\EnvHelpers' not found in /home/dev/GUMP/gump.class.php:160 Stack trace: #0 /home/dev/GUMP/gump.class.php(61): GUMP->__construct() #1 /home/dev/GUMP/gump.class.php(178): GUMP::get_instance() #2 /home/dev/test.php(14): GUMP::is_valid(Array, Array, Array) #3 {main} thrown in /home/dev/GUMP/gump.class.php on line 160
The scr folder, lang and everything else inside the GUMP folder. Everything as included directly from the latest zip release.
Do I need to load the new version in another way or does it have to keep a specific folder name?