Tried this solution but did not solve the problem for me.
Instead it was a problem on the way we passed the fastcgi data from nginx webserver, which falls on the global $_SERVER[‘PHP_SELF’] and it was missing the 1st subdirectory level of the filesystem.
Fixed it by passing the correct value to the fastcgi SCRIPT_NAME parameter.
(Hint: debug by printing somewhere the values for _SERVER superglobals PHP_SELF and REQUEST_URI)