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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • "Do not have permission to write to file: /latest-version-cache.txt" error
Pages: [1]

Author Topic: "Do not have permission to write to file: /latest-version-cache.txt" error  (Read 2109 times)

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
"Do not have permission to write to file: /latest-version-cache.txt" error
May 31, 2012, 06:27:22 am
The subject says it all - I've seen two posts reporting this error, but neither seems to apply. I've cleared caches and rebuilt the templates_c directory, but the problem persists.

This is an installation on a site that uses Drupal Domain Access (see thread here: http://forum.civicrm.org/index.php/topic,24657) - I've rolled back to the original configuration for now, but the error message persists and none of the icons can be read - this is certainly a permissions issue.

Any ideas? Thanks much...
« Last Edit: May 31, 2012, 06:46:00 am by bcobin »

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: "Do not have permission to write to file: /latest-version-cache.txt" error
May 31, 2012, 07:13:40 am
I've just had the exact same thing. Take a look at rows 32 - 34 of your civicrm_setting table in the database. I bet that your paths there are messed up. On mine, instead of a path like /var/www/example.com/sites/default/civicrm/upload I was seeing http://example.com/varhttp://example.com/wwwhttp://example.com/example.comhttp://example.com/siteshttp://example.com/defaulthttp://example.com/civicrmhttp://example.com/uploadhttp://example.com/

I manually edited the three rows. But this wasn't enough. Ended up having to re-set Config_Backend

UPDATE civicrm_domain SET config_backend = null;
Graham Mitchell
http://mc3.coop

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: "Do not have permission to write to file: /latest-version-cache.txt" error
May 31, 2012, 07:41:24 am
Update. Even this didn't resolve the issue. As it was a fresh install with no live data I chose to re-install.
Graham Mitchell
http://mc3.coop

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: "Do not have permission to write to file: /latest-version-cache.txt" error
May 31, 2012, 08:06:46 am
Thank you, Upperholme - spot on.

Exact same experience; in my case, I ended up dropping the database and imported the SQL dump I had made beforehand. Back to normal.

I note that in the restored DB, the values for rows 32-34 are quite different; as I recall, the messed-up data was something like s:329:"[full repeated multiple paths concatenated as per your example]" whereas in the restored data the prefixes are s:7, s:19 and s:7 and the paths are relative. (When I tried to edit the DB directly, I used the absolute paths - I doubt it would have worked anyway.)

Have you been working with multi-site, or is this just a standard install? In my case, I'd say this is related to experimentation I was doing trying to get multi-site to work with Domain Access.

In any event, thanks for the tip and for the prompt response! I hope it serves to shed some light on the issue... good stuff!

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: "Do not have permission to write to file: /latest-version-cache.txt" error
May 31, 2012, 08:26:55 am
In my case it was a standard install, and I had just gone ahead and installed Domain Access, but then realised that I should have read all the docs first. So I uninstalled Domain Access, and it was at that point that it all went awry.

I'll treat Domain Access with more care in future.
Graham Mitchell
http://mc3.coop

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: "Do not have permission to write to file: /latest-version-cache.txt" error
May 31, 2012, 08:48:20 am
This is all super-useful - I think.

See thread here http://forum.civicrm.org/index.php/topic,24657.0.html if you haven't already as to progress on DA.

jamie

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 6
Re: "Do not have permission to write to file: /latest-version-cache.txt" error
August 03, 2012, 11:39:53 am
This problem should be fixed (for multisite installations) in 4.2: http://issues.civicrm.org/jira/browse/CRM-10626

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • "Do not have permission to write to file: /latest-version-cache.txt" error

This forum was archived on 2017-11-26.