PHP Active Session ...
 
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] PHP Active Session Bug

3 Posts
3 Users
1 Reactions
774 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: 5483
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 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 years ago

New Member
Posts: 2