Forum
Logout from Members App not working, using Runway
I'm trying to use the Members App in a runway setup. With several failures behind me, I've now really simplified things and it still doesn't work. Here's the code and the error message and I checked that the file /perch/runtime.php does indeed exist in that location ...
My file called 'logout.php in the site root ...
<?php
include('../perch/runtime.php');
perch_member_log_out();
PerchUtil::redirect('/group-support/');
?>
'htaccess' file ...
# Perch Runway
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/perch
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /perch/core/runway/start.php [L]
From the PHP error log, after executing logout.php ...
PHP Warning: include(../perch/runtime.php): failed to open stream: No such file or directory in /home/xxxxxxx/public_html/logout.php on line 2
Anyone see the cause please? Or have any suggestions?
If the file is in the site root then this:
should be this:
Although you should really be using a master page and routing, not putting files in the site root with Runway.
Problem is now fixed. It was the browser caching earlier failed attempts.
I'd tried both the above suggestions before opening a forum post, but the caching of earlier failures must have been clouding the issue. And, yes, the plan is to use a master page and routing but attempts at that probably caused the original (and cached) problem in the first place and I'd therefore gone right back to basics to try to find the cause.
Thanks
Thanks for sharing with us.. just switched it and it's working perfectly. https://www.quickpayportal.pro/