CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • 403 error on cron run
Pages: [1]

Author Topic: 403 error on cron run  (Read 3036 times)

echoleaf

  • Guest
403 error on cron run
November 03, 2009, 08:09:32 am
I seem to have trouble with the cron job for Civimail.  I followed the instructions and set one up like so

Quote
wget 'http://<domain>/civicrm/bin/civimail.cronjob.php?name=<name>&pass=<pass>&key=<key>'

It's running since I'm getting emails every time it runs, but I am getting 403 errors.  The site key is the same in the config file (in /sites/default/) as it is in the cron job.  I realized that the first time that I used some characters unfriendly to urls and changed the site key, which is now just letters, numbers and a period.  I'm not sure how to troubleshoot this.

So far the only thing that works is going to http://<site>/index.php?q=civicrm/mailing/queue&reset=1, which I obviously don't want to do repeatedly or ask the client to do so.

Also, I assume that the number of emails sent at a time is a php setting?

echoleaf

  • Guest
Re: 403 error on cron run
November 04, 2009, 01:03:20 pm
Any suggestions?  I've already recommended to the client that perhaps they should hire someone better versed in Civi than myself.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 403 error on cron run
November 04, 2009, 01:05:28 pm

403 means 'file not found'. more an apache error than a civicrm error

shouldn't the url be:

wget 'http://<domain>/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=<name>&pass=<pass>&key=<key>'

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

echoleaf

  • Guest
Re: 403 error on cron run
November 04, 2009, 01:23:18 pm
You're right - I'm using it with Drupal.  I'm still getting a Page Not Found with the corrected url.  Then it must be an Apache error of some sort since the url is pointing correctly to civimail.cronjob.php.  I guess I need to edit .htaccess to allow access to the file?  Thanks very much for the help.

echoleaf

  • Guest
Re: 403 error on cron run
November 05, 2009, 06:25:14 am
Fixing the url results in a 404, but the file is definitely there.  Something in htaccess I should configure?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 403 error on cron run
November 05, 2009, 06:42:56 am

go down each directory of the url and put in a test php file and see where it works and does not work. that might help narrow it down

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

echoleaf

  • Guest
Re: 403 error on cron run
November 05, 2009, 08:07:06 am
Here are the results of trying to load test.php from each directory in the url:

OK: http://<domain>/test.php
OK: http://<domain>/sites/test.php
OK: http://<domain>/sites/all/test.php
OK: http://<domain>/sites/all/modules/test.php
NOT OK: http://<domain>/sites/all/modules/civicrm/test.php
NOT OK: http://<domain>/sites/all/modules/civicrm/bin/test.php

To test another module folder, I tried the cck folder:

OK: http://<domain>/sites/all/modules/cck/test.php

So it's something specific to the Civi module folder.  Now the .txt files in the /bin folder load fine, but none of the .php files seem to load.  Any thoughts?  There's a lot of info online on restricting stuff with htaccess, but not as much on allowing.  Thanks a lot for your help.

echoleaf

  • Guest
Re: 403 error on cron run
November 10, 2009, 07:10:34 am
I can't be the only Drupal user who's run into this - how can I resolve it?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 403 error on cron run
November 10, 2009, 08:09:22 am

you might want to consult someone locally who can take a look at files in those directories and figure out whats happening and why. I dont remember seeing/running into the below issues

please do post back your solution once you figure it out

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

echoleaf

  • Guest
Re: 403 error on cron run
November 12, 2009, 06:23:39 am
'Locally?'  I doubt that many people live next door to the server that their sites are hosted on.

echoleaf

  • Guest
Re: 403 error on cron run
November 12, 2009, 11:40:25 am
This makes the mail function unusable as it requires going to http://<domain>/?q=civicrm/mailing/queue&reset=1 manually repeatedly to complete mailings.  I'm not going to tell my client that they need to load a page repeatedly to send a mailing.

Now the problem is only in the Civicrm folder, as test.php can be loaded in another module folder (see test results above).  So it is a problem with Civicrm and the suggested scripts.  What can you do to help, beyond suggesting that someone 'local' take a look?

Honestly, the problem doesn't affect me very much, but it does affect the non-profit organization trying to combat domestic violence greatly.

echoleaf

  • Guest
Re: 403 error on cron run
November 17, 2009, 02:37:56 pm
This is nonsense - no one can think of why ONLY the civicrm folder is having this problem?  Adding this to the fact that Civi is clunky with more features than most organizations will ever use, I do wish I had built a custom site with Drupal for them instead.

If anyone wants to make some money by becoming the go-to person for this client, please send me a private message.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 403 error on cron run
November 17, 2009, 04:18:08 pm

It does work on our sites and quite a few other sites that folks are running. So its hard for us to guess/figure out what is happening on your site and why

everyone who helps on the forum is doing so voluntarily. Having a positive and good attitude in your posts makes it easier for other folks to help you.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

echoleaf

  • Guest
Re: 403 error on cron run
November 18, 2009, 04:34:47 am
I'm assuming it works elsewhere otherwise it wouldn't be in the wiki.  I just find it hard to believe that this is the first time this problem has appeared.  I'd like a recommendation on a Civi expert to take over as webmaster for this site.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 403 error on cron run
November 18, 2009, 06:10:13 am

check: http://civicrm.org/professional/

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • 403 error on cron run

This forum was archived on 2017-11-26.