Jump to content

Featured Replies

Posted

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 by DamonT

Solved by DamonT

Go to solution
  • Author
  • Solution

Fixed: cookie path was overwritten in constans.php during upgrade.

You would need to check what is overwriting these. Note that constants.php is not touched in any way during upgrades

Recently Browsing 0

  • No registered users viewing this page.