Stephan Whelan
Member
Anyone got an answer or view on how to get this to run via some form of cron job (ideally via XF cron rather than CLI).
Inactive Members v2.2 changes:
1) Added option to run from Cron.
2) Added Option to exclude users. The latest topics that are included with the email can now exclude certain thread starters in addition to the other many options.
ThanksInactive Members v2.2 changes:
1) Added option to run from Cron.
Server Error
Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY xf_thread.view_count DESC LIMIT 25' at line 6
- Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
- Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
- Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
- Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 734
- Zend_Db_Adapter_Abstract->fetchAll() in Andy/InactiveMembers/ControllerPublic/InactiveMembers.php at line 229
- Andy_InactiveMembers_ControllerPublic_InactiveMembers->actionSendSample() in XenForo/FrontController.php at line 347
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
- XenForo_FrontController->run() in /var/www/vhosts/barfilounge.com/httpdocs/index.php at line 13
Server Error Log
Error Info
ErrorException: Fatal Error: Using $this when not in object context - library/Andy/InactiveMembers/CronEntry/InactiveMembers.php:26
Generated By: Unknown Account, Today at 09:13
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(41) "http://www.talkmountain.bike/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(3) {
["_xfRequestUri"] => string(16) "/gallery/?page=1"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Inactive Members v2.3 changes:
Corrected code in the library/InactiveMembers/CronEntry/InactiveMembers.php file.
Inactive members v2.4 changes:
Found coding error dealing with trying to exclude user groups. Removed option to exclude user groups.
Inactive Members v2.5 changes:
Updated code in library/Andy/InactiveMembers/CronEntry/InactiveMembers.php so that a server error log would not be produced after the Cron ran.
Zend_Mail_Protocol_Exception: Email to rallen@drynclean.com failed: Network is unreachable - library/Zend/Mail/Protocol/Abstract.php:277
Generated By: Unknown Account, 8 minutes ago
Stack Trace
#0 /home2/truckmount46/public_html/library/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.gmai...')
#1 /home2/truckmount46/public_html/library/Zend/Mail/Transport/Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
#2 /home2/truckmount46/public_html/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /home2/truckmount46/public_html/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /home2/truckmount46/public_html/library/XenForo/Model/MailQueue.php(71): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 /home2/truckmount46/public_html/library/XenForo/Deferred/MailQueue.php(10): XenForo_Model_MailQueue->runMailQueue(8)
#6 /home2/truckmount46/public_html/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_MailQueue->execute(Array, Array, 8, '')
#7 /home2/truckmount46/public_html/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 8, '', false)
#8 /home2/truckmount46/public_html/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#9 /home2/truckmount46/public_html/deferred.php(23): XenForo_Model_Deferred->run(false)
#10 {main}
Request State
array(3) {
["url"] => string(45) "https://www.sitehere.com/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(32) "/forums/vlm-op-encapsulation.81/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
Delete...Close
Yeah if there was an option in the settings to send it out every 30, 60, or 90 days would be good. That way we would not have to remember to send it out. With 12 forums to admin doing it manually is added work.
Suggestion: add as an option (not mandatory) automatism so it will go out every 30 or 60 days? Not every admin wants to have it automated. The time frame for the automatism shall be customizable (days, months, weeks)
We use essential cookies to make this site work, and optional cookies to enhance your experience.