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.

 

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

15 Posts
3 Users
1 Reactions
28.3 K Views
Posts: 1599
Topic starter
(@anonymous20)
Noble Member
Joined: 9 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 (
),
))

Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 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.

1 Reply
(@anonymous20)
Joined: 9 years ago

Noble Member
Posts: 1599
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 ....

Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 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();

 

1 Reply
(@anonymous20)
Joined: 9 years ago

Noble Member
Posts: 1599

The above seems to works right for my editing problem.

Thank you

Posts: 8
(@chonk)
Active Member
Joined: 7 years ago
Page 2 / 2