Notifications
Clear all

wpForo 1.x.x [Solved] I can't edit using Appearance / Editor

15 Posts
3 Users
1 Likes
25.5 K Views
Anonymous20
Posts: 1602
Topic starter
(@anonymous20)
Noble Member
Joined: 6 years ago

@robert with the help of a programmer at my hosting, after adding some debug code in file.php (wp-admin/include), there is some info in the debug log that _could_ help you solve this:

[17-Sep-2018 13:25:03 UTC] Starting edit check
[17-Sep-2018 13:25:03 UTC] Body:
[17-Sep-2018 13:25:03 UTC]
[17-Sep-2018 13:25:03 UTC] Connection failed
[17-Sep-2018 13:25:03 UTC] WP_Error::__set_state(array(
'errors' =>
array (
'http_request_failed' =>
array (
0 => 'cURL error 28: Operation timed out after 100002 milliseconds with 0 bytes received',
),
),
'error_data' =>
array (
),
))

Reply
Robert
Posts: 9269
Admin
(@robert)
Support Team
Joined: 6 years ago

Thank you Anonymous20,

Unfortunately the debug code says nothing new. The issue is general issue. All plugins who call session_start() function cannot be edited by WordPress editor, because the new version of WordPress editor tries to execute code to check if it doesn't returns any error. Other editors works fine, they don't try to execute the edited code. We'll check this and try remove session functions in dashboard.

Reply
1 Reply
Anonymous20
(@anonymous20)
Joined: 6 years ago

Noble Member
Posts: 1602
Posted by: Robert

Thank you Anonymous20,

Unfortunately the debug code says nothing new. The issue is general issue. All plugins who call session_start() function cannot be edited by WordPress editor, because the new version of WordPress editor tries to execute code to check if it doesn't returns any error. Other editors works fine, they don't try to execute the edited code. We'll check this and try remove session functions in dashboard.

I have done some reading about this. It seems that WP doesn't use php sessions at all. And there are many reasons not to use them, performance one of them. Or so i read.

Still. i'm not into programming, so ....

Reply
Robert
Posts: 9269
Admin
(@robert)
Support Team
Joined: 6 years ago

@anonymous20, @chonk

Please try to do this small change in core file. We'll update it in next release.

Open /wp-content/plugins/wpforo/wpf-includes/class-notices.php file.

Find this line:

if(!wpforo_is_session_started()) session_start();

Change to this:

if( !wpforo_is_session_started() && !is_admin() ) session_start();

 

Reply
1 Reply
Anonymous20
(@anonymous20)
Joined: 6 years ago

Noble Member
Posts: 1602

The above seems to works right for my editing problem.

Thank you

Reply
chonk
Posts: 8
(@chonk)
Active Member
Joined: 4 years ago
Reply
Page 2 / 2
Share: