jorge_molinaalb
I'm new here

Php request using composer autoload.php

Hi all!

My goal is being use Analytics vendor (I have it installed in the path /opt/firstspirit5/google-analytics-server-side/vendor of my FS5 server)

I have this same php file without CMS HEADER as test.php in the same path "/opt/firstspirit5/google-analytics-server-side/" and I tried to execute with php test.php and works.

The problem is when I try to use it like a route in the browser or with postman or advanced rest client... it returns a 500 Internal server error (picture).

378389_pastedImage_1.png

378388_pastedImage_0.png

However if I set some "echo" before "require", I can see it in preview mode:

378391_pastedImage_0.png

Labels (2)
0 Kudos