2011-03-14, 08:53 PM
Heh, I found something,again error, this time in Admin login CP.
When I go to login in "Admin" i have fatal error, again (attach).
But, login is without problem. I go to checking functions and what I found. Go to change permission. Inside permission menu have fatal error (attach). And One more problem, and thath is same problem this time in functions file on line 238. I check this line (attach).
***************************************************
* Sends a specified amount of messages from the mail queue
*
* @param int The number of messages to send (Defaults to 10)
*/
function send_mail_queue($count=10)
{
global $db, $cache, $plugins;
$plugins->run_hooks("send_mail_queue_start");
// Check to see if the mail queue has messages needing to be sent
$mailcache = $cache->read("mailqueue");
if($mailcache['queue_size'] > 0 && ($mailcache['locked'] == 0 || $mailcache['locked'] < TIME_NOW-300))
{
// Lock the queue so no other messages can be sent whilst these are (for popular boards)
$cache->update_mailqueue(0, TIME_NOW);
// Fetch emails for this page view - and send them
$query = $db->simple_select("mailqueue", "*", "", array("order_by" => "mid", "order_dir" => "asc", "limit_start" => 0, "limit" => $count));
$plugins->run_hooks_by_ref("send_mail_queue_mail", $query);
while($email = $db->fetch_array($query))
{
// Delete the message from the queue
$db->delete_query("mailqueue", "mid='{$email['mid']}'");
my_mail($email['mailto'], $email['subject'], $email['message'], $email['mailfrom'], "", $email['headers']);
}
// Update the mailqueue cache and remove the lock
$cache->update_mailqueue(TIME_NOW, 0);
}
$plugins->run_hooks("send_mail_queue_end");
}
**********************************************
Where is the line 238:
$plugins->run_hooks("send_mail_queue_start");
**********************************************
And...some problem in Rebuild Forum Counters. When click on GO I have message: "Click "Proceed" to continue the recount and rebuild process" and "Automatically Redirecting", but nothing happening after loong time.
What is that? Effect is like some loop and loop again at the same point.
VIDEO (this video is temporary! only for detailed info whats happening in realtime)
When I go to login in "Admin" i have fatal error, again (attach).
But, login is without problem. I go to checking functions and what I found. Go to change permission. Inside permission menu have fatal error (attach). And One more problem, and thath is same problem this time in functions file on line 238. I check this line (attach).
***************************************************
* Sends a specified amount of messages from the mail queue
*
* @param int The number of messages to send (Defaults to 10)
*/
function send_mail_queue($count=10)
{
global $db, $cache, $plugins;
$plugins->run_hooks("send_mail_queue_start");
// Check to see if the mail queue has messages needing to be sent
$mailcache = $cache->read("mailqueue");
if($mailcache['queue_size'] > 0 && ($mailcache['locked'] == 0 || $mailcache['locked'] < TIME_NOW-300))
{
// Lock the queue so no other messages can be sent whilst these are (for popular boards)
$cache->update_mailqueue(0, TIME_NOW);
// Fetch emails for this page view - and send them
$query = $db->simple_select("mailqueue", "*", "", array("order_by" => "mid", "order_dir" => "asc", "limit_start" => 0, "limit" => $count));
$plugins->run_hooks_by_ref("send_mail_queue_mail", $query);
while($email = $db->fetch_array($query))
{
// Delete the message from the queue
$db->delete_query("mailqueue", "mid='{$email['mid']}'");
my_mail($email['mailto'], $email['subject'], $email['message'], $email['mailfrom'], "", $email['headers']);
}
// Update the mailqueue cache and remove the lock
$cache->update_mailqueue(TIME_NOW, 0);
}
$plugins->run_hooks("send_mail_queue_end");
}
**********************************************
Where is the line 238:
$plugins->run_hooks("send_mail_queue_start");
**********************************************
And...some problem in Rebuild Forum Counters. When click on GO I have message: "Click "Proceed" to continue the recount and rebuild process" and "Automatically Redirecting", but nothing happening after loong time.
What is that? Effect is like some loop and loop again at the same point.
VIDEO (this video is temporary! only for detailed info whats happening in realtime)