bear Posted January 26, 2023 Share Posted January 26, 2023 (edited) It's a hook someone posted here on this board. It allows us to see if anything was unexpectedly blocked. This is likely it: Edited January 26, 2023 by bear 1 Quote Link to comment Share on other sites More sharing options...
Ramouz Posted January 26, 2023 Share Posted January 26, 2023 54 minutes ago, bear said: It's a hook someone posted here on this board. It allows us to see if anything was unexpectedly blocked. This is likely it: Thanks! Great tool. I installed it and I only see entries from 15 days ago, not related to this. Even with the keywords, Eric still manages to spam us. Very, very strange. 0 Quote Link to comment Share on other sites More sharing options...
Ramouz Posted January 26, 2023 Share Posted January 26, 2023 @DennisHermannsen - Hmm, found a bug in WHMCS 7.9.x - when I create a ticket for a customer and submit, I get an error page and the ticket isn't submitted. Once I disable this hook, it works. But, in WHMCS 8.4.1, it works fine. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 26, 2023 Share Posted January 26, 2023 I've only checked it with the latest version of WHMCS. I don't have any installations running WHMCS 7. If you're able to provide me with more details about the error (like the error message), I might be able to fix it. 0 Quote Link to comment Share on other sites More sharing options...
Ramouz Posted January 26, 2023 Share Posted January 26, 2023 35 minutes ago, DennisHermannsen said: I've only checked it with the latest version of WHMCS. I don't have any installations running WHMCS 7. If you're able to provide me with more details about the error (like the error message), I might be able to fix it. I appreciate your help! Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. Error: Call to a member function toArray() on array in /home/x/public_html/includes/hooks/block-ticket-spam.php:11 Stack trace: #0 /home/x/public_html/includes/hookfunctions.php(0): WHMCS\Utility\SafeInclude::{closure}(Array) #1 /home/x/public_html/customadminfolder/supporttickets.php(0): run_hook('TicketOpenValid...', Array) #2 {main} 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 27, 2023 Share Posted January 27, 2023 What happens if you remove ->toArray() from the script? 1 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted January 27, 2023 Share Posted January 27, 2023 22 hours ago, Ramouz said: I appreciate your help! Oops! Something went wrong and we couldn't process your request. Please go back to the previous page and try again. Error: Call to a member function toArray() on array in /home/x/public_html/includes/hooks/block-ticket-spam.php:11 Stack trace: #0 /home/x/public_html/includes/hookfunctions.php(0): WHMCS\Utility\SafeInclude::{closure}(Array) #1 /home/x/public_html/customadminfolder/supporttickets.php(0): run_hook('TicketOpenValid...', Array) #2 {main} pluck() is already an array. 0 Quote Link to comment Share on other sites More sharing options...
Ramouz Posted January 30, 2023 Share Posted January 30, 2023 On 1/27/2023 at 7:09 AM, DennisHermannsen said: What happens if you remove ->toArray() from the script? Thank you very much! That worked for WHMCS 7.x. Have a great day! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.