Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.3.8, 4.4.3
-
Fix Version/s: 4.6
-
Component/s: CiviReport, WordPress Integration
-
Labels:None
-
Documentation Required?:None
Description
The 'specific job' URL method as described here: http://wiki.civicrm.org/confluence/display/CRMDOC41/Managing+Scheduled+Jobs doesn't appear to be working on wordpress.
Example: http://site.org/wp-content/plugins/civicrm/civicrm/bin/cron.php?job=mail_report&instanceId=37&format=print&name=admin&pass=xxxxxxxx&key=xxxxxxxx returns an error.
This user/pass/key combo is an "administrator" role and works for the "cleanup" and "process_membership" scheduled jobs. This bug appears to affect only the "mail_report" scheduled job.
Jan 21 21:45:17 [info] $Fatal Error Details = Array
(
[message] => You do not have permission to access this page
[code] =>
)
Jan 21 21:45:17 [info] $backTrace = #0 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(271): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php(398): CRM_Core_Error::fatal("You do not have permission to access this page")
#2 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php(220): CRM_Utils_System_WordPress->permissionDenied()
#3 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Report/Form.php(330): CRM_Utils_System::permissionDenied()
#4 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Report/Form.php(409): CRM_Report_Form->preProcessCommon()
#5 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(336): CRM_Report_Form->preProcess()
#6 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(93): CRM_Core_Form->buildForm()
#7 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Report_Form_Activity), "display")
#8 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Report_Form_Activity), "display")
#9 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(316): HTML_QuickForm_Page->handle("display")
#10 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/Wrapper.php(117): CRM_Core_Controller->run()
#11 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Report/Utils/Report.php(372): CRM_Utils_Wrapper->run("CRM_Report_Form_Activity", NULL, (Array:2))
#12 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/api/v3/Job.php(234): CRM_Report_Utils_Report::processReport((Array:4))
#13 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/api/api.php(75): civicrm_api3_job_mail_report((Array:4))
#14 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/JobManager.php(132): civicrm_api("Job", "mail_report", (Array:4))
#15 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/JobManager.php(106): CRM_Core_JobManager->executeJob(Object(CRM_Core_ScheduledJob))
#16 /home/readingresults/www/www/wp-content/plugins/civicrm/civicrm/bin/cron.php(53): CRM_Core_JobManager->executeJobByAction("job", "mail_report")
#17