rafinhacarneiro/appgini-api

Not working for the current AppGini version

Closed this issue · 1 comments

The output in v2 is:

`

( ! ) Warning: array_merge(): Argument #1 is not an array in C:\wamp64\www\apitest\lib.php on line 39
Call Stack
#TimeMemoryFunctionLocation
10.0014356576{main}( )...\index.php:0
20.20662119480include( 'C:\wamp64\www\apitest\lib.php' )...\index.php:510
30.20722119960array_merge ( )...\lib.php:39
{"report":{"tabelas":[]},"meta":{"ip":"::1","timestamp":"2020-12-15 21:22:30"}}`

Found the solution:
You have to include config.php in the lib.php file for the newer AppGini version eg. 5.92
Add
include_once("$currDir/config.php");
to lib.php in the root folder