Stray files in the ...
 
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.

 

[Closed] Stray files in the root of the site

2 Posts
2 Users
2 Reactions
1,066 Views
dimalifragis
Posts: 2601
Topic starter
(@dimalifragis)
Famed Member
Joined: 5 years ago

Hi,

I almost had a heart attack. You create files in the root of the site and it took me hours to find the cause. 3 files.

Usergroups.php - 21.117 bytes - 14.09.23 at 19:38 - \Wp-content\Plugins\Wpforo\Classes\
17.580 file_put_contents(ABSPATH . '/logggging-UR.txt', print_r($usergroupid_role, true) . "\r\n", FILE_APPEND);

For god's sake guys ...

1 Reply
Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @dimalifragis,

Great finding! No worries it'll be removed in the next update. At the moment you can remove the line manually.

File: /wpforo/classes/UserGroups.php

Remove the following lines:

file_put_contents(ABSPATH . '/logggging-R.txt', print_r($ugids, true) . "\r\n", FILE_APPEND);
file_put_contents(ABSPATH . '/logggging-UR.txt', print_r($usergroupid_role, true) . "\r\n", FILE_APPEND);
file_put_contents(ABSPATH . '/logggging-RL.txt', print_r($role, true) . "\r\n", FILE_APPEND);