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) »
  • ERROR: Invalid username and/or password (although both are valid)
Pages: [1]

Author Topic: ERROR: Invalid username and/or password (although both are valid)  (Read 1988 times)

mvcom

  • Guest
ERROR: Invalid username and/or password (although both are valid)
May 04, 2009, 02:51:30 am
We recently moved our site from a shared to a dedicated hosting. This changed our IP and root document location from "/home/saveti/public_html" to  "/home2/saveti/public_html". Unfortunately it also caused our CiviMail to stop working, as every time we run the cron job

http://www.server.com/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=username\&pass=password\&key=key

we get the following error:

ERROR: Invalid username and/or password

We updated the setting in CiviCRM to update the new root document location, but nothing else was changed. And the username and password that are sent are correct.

Any ideas/suggestions on how to resolve this would be appreciated!

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: ERROR: Invalid username and/or password (although both are valid)
May 04, 2009, 03:42:13 am
hi,
please check the civicrm.settings.php in ( JOOMLA/components/com_civicrm AND JOOMLA/administrator/components/com_civicrm)

$civicrm_root, CIVICRM_TEMPLATE_COMPILEDIR, CIVICRM_UF_BASEURL are correctly configured.

and
remove the directory en_US under JOOMLA/media/civicrm/templates_c/

HTH

sunil
The community around a product more important than the product itself?

mvcom

  • Guest
Re: ERROR: Invalid username and/or password (although both are valid)
May 04, 2009, 04:40:19 am
Thanks for your assistance.

I've cleared the en_US folder and checked both files (everything is set up correctly), yet the problem persists. Please note that only $civicrm_root and CIVICRM_TEMPLATE_COMPILEDIR are non commented out in the two files.

mvcom

  • Guest
Re: ERROR: Invalid username and/or password (although both are valid)
May 04, 2009, 04:49:01 am
Also this came from our hosting provider today, so it might be of some assistance:

I unsuspended your account on the shared server temporarily for testing, but even after doing so the URL you provided still results in, "ERROR: Invalid username and/or password".

As the problem is validating login information, you may want to double check all of the settings that are being used. For example, if you are connecting to a MySQL database, please make sure that you are connecting the the appropriate server. If you are, you may want to browse the database and ensure the correct name, pass, and key are still there. You may also want to modify the cronjob.php file to output debugging information as the custom error, "Invalid username and/or password", is hard to troubleshoot from our end as we did not design your website.

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: ERROR: Invalid username and/or password (although both are valid)
May 04, 2009, 07:12:48 am

do ensure that you followed the steps here:

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

double check that you have followed step 4

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

mvcom

  • Guest
Re: ERROR: Invalid username and/or password (although both are valid)
May 05, 2009, 03:14:38 am
Thanks. No 4. was missing from my list. This didn't fully resolve it though. I needed to remove the / character from the URL as well.

http://www.server.com/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=username\&pass=password\&key=key

to

http://www.server.com/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=username&pass=password&key=key

Thanks all for your help! I really like and appreciate the speed and effort you guys put into helping people out here!  ;)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • ERROR: Invalid username and/or password (although both are valid)

This forum was archived on 2017-11-26.