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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • 4.4.3 Cron Job Fails: Invalid username and/or password
Pages: 1 [2] 3

Author Topic: 4.4.3 Cron Job Fails: Invalid username and/or password  (Read 9378 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 01, 2014, 03:54:06 am
did you check your error logs? a white screen will usually result in messages to the error log.
you could also increase the error setting in joomla global config, then visit the page again, as that should spit out more details to the screen (then lower it after getting the cause of the error).
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 03, 2014, 10:44:36 am
I'm having this exact issue, same versions of everything.

Quote from: globeseek on March 31, 2014, 09:09:54 pm
I am having the same issue -- I get the invalid Username / Password when I try using it at the URL level
when I replace the 3 files with with the 3 in the answer above - I get returned a blank screen and when I check the back end the jobs have not been run
Joomla! version, 3.2.3.  Powered by CiviCRM 4.4.4.

thoughts

Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 05, 2014, 06:06:31 pm
Having same problem in 4.4.4 Wordpress -- seems like a killer -- any help out there?

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 05, 2014, 08:31:10 pm
Many people are using 4.4.4 and have their cron jobs running successfully. 

This problem is not likely to be solved unless someone with the problem provides more information.

As lcdweb indicated error logs are a place to start.




Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 06, 2014, 05:37:40 am
Not sure the volume is that high in the Wordpress install category -- not sure how many use the cron capacity. 

But what log information would be most helpful?

Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 06, 2014, 05:52:07 am
As a follow on: 

1) There is nothing contemporaneous with the cron runs in the log files that  appear under /wp-content/plugins/files/civicrm/ConfigAndLog
2) Nothing but the same error appears when I turn on debugging and add &smartyDebug=1 to the html query string for the cron run.

/w.

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: 4.4.3 Cron Job Fails: Invalid username and/or password
April 06, 2014, 10:17:32 am

might be easier to add some debugging code to cron.php and see where it fails

not sure what version of WP you are running etc, but it might be related to that (just a random guess)

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

globeseek

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 06, 2014, 12:55:17 pm
Here is the error information from my joomla log after applying the patches for the 3 files for joomla
After applying the patch I now longer get the invalid Username and password prompt - just a white screen no results -- I am able to run the jobs manually

In Error log

[Sun Apr 06 15:33:36 2014] [warn] [client 209.242.145.27] mod_fcgid: stderr: PHP Fatal error:  Class 'JApplicationCms' not found in /mnt/data/vhosts/casite-582819.cloudaccess.net/httpdocs/libraries/joomla/factory.php on line 124

In Access Log

 [06/Apr/2014:15:33:36 -0400] "GET /administrator/components/com_civicrm/civicrm/bin/cron.php?name=cronxxx&pass=xxxxxxx&key=xxxxxxxxx HTTP/1.1" 500 20 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0"

Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 07, 2014, 07:00:21 am
I'm running the latest Wordpress -- 3.8.1.

Hard to think it's WP version related -- I don't think any WP code is being executed.  I tried this from CLI as well.  I'm guessing that the fixes that were applied in the Joomla environment for this need to be redone in the Wordpress version of Civi, but it's too deep for me.

I did put in some debugging code and moved it down a few layers in to called routines, but did not get to an obvious answer.

Hurts to do it, but I'm going to convert my mailing list to Mail Chimp.  There are a lot of collateral deliverability benefits to that.  I'll continue to use Civi for contract tracking.

All best.

/w.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 07, 2014, 07:38:15 am
@globeseek: try this patch --
https://github.com/civicrm/civicrm-core/pull/2833

I confirmed there were additional includes that needed to be referenced for Jooma 3.2.1+

@Will Brownsberger:
the issue in this thread was specific to Joomla. a couple minor revisions ago (in Joomla) they changed the password authentication mechanism. as a result, the CiviCRM code was no longer working. I would be surprised if the same thing coincidentally happened in the WordPress core. so I suspect something else is going on.

You should consider posting in the WordPress forum: https://forum.civicrm.org/index.php/board,64.0.html
This thread is in the Joomla forum, so you're less likely to get community help for your issue if it's WordPress-specific.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 07, 2014, 08:06:44 am
Sorry, gang.  This one was my mistake.  Suddenly dawned on me that I was using the database userid and password.  The query string is looking for an administrative user ID from wordpress.

That works fine!  Cron successful, jobs triggered, etc.  Sorry to raise a flag unnecessarily.

SO for the record:  With Wordpress 3.8.1, Civi 4.4.4, Cron job works as it should for me.

All best,

/w.

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 07, 2014, 08:38:50 am
NOTE: THIS FIX IS FOR WORDPRESS

Actually, someone posted a possible fix on another thread of mine, and it fixed the issue. YMMV.

https://forum.civicrm.org/index.php/topic,31950.msg138043.html#msg138043
« Last Edit: April 07, 2014, 03:48:53 pm by penguintrax »

globeseek

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 07, 2014, 02:47:14 pm
I tried it - and now not only do I have a white screen when I run the cron but civicrm is not reachable from the backend

Quote from: lcdweb on April 07, 2014, 07:38:15 am
@globeseek: try this patch --
https://github.com/civicrm/civicrm-core/pull/2833

I confirmed there were additional includes that needed to be referenced for Jooma 3.2.1+

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 07, 2014, 02:57:47 pm
if you run the cron from a url, a white screen is expected. there's no output to screen. did you check to see if crons were run? visit the job page and see if the timestamp for jobs were updated.

are you unable to access any civicrm pages?

you're running Joomla 3.2.3, correct?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

globeseek

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 08, 2014, 08:52:17 am
Actually with the change I can still view my CiviCrm backend - so that is fine
The cron is still not running --

just for fun on the URL line I change the site key and got the correct error that the site key was wrong ... 

are there some permissions I need to change... the cronuser has superuser privs

Here is the environment
Database Version    5.5.34-cll-lve
Database Collation    utf8_unicode_ci
PHP Version    5.3.25
Web Server    Apache
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 3.2.3 Stable [ Ember ] 6-March-2014 14:30 GMT
Joomla! Platform Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
« Last Edit: April 08, 2014, 11:26:58 am by globeseek »

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • 4.4.3 Cron Job Fails: Invalid username and/or password

This forum was archived on 2017-11-26.