Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP error without warning when logging is enabled - SOLVED
05-10-2022, 11:15 AM, (This post was last modified: 05-10-2022, 11:18 AM by TurboPT.)
RE: Failure on PHP v8 appears to prevent deleting user
Know that everything in the after_4.15.1_bug_fixes_only branch has been merged into master with the 4.15.2 release, so all those changes from the bug_fixes_only branch are in master as well. Unfortunately, the repo's default is set to the bug_fixes_only branch, and with the new GitHub authentication (though I say new, it's been about 2 years since GitHub made the change), I've not been able to login to set the default back to master and delete the bug_fixes_only branch. The new GitHub device authentication code goes to another email account that I do not own.

The change needed to avoid the fwrite error is: (see the code comment, or lines 2-4 below)

PHP Code:
if (isset($Messages) and count($Messages) > 0) {
    if (isset($_SESSION['LogSeverity']) and $_SESSION['LogSeverity'] > 0) { // add these 3 lines
        $LogFile fopen($_SESSION['LogPath'] . '/weberp.log''a');

    foreach ($Messages as $Message) { 

So, if you could please add those 3 lines between the first if and the foreach, save, and recheck with the severity set to All to see if the fatal error goes away?
I'm thinking that there might be another unrelated error, but we'll see how the test goes.

The database changes are very minor (there's only 3 short statements, one of which is the version update), and you can see what those are here.

Hope all that helps.

Messages In This Thread
RE: Failure on PHP v8 appears to prevent deleting user - by TurboPT - 05-10-2022, 11:15 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)