PHP Active Session ...
 
Notifications
Clear all

[Solved] PHP Active Session Bug

3 Posts
3 Users
1 Reactions
486 Views
Posts: 4
Topic starter
(@matead)
Active Member
Joined: 2 years ago

Hi. There is a bug in your PHP code for the file main.php. You need to add session_write_close(); after a session_start(); otherwise you break the PHP construct in the entire Wordpress backend.

private function __construct() {
if( ! wpforo_is_session_started() ) session_start();
$this->db = WPF()->db;
$this->setup();
session_write_close(); // this is required
}
2 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

The mentioned code belongs to the Go2wpForo tool. It should be activated on the staging or local website for a while. After migration, it's recommended to deactivate and delete the tool. 

1 Reply
(@avradip)
Joined: 10 months ago

New Member
Posts: 2