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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • file related warnings
Pages: [1]

Author Topic: file related warnings  (Read 1458 times)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
file related warnings
January 17, 2012, 05:15:04 pm
After upgrading my D6 sandbox to 4.1b2, I get this on most admin pages:
    warning: fopen(/home/coleman/Websites/playpen.dev/sites/default/files/civicrm/upload/latest-version-cache.txt): failed to open stream: Permission denied in /home/coleman/Websites/playpen.dev/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php on line 169.
    warning: fwrite() expects parameter 1 to be resource, boolean given in /home/coleman/Websites/playpen.dev/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php on line 170.
    warning: fclose() expects parameter 1 to be resource, boolean given in /home/coleman/Websites/playpen.dev/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php on line 171.

Try asking your question on the new CiviCRM help site.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: file related warnings
January 17, 2012, 05:21:03 pm
One more. When saving a contact:
warning: preg_replace(): Unknown modifier '/' in /home/coleman/Websites/playpen.dev/sites/all/modules/civicrm/CRM/Utils/Address.php on line 208.
Try asking your question on the new CiviCRM help site.

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: file related warnings
January 17, 2012, 05:51:58 pm

The first set of errors is due to some permission related issues. Civi does not seem to have write permission to:

/home/coleman/Websites/playpen.dev/sites/default/files/civicrm/upload/latest-version-cache.txt

not sure why, but we now trap that error and display in the status window as needed

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

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: file related warnings
January 17, 2012, 05:56:01 pm
Quote from: colemanw on January 17, 2012, 05:21:03 pm
warning: preg_replace(): Unknown modifier '/' in /home/coleman/Websites/playpen.dev/sites/all/modules/civicrm/CRM/Utils/Address.php on line 208.

can you debug this and fnd out whats happening. If i had to guess $token has a '/' and hence the warning. Maybe we should use:

$token = addslashes( $token );

before the regex

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • file related warnings

This forum was archived on 2017-11-26.