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) »
  • Import file permissions error
Pages: [1]

Author Topic: Import file permissions error  (Read 5409 times)

afsladmin

  • Guest
Import file permissions error
September 06, 2007, 02:50:26 pm
I recently installed (manually) civicrm version 1.8.beta.10790 Drupal PHP5

When using the file import function, on the upload data (step 1 of 4) page, after specifying the file and clicking on the continue button, a blank page is displayed, with the error message:

Error: missing ; before statement
Source File: http://www.afsl.org.uk/new/sites/all/modules/civicrm/js/lang/calendar-lang.php
Line: 1, Column: 2
Source Code:
A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.

I have tried various combinations of permissions on the lang folder and on the calendar-lang.php file (Eg 777 and 777, 777 and 555, 777 and 644, 755 and 644, 555 and 644 etc.) but still get the same error.

Do you have any suggestions?

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: Import file permissions error
September 06, 2007, 03:10:42 pm

1. Might be worth upgrading to the latest version (no db schema changes, only code changes)

2. I assume other parts of civicrm are working fine? Does creating/editing a contact work? (since that also call calendar-lang.php)

3. Can u check the 'upload' url setting at:

q=civicrm/admin/setting/path&reset=1

and ensure the right permissions on that directory.

4. what web server are u using?

thanx

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

afsladmin

  • Guest
Re: Import file permissions error
September 09, 2007, 03:56:23 am
Thanks for the suggestions lobo.  I haven't tried upgrading to the latest version yet.  Re the others:

2. Most other parts of CiviCRM seem to be working OK, but there are some errors, all of which so far produce the same error message as the one I have described.  I have been able to create contacts and edit them, but in some circumstances I get the error Eg after searching for a contact and clicking the edit link on their record.  What is actually displayed on the screen varies - sometimes the screen is totally blank, at other times it does display part of a form.  I also get the error message when attempting to send a mailing using CiviMail - after clicking on the "next" button at the foot of the upload message (step 2 of 5) page, a blank page is produced.

I suspect that this error is occurring at various points in using CiviCRM, but the effects differ depending on the context.

In addition to the error message there are various warning messages, Eg:

Warning: Error in parsing value for property 'cursor'.  Declaration dropped.
Source File: http://www.afsl.org.uk/new/sites/all/modules/civicrm/css/civicrm.css
Line: 779

Warning: Error in parsing value for property 'cursor'.  Declaration dropped.
Source File: http://www.afsl.org.uk/new/sites/all/modules/civicrm/css/civicrm.css
Line: 806

Warning: Selector expected.  Ruleset ignored due to bad selector.
Source File: http://www.afsl.org.uk/new/modules/calendar/calendar.css
Line: 56

Warning: Unknown property 'filter'.  Declaration dropped.
Source File: http://www.afsl.org.uk/new/modules/cck/content.css
Line: 10

Warning: Error in parsing value for property 'display'.  Declaration dropped.
Source File: http://www.afsl.org.uk/new/modules/date/date.css
Line: 19

Warning: Error in parsing value for property 'display'.  Declaration dropped.
Source File: http://www.afsl.org.uk/new/modules/system/defaults.css
Line: 43

Warning: Error in parsing value for property 'font-weight'.  Declaration dropped.
Source File: http://www.afsl.org.uk/new/sites/all/modules/civicrm/css/skins/aqua/theme.css
Line: 12


3. The permissions on the upload directories are all currently set at 755 - is this OK?  Copies of the csv files I was uploading as part of the import process are there and appear to have the correct contents.

4. Web server - I'm not sure what information you want (I have very little knowledge of how servers operate).  I can supply a (long) list of Perl and PHP5 modules that are installed on the server.  Would this be useful?  The server runs on Redhat Enterprise Linux

Thanks

Alan

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: Import file permissions error
September 09, 2007, 12:18:00 pm

Most of those warnings / errors look like "firebug" warnings. so not very useful in the current state

Your best bet is to check the apache error log when you get an error. Most likely it will tell us what is going wrong. You might want to contact your sys admin / hosting provider to find out where this log is stored

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

afsladmin

  • Guest
Re: Import file permissions error
September 12, 2007, 10:54:04 am
The error log is as follows:

afsl.org.uk 62.69.34.170 - - [12/Sep/2007:18:43:35 +0100] "GET /new/civicrm/import?reset=1 HTTP/1.1" 200 14941 "http://www.afsl.org.uk/new/civicrm/dashboard?reset=1" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
afsl.org.uk 62.69.34.170 - - [12/Sep/2007:18:44:06 +0100] "POST /new/civicrm/import HTTP/1.1" 302 - "http://www.afsl.org.uk/new/civicrm/import?reset=1" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
afsl.org.uk 62.69.34.170 - - [12/Sep/2007:18:44:08 +0100] "GET /new/civicrm/import?_qf_MapField_display=true&qfKey=56d352c063054da2215f75e3dd5607db HTTP/1.1" 500 - "http://www.afsl.org.uk/new/civicrm/import?reset=1" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"

I can't see anything here ... does it suggest anything to you?

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: Import file permissions error
September 12, 2007, 11:55:39 am

Thats the access log. anything in the error log?

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

afsladmin

  • Guest
Re: Import file permissions error
September 12, 2007, 11:59:48 pm
Sorry about that.  Here's the error log:

afsl.org.uk [Wed Sep 12 18:42:53 2007] [error] [client 62.69.34.170] PHP Notice:  Undefined property:  stdClass::$cache in /home/sites/afsl.org.uk/public_html/new/includes/session.inc on line 77

afsl.org.uk [Wed Sep 12 18:44:11 2007] [error] [client 62.69.34.170] PHP Fatal error:  Out of memory (allocated 33554432) (tried to allocate 31988 bytes) in /home/sites/afsl.org.uk/public_html/new/sites/all/modules/civicrm/packages/HTML/QuickForm/hierselect.php on line 418, referer: http://www.afsl.org.uk/new/civicrm/import?reset=1

Looks like the program is short on memory - I had this problem previously and thought my ISP had sorted it out.  I will contact my ISP again about this.

What can I do about the first error message?

Thanks

Alan

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: Import file permissions error
September 13, 2007, 12:23:12 am

You can ignore the PHP Notice. Its in drupal code and not much we can do about it :(

hierselect is not great from a memory viewpoint. The larger your mapping, the more memory it consumes. We hope to fix this in a 2.x release. For now increasing memory is a simpler alternative

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

afsladmin

  • Guest
Re: Import file permissions error
September 15, 2007, 11:42:25 am
I have increased the memory limit in the php.ini file to as much as 256M, but still have the same problem, and the apache error log appears to indicate that the memory is exhausted at a level of about 32-33M.

I have edited the civicrm.settings.php file in sites/default/ folder to echo $memLimit to the screen, and it displays 268435456 (ie 256M) at the top of the page where the program hangs.

Any ideas why the memory available seems to be only about 33M when the memory limit appears to be about 256M?

My ISP says there is no problem with the server

afsladmin

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Import file permissions error

This forum was archived on 2017-11-26.