Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 18, 20222 yr 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, 20222 yr by DamonT
August 18, 20222 yr Author Solution Fixed: cookie path was overwritten in constans.php during upgrade.
August 18, 20222 yr You would need to check what is overwriting these. Note that constants.php is not touched in any way during upgrades