Answers.Body: <p>The problem was the single quotes around the path to cron.php, once I removed them it worked.  Also usr/bin/wget was incorrect, just needs wget. Here's the working crontab entry with output redirected for debugging.
  <br><br>
  wget -O - -q -t 1 <a href="http://example.org.uk/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=Cronjob%5C&amp;pass=xxxxx%5C&amp;key=2c3b60639d70ba87f61e819cb2cd0e67" rel="nofollow noreferrer">http://example.org.uk/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=Cronjob\&amp;pass=xxxxx\&amp;key=2c3b60639d70ba87f61e819cb2cd0e67</a> &gt; /home/example/www/wp-content/uploads/civicrm/ConfigAndLog/cronerrors.txt 2&gt;&amp;1</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-16T13:21:43.580Z
Answers.LastActivityDate: 2020-08-16T13:21:43.580Z
Answers.UserDisplayName: Andy Clark
Body: <p>I'm trying to set up cron in Wordpress (&amp; I'm only familiar with Drupal). I have the following set up in cron which doesn't work, and when I paste the url into a browser I get 'ERROR: invalid username and/or password'. Yet the user (Cronjob) is in WP and I can logon to WP using the password, and has the required permissions set for CiviCRM.
  <br>
  usr/bin/wget -O - -q -t 1 'http://example.org.uk/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=Cronjob&amp;pass=xxxxxxxx&amp;key=2c3b60639d70ba87f61e819cb2cd0e67'</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-08-16T11:16:33.643Z
Comments.Text: Just a thought but in /wp-content/plugins/civicrm/civicrm/bin/cron.php, do you have the owner permissions set to execute (744).  By default, I think they are set to 644.
Comments.UserDisplayName: peterb
Tags: <wordpress><cron>
Title: Why am I getting problems with username & password for WP cron?
ThreadText: # Why am I getting problems with username & password for WP cron?
  
  (Asked by: username_0 on 2020-08-14)
  
  I'm trying to set up cron in Wordpress (& I'm only familiar with Drupal). I have the following set up in cron which doesn't work, and when I paste the url into a browser I get 'ERROR: invalid username and/or password'. Yet the user (Cronjob) is in WP and I can logon to WP using the password, and has the required permissions set for CiviCRM.
    
  usr/bin/wget -O - -q -t 1 'http://example.org.uk/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=Cronjob&pass=xxxxxxxx&key=2c3b60639d70ba87f61e819cb2cd0e67'
  
  **Tags:** wordpress, cron
  
  > **Comments:**
  > **username_1**: Just a thought but in /wp-content/plugins/civicrm/civicrm/bin/cron.php, do you have the owner permissions set to execute (744).  By default, I think they are set to 644.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-08-16. Score: 2 | Accepted answer
  
  The problem was the single quotes around the path to cron.php, once I removed them it worked. Also usr/bin/wget was incorrect, just needs wget. Here's the working crontab entry with output redirected for debugging.
    
    
  wget -O - -q -t 1 [http://example.org.uk/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=Cronjob\&pass=xxxxx\&key=2c3b60639d70ba87f61e819cb2cd0e67](http://example.org.uk/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=Cronjob%5C&pass=xxxxx%5C&key=2c3b60639d70ba87f61e819cb2cd0e67) > /home/example/www/wp-content/uploads/civicrm/ConfigAndLog/cronerrors.txt 2>&1
  
  
  ---
  
  