One of our customers, who uses a PHP server with Nginx and PHP-FPM, encountered an issue when attempting to use a generic PHP API v1 code for creating an affiliate. When the add() function was called, the following error was thrown: ‘Request not executed yet’.
How Was This Issue Resolved?
Here’s what the customer reported:
“The zend.ze1 setting was set to off, and everything worked correctly. To identify this, I had to enable verbose logging on the PHP-FPM daemon.
The ini_set function could not override this setting when running as FastCGI.”
Debugging Technique
To quickly diagnose your own case, use $session->setDebug(); in your API v1 code. The resulting debug messages will provide more information about the error.
$session->setDebug();
Enabling verbose logging on the PHP-FPM daemon can help in identifying similar configuration issues when working with PHP applications behind Nginx.