Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
DamonT Posted August 18, 2022 Posted August 18, 2022 (edited) Hello, I just upgraded from version 4.5.4.2 to the latest one. Everything ran correctly. There are no errors in the logs, however, our external scripts that were based on whether the user was logged in stopped working. The following test script does not work on the latest version - it always shows a message about not being logged in. What could be causing this problem? The path to init.php is correct. My PHP version is 7.4.29. <?php require_once '../../forum/init.php'; \IPS\Session\Front::i(); $member = \IPS\Member::loggedIn(); if($member->member_id){ echo "Logged in"; } else { echo "Not logged in"; } ?> Edited August 18, 2022 by DamonT
Solution DamonT Posted August 18, 2022 Author Solution Posted August 18, 2022 Fixed: cookie path was overwritten in constans.php during upgrade.
Marc Posted August 18, 2022 Posted August 18, 2022 You would need to check what is overwriting these. Note that constants.php is not touched in any way during upgrades
Recommended Posts