Zen Follower
- Join Date:
- Mar 2006
- Location:
- Auckland, New Zealand
- Posts:
- 242
- Plugin Contributions:
- 0
Cannot redeclare zen_random_select() - applying Security Patch released 04-April
It's crashed my website guys.
This page isn’t working right nowamoraromatherapy.com can't currently handle this request.
HTTP ERROR 500
My report came up as 0 spam.
When I deleted the spam_cleanup_check.php file I also lost my admin area. by reinstating it, I got that back, however I still have no site...
My log file error message is "[05-Apr-2024 11:54:04 Pacific/Auckland] PHP Fatal error: Cannot redeclare zen_random_select() (previously declared in /home/amoraromatherapy/public_html/includes/functions/functions_general.php:778) in /home/amoraromatherapy/public_html/includes/functions/database.php on line 190"
/** @deprecated
-
Return a random row from a database query
*/
function zen_random_select($query) {
trigger_error('Call to deprecated function zen_random_select. Use $db->ExecuteRandomMulti() instead', E_USER_DEPRECATED);global $db;
$random_query = $db->Execute($query);
$num_rows = $random_query->RecordCount();
if ($num_rows > 1) {
$random_row = zen_rand(0, ($num_rows - 1));
$random_query->Move($random_row);
}
return $random_query;
Elemi
The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz