From dbc738d9038a5a4f914a1f1636bd86de4c2cf1aa Mon Sep 17 00:00:00 2001 From: Damien Wilson Date: Wed, 20 Nov 2024 10:36:59 +0000 Subject: [PATCH] Fix 500 error (#787) Comment out hooks --- public/app/themes/clarity/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/themes/clarity/functions.php b/public/app/themes/clarity/functions.php index 724752ad3..a970cb05b 100644 --- a/public/app/themes/clarity/functions.php +++ b/public/app/themes/clarity/functions.php @@ -131,7 +131,7 @@ */ // Log on document_serve -add_action('document_serve', function ($file, $post_id, $attach_id) { +/*add_action('document_serve', function ($file, $post_id, $attach_id) { error_log('CDPT_Debug: document_serve: ' . $file . ' ' . $post_id . ' ' . $attach_id); }, 10, 3); @@ -148,7 +148,7 @@ // Log on document saved add_action('document_saved', function ($doc_id, $attach_id) { error_log('CDPT_Debug: document_saved: ' . $doc_id . ' ' . $attach_id); -}, 10, 2); +}, 10, 2);*/ // Log on attachment upload add_action('add_attachment', function ($attach_id) {