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 »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • SOLVED: Cron - ERROR: Invalid username and/or password
Pages: 1 [2]

Author Topic: SOLVED: Cron - ERROR: Invalid username and/or password  (Read 3004 times)

eliot

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 3.9.1
  • MySQL version: 5.5.36-34.2-log
  • PHP version: 5.3.28
Re: Cron - ERROR: Invalid username and/or password
July 14, 2014, 05:27:01 am
no luck there :(

CiviCRM and this subdomain's Wordpress are in different databases, so that setting seems rather odd to me.

eliot

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Wordpress 3.9.1
  • MySQL version: 5.5.36-34.2-log
  • PHP version: 5.3.28
Re: Cron - ERROR: Invalid username and/or password
July 15, 2014, 12:02:25 am
SOLVED!!!

The issue is that the cmsRootPath() function inside of the CRM_Utils_System_WordPress class just does a little search from the root path up for the first Wordpress install it finds. That's why it found my other Wordpress install. However, if I define CIVICRM_CMSDIR in the civicrm.settings.php file, then it skips the search and uses my defined path for the bootstrap.

define('CIVICRM_CMSDIR', '/home/user/public_html/subdomain1.com/');

Here's the function: https://github.com/civicrm/civicrm-core/blob/master/CRM/Utils/System/WordPress.php#L521

I decided to open an issue on this. The function should really start at the script location and work backwards, not start at the root and work up. https://issues.civicrm.org/jira/browse/CRM-14987
« Last Edit: July 15, 2014, 12:42:35 am by eliot »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: SOLVED: Cron - ERROR: Invalid username and/or password
July 15, 2014, 03:36:55 am
Looks good. Thank you for your efforts. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

adamtk

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5.3
Re: SOLVED: Cron - ERROR: Invalid username and/or password
March 18, 2015, 02:57:24 am
Thank you kindly!

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • SOLVED: Cron - ERROR: Invalid username and/or password

This forum was archived on 2017-11-26.