Answers.Body: <p>I've experienced something similar on a few sites and it turns out the file/directory permissions are not set right. I'm not sure what causes it, but I have found that I need to recursively reset permissions after updating CiviCRM, or the tracking doesn't work, click through links don't work, you can't upload images from CiviMail, etc.</p>
  
  <p>From just outside the <code>civicrm</code> directory, I do this and it seems to solve it:</p>
  
  <pre><code>find civicrm -type d -exec chmod 755 {} ";"
  
  find civicrm -type f -exec chmod 644 {} ";"
  </code></pre>
  
  <p>The first one changes permissions on directories and the second on files. You want to avoid having anything set to <code>777</code> for sure.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-28T19:31:19.470Z
Answers.Text: I am thrilled. Changing those permissions not only solved the tracking issue instantly, but also fixed some other annoying little issues i had been noticing.  Thank you very much.
Answers.UserDisplayName: fdarn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-21T07:27:15.127Z
Answers.Text: @laryn-cedc-org Thank you for this hopeful instruction. Could you explain exactly where in the file structure "From just outside the civicrm directory" is?
Answers.UserDisplayName: Edward Peters
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-21T21:30:18.973Z
Answers.Text: When you upgrade civicrm, you have to replace the entire `civicrm` directory with the upgraded files. If you are one step above that directory (e.g. on Backdrop CiviCRM core files are at `[website]/modules/civicrm`. In that case you'd be in the `[website]/modules/` directory to run these commands.) Does that help?
Answers.UserDisplayName: Laryn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-18T19:43:53.433Z
Answers.Text: I'll take a look at this suggested fix, given that I've just noticed that on one of my sites trackable links have just started generating 404 errors, although I'm sure everything was fine as recently as 2 months ago. now on Civi version 5.31
Answers.UserDisplayName: Graham
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-28T17:48:27.607Z
Answers.LastActivityDate: 2018-02-28T17:48:27.607Z
Answers.UserDisplayName: Laryn
Body: <p>I am using civi 4.7.29 on Wordpress 4.9.4</p>
  
  <p>I noticed that civimail reports is not tracking the email opens after multiple sends.  It is just showing "0". In the screen shot, you can see where it is showing click-throughs but not opens.
  <a href="https://i.sstatic.net/nlCq9.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nlCq9.jpg" alt="enter image description here"></a></p>
  
  <p>The checkboxes for tracking opens and click-through are set.<br>
  <a href="https://i.sstatic.net/AFlTT.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/AFlTT.jpg" alt="enter image description here"></a></p>
  
  <p>In the email source, I found this URL  <a href="https://mysite.org/wp-content/plugins/civicrm/civicrm/extern/open.php?q=66" rel="nofollow noreferrer">https://mysite.org/wp-content/plugins/civicrm/civicrm/extern/open.php?q=66</a></p>
  
  <p>That URL takes me to 404 Error Page.  </p>
  
  <p>The permission are: </p>
  
  <p>open.php 755</p>
  
  <p>civicrm/civicrm/extern/ 777</p>
  
  <p>civicrm/civicrm/ 755</p>
  
  <p>civicrm/  755</p>
  
  <p>Does anything look wrong here?
  Thank you. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-27T09:52:20.143Z
Comments.Text: Looks like cms is blocking you. Check wp permissions for mailing
Comments.UserDisplayName: Marko
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-27T16:46:28.347Z
Comments.Text: Where do you check wp permissions for mailing?
Comments.UserDisplayName: fdarn
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-27T23:39:48.910Z
Comments.Text: I have no clue try somewhere like Administer > Users and Permissions > Permissions > Access Control
Comments.UserDisplayName: Marko
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-28T04:35:11.287Z
Comments.Text: I am not seeing any permissions that appear to be related to this in there.  Did you have to check permissions for your install?
Comments.UserDisplayName: fdarn
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-28T09:22:09.437Z
Comments.Text: I don't have a wp installation so I am unable to check. Basically what I think is happening with your installation is that CMS in your case wp is blocking access to that open.php, try looking at your htaccess and find the rule which is preventing the php file from being read.
Comments.UserDisplayName: Marko
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-28T16:11:33.433Z
Comments.Text: this is all that is in my htaccess: # BEGIN WordPress
  <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  </IfModule>
  
  # END WordPress
Comments.UserDisplayName: fdarn
Tags: <civimail><civireport><tracked-links>
Title: CiviMail Reports is not tracking email opens
ThreadText: # CiviMail Reports is not tracking email opens
  
  (Asked by: username_0 on 2018-02-25)
  
  I am using civi 4.7.29 on Wordpress 4.9.4
  
  I noticed that civimail reports is not tracking the email opens after multiple sends. It is just showing "0". In the screen shot, you can see where it is showing click-throughs but not opens.
  [![enter image description here](https://i.sstatic.net/nlCq9.jpg)](https://i.sstatic.net/nlCq9.jpg)
  
  The checkboxes for tracking opens and click-through are set.  
  [![enter image description here](https://i.sstatic.net/AFlTT.jpg)](https://i.sstatic.net/AFlTT.jpg)
  
  In the email source, I found this URL <https://mysite.org/wp-content/plugins/civicrm/civicrm/extern/open.php?q=66>
  
  That URL takes me to 404 Error Page.
  
  The permission are:
  
  open.php 755
  
  civicrm/civicrm/extern/ 777
  
  civicrm/civicrm/ 755
  
  civicrm/ 755
  
  Does anything look wrong here?
  Thank you.
  
  **Tags:** civimail, civireport, tracked-links
  
  > **Comments:**
  > **username_1**: Looks like cms is blocking you. Check wp permissions for mailing  
  > **username_0**: Where do you check wp permissions for mailing?  
  > **username_1**: I have no clue try somewhere like Administer > Users and Permissions > Permissions > Access Control  
  > **username_0**: I am not seeing any permissions that appear to be related to this in there.  Did you have to check permissions for your install?  
  > **username_1**: I don't have a wp installation so I am unable to check. Basically what I think is happening with your installation is that CMS in your case wp is blocking access to that open.php, try looking at your htaccess and find the rule which is preventing the php file from being read.  
  > **username_0**: this is all that is in my htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>  # END WordPress  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-02-28. Score: 4 | Accepted answer
  
  I've experienced something similar on a few sites and it turns out the file/directory permissions are not set right. I'm not sure what causes it, but I have found that I need to recursively reset permissions after updating CiviCRM, or the tracking doesn't work, click through links don't work, you can't upload images from CiviMail, etc.
  
  From just outside the `civicrm` directory, I do this and it seems to solve it:
  
  ```
  find civicrm -type d -exec chmod 755 {} ";"
  
  find civicrm -type f -exec chmod 644 {} ";"
  
  ```
  
  The first one changes permissions on directories and the second on files. You want to avoid having anything set to `777` for sure.
  
  > **Comments:**
  > **username_0**: I am thrilled. Changing those permissions not only solved the tracking issue instantly, but also fixed some other annoying little issues i had been noticing.  Thank you very much.  
  > **username_3**: @username_2-cedc-org Thank you for this hopeful instruction. Could you explain exactly where in the file structure "From just outside the civicrm directory" is?  
  > **username_2**: When you upgrade civicrm, you have to replace the entire `civicrm` directory with the upgraded files. If you are one step above that directory (e.g. on Backdrop CiviCRM core files are at `[website]/modules/civicrm`. In that case you'd be in the `[website]/modules/` directory to run these commands.) Does that help?  
  > **username_4**: I'll take a look at this suggested fix, given that I've just noticed that on one of my sites trackable links have just started generating 404 errors, although I'm sure everything was fine as recently as 2 months ago. now on Civi version 5.31  
  
  ---
  
  