Toll Free: 1 (888) 979-9321
Locally: 1 (561) 841-1832
 
Monday 10AM - 6PM
Tuesday 10AM - 6PM
Wednesday 10AM - 6PM
Thursday 10AM - 6PM
Friday 10AM - 6PM
Saturday Premium Support Only
Sunday Premium Support Only
*All times are Eastern Time.
Knowledgebase: Analytic Call Tracking
Failed to open stream: No such file or directory (.htaccess) - On Godaddy Hosting.
Posted by on 03 May 2013 03:48 PM

 

If you have godaddy and you're getting the following message:

 

Warning: file_put_contents(/var/chroot/home/content/55/xxx6655/html/x/api/.htaccess) [function.file-put-contents]: failed to open stream: No such file or directory in/home/content/55/xxx6655/html/x/calltrack/include/util.php(3) : eval()'d code on line 51

Warning: Cannot modify header information - headers already sent by (output started at /home/content/55/xxx6655/html/x/calltrack/include/util.php(3) : eval()'d code:51) in/home/content/55/xxx6655/html/x/calltrack/index.php(3) : eval()'d code on line 54

 

You're getting this issue because of a permission issue with godaddy.

To solve this, create a '.htaccess' file in your /api/ folder of ACT, and put in:

 

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  Options +Indexes
  RewriteEngine on

  # if your app is in a subfolder
  RewriteBase /api/

  # test string is a valid files
  RewriteCond %{SCRIPT_FILENAME} !-f
  # test string is a valid directory
  RewriteCond %{SCRIPT_FILENAME} !-d

  RewriteRule ^(.*)$   index.php?uri=/$1    [NC,L,QSA]
  # with QSA flag (query string append),
  # forces the rewrite engine to append a query string part of the
  # substitution string to the existing string, instead of replacing it.
</IfModule>

If you use ACT in a sub-folder eg. ( www.yourdomain.com/calltrack ) Then you need to use a different one. Please use:
<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  Options +Indexes
  RewriteEngine on

  # if your app is in a subfolder
  RewriteBase /calltrack/api/

  # test string is a valid files
  RewriteCond %{SCRIPT_FILENAME} !-f
  # test string is a valid directory
  RewriteCond %{SCRIPT_FILENAME} !-d

  RewriteRule ^(.*)$   index.php?uri=/$1    [NC,L,QSA]
  # with QSA flag (query string append),
  # forces the rewrite engine to append a query string part of the
  # substitution string to the existing string, instead of replacing it.
</IfModule>

 

Replace 'calltrack' to your sub-folder.

 

If you're having problems with this or need assistance, please submit a ticket.

(0 vote(s))
Helpful
Not helpful

Comments (0)