From 503932e0c780cebcf8097b0bf3d69f696bc5abe0 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 9 Jan 2026 20:27:34 -0400 Subject: [PATCH] fix(master-trainer): Resolve 500 error on edit-trainer-profile page Changed menu system call from non-existent method to correct one: - HVAC_Menu_System::instance()->render_master_trainer_menu() + HVAC_Master_Menu_System::instance()->render_master_menu() Fixes fatal PHP error when accessing /master-trainer/edit-trainer-profile/ Co-Authored-By: Claude Opus 4.5 --- templates/page-master-trainer-profile-edit-simple.php | 4 ++-- templates/page-master-trainer-profile-edit.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/page-master-trainer-profile-edit-simple.php b/templates/page-master-trainer-profile-edit-simple.php index e5acbe8c..6cad4d66 100644 --- a/templates/page-master-trainer-profile-edit-simple.php +++ b/templates/page-master-trainer-profile-edit-simple.php @@ -62,8 +62,8 @@ $profile_meta = $profile_manager->get_profile_meta($profile->ID);
render_master_trainer_menu(); + if (class_exists('HVAC_Master_Menu_System')) { + HVAC_Master_Menu_System::instance()->render_master_menu(); } ?> diff --git a/templates/page-master-trainer-profile-edit.php b/templates/page-master-trainer-profile-edit.php index a0084663..97101787 100644 --- a/templates/page-master-trainer-profile-edit.php +++ b/templates/page-master-trainer-profile-edit.php @@ -77,8 +77,8 @@ if (class_exists('HVAC_Geocoding_Service')) {
render_master_trainer_menu(); + if (class_exists('HVAC_Master_Menu_System')) { + HVAC_Master_Menu_System::instance()->render_master_menu(); } ?>