James25 Posted May 2, 2017 Posted May 2, 2017 I am seeing: Sorry, there is a problem The page you requested does not exist Error code: 1S160/2 when my script (essentially copy/pasted from the LinkedIn auth.php) does: if (isset(\IPS\Request::i()->error) and \IPS\Request::i()->error) { \IPS\Dispatcher\Front::i(); if (\IPS\Request::i()->error == 'access_denied') { \IPS\Output::i()->error(htmlentities(\IPS\Request::i()->error_description, ENT_QUOTES | \IPS\HTMLENTITIES, 'UTF-8', false), 'E400', 403); } else { \IPS\Output::i()->error(htmlentities(\IPS\Request::i()->error_description, ENT_QUOTES | \IPS\HTMLENTITIES, 'UTF-8', false), 'E401', 403); } } Now, the problem is, it's doing this at \IPS\Dispatcher\Front::i();, not a bit later at the error() command, which I have confirmed it is never reaching. So it never passes the actual error back to the user. This is in the case of OAuth2, when login is denied. Is the LinkedIn code broken for this case? I haven't meaningfully changed it. Thanks! James
bfarber Posted May 2, 2017 Posted May 2, 2017 Often this type of error occurs due to file or folder permissions being set incorrectly.
James25 Posted May 2, 2017 Author Posted May 2, 2017 How should they be configured, then? The file itself is accessible just fine, directly. It is in applications/core/interface/.../auth.php I have friendly URLs enabled, but nothing in applications/ has a friendly URL so it should not matter. I am running Nginx.
HeadStand Posted May 2, 2017 Posted May 2, 2017 Assuming you're redirecting to a file in the interface directory, you need to check the file permissions. Try changing the permissions to 644. If that does work, you'll want to update your constants.php file to reflect that. define( 'IPS_FILE_PERMISSION', 0644 );
Recommended Posts
Archived
This topic is now archived and is closed to further replies.