From 51925bff7835c42adf00b6e46145755ded1c7dea Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Tue, 16 Sep 2025 20:17:42 -0400 Subject: [PATCH 1/2] Fix PHP errors if file doesn't exist my_parse_ini_file --- emhttp/plugins/dynamix/include/Wrappers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/include/Wrappers.php b/emhttp/plugins/dynamix/include/Wrappers.php index 8d446563b..c5092b52e 100644 --- a/emhttp/plugins/dynamix/include/Wrappers.php +++ b/emhttp/plugins/dynamix/include/Wrappers.php @@ -45,7 +45,7 @@ function my_parse_ini_string($text, $sections=false, $scanner=INI_SCANNER_NORMAL } function my_parse_ini_file($file, $sections=false, $scanner=INI_SCANNER_NORMAL) { - return my_parse_ini_string(file_get_contents($file),$sections,$scanner); + return my_parse_ini_string(@file_get_contents($file),$sections,$scanner); } function parse_plugin_cfg($plugin, $sections=false, $scanner=INI_SCANNER_NORMAL) { From 94425ec9611dece94d16dc6c061b0283ebfcac99 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Tue, 16 Sep 2025 20:25:28 -0400 Subject: [PATCH 2/2] Fix PHP error --- emhttp/plugins/dynamix.plugin.manager/scripts/plugin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix.plugin.manager/scripts/plugin b/emhttp/plugins/dynamix.plugin.manager/scripts/plugin index 24ed3a274..c816976f3 100755 --- a/emhttp/plugins/dynamix.plugin.manager/scripts/plugin +++ b/emhttp/plugins/dynamix.plugin.manager/scripts/plugin @@ -730,7 +730,7 @@ if ($method == 'check') { if ($installed_plugin_file === false) { write("plugin: not installed\n"); // run hook scripts for post processing - post_hooks($error); + post_hooks(1); done(1); } $installed_pluginURL = plugin('pluginURL', $installed_plugin_file, $error);