PHP Active Session ...
 
Notifications
Clear all

[Solved] PHP Active Session Bug

3 Posts
3 Users
1 Likes
176 Views
Posts: 4
Topic starter
(@matead)
Active Member
Joined: 11 months 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: 4318
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 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: 2 months ago

New Member
Posts: 2