From 4d6589bdc8c5b98c6b75a5991f7862c4d93443b2 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 1 Nov 2024 10:57:53 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1980 --- install.php | 4 ++-- wire/core/ProcessWire.php | 4 ++-- wire/core/WireShutdown.php | 2 +- wire/modules/Process/ProcessProfile/ProcessProfile.module | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/install.php b/install.php index 16052877..cb29695f 100644 --- a/install.php +++ b/install.php @@ -91,7 +91,7 @@ class Installer { public function execute() { if(self::TEST_MODE) { - error_reporting(E_ALL | E_STRICT); + error_reporting(E_ALL); ini_set('display_errors', 1); } @@ -2065,6 +2065,6 @@ class Installer { /****************************************************************************************************/ if(!Installer::TEST_MODE && is_file("./site/assets/installed.php")) die("This installer has already run. Please delete it."); -error_reporting(E_ALL | E_STRICT); +error_reporting(E_ALL); $installer = new Installer(); $installer->execute(); \ No newline at end of file diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index 46c502f3..115f34b4 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -288,7 +288,7 @@ class ProcessWire extends Wire { // this is reset in the $this->setConfig() method based on current debug mode ini_set('display_errors', true); - error_reporting(E_ALL | E_STRICT); + error_reporting(E_ALL); $config->setWire($this); @@ -449,7 +449,7 @@ class ProcessWire extends Wire { if($debug) { // If debug mode is on then echo all errors - error_reporting(E_ALL | E_STRICT); + error_reporting(E_ALL); ini_set('display_errors', 1); } else { // disable all error reporting diff --git a/wire/core/WireShutdown.php b/wire/core/WireShutdown.php index 9031ad6b..baea78e4 100644 --- a/wire/core/WireShutdown.php +++ b/wire/core/WireShutdown.php @@ -158,7 +158,7 @@ class WireShutdown extends Wire { E_USER_ERROR => $this->_('Error'), E_USER_WARNING => $this->_('User Warning'), E_USER_NOTICE => $this->_('User Notice'), - E_STRICT => $this->_('Strict Warning'), + 2048 => $this->_('Strict Warning'), // 2048=E_STRICT (deprecated in PHP 8.4) E_RECOVERABLE_ERROR => $this->_('Recoverable Fatal Error') ); diff --git a/wire/modules/Process/ProcessProfile/ProcessProfile.module b/wire/modules/Process/ProcessProfile/ProcessProfile.module index 1c8cda3d..12a13905 100644 --- a/wire/modules/Process/ProcessProfile/ProcessProfile.module +++ b/wire/modules/Process/ProcessProfile/ProcessProfile.module @@ -155,7 +155,7 @@ class ProcessProfile extends Process implements ConfigurableModule, WirePageEdit $field = $user->fields->getFieldContext($field); $inputfield = $field->getInputfield($user); if(!$inputfield) continue; - $inputfield->value = $user->get($field->name); + $inputfield->val($user->get($field->name)); if($field->name === 'admin_theme') { if(!$inputfield->value) $inputfield->value = $config->defaultAdminTheme;