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) »
  • ACL and Smarty Error
Pages: [1]

Author Topic: ACL and Smarty Error  (Read 3261 times)

Shadow

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
ACL and Smarty Error
May 02, 2007, 01:08:10 pm
Hi all - I am a bit new to CiviCRM - I inherited the job about 7 months ago when my present client needed someone to act as webmaster for their site and move the site to a new server/host.  I have since then learn quite a few things ( I bought the Packt book on DRUPAL since I only worked on Fedora in the past) and have been inching thru the docs, faqs and blogs......because the installation was not configured properly (my belief). I have since corrected several things and the site is moving toward stability but this error has me stumped!

We are running under DRUPAL 4.7 with CiviCRM 1.6 (I upgraded these during the server move 5 months ago from 4.6 and 1.4 respectively)  Now we want to modify the existing user registration form to allow users to join our forum ONCE they have been verified (authenicated) and would like to do this via the registration form..........and I thought I could best accomplish this new profile through the use of ACLs.  When I go to Administer -> Access Control -> Manage ACL I get the following error:

user warning: Smarty error: unable to read resource: "CRM/Acl/Page/Acl.tpl" in /home/election/public_html/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.

I also get the same error if I try to add user to a role via the Adminster CiviCRM -> Access Control -> Add Users to Role item.
After plowing thru support docs and blogs, I found a post that said that the mentioned file might not exist or might be corrupted - but in checking the folder, I find a file with the same name but a php extension, which I assume is used in the creation of the tpl file but renaming that file or copying it to the folder as a tpl file will not correct this error.  I copied the file from my local hard disk to the server since I untarred the file locally before uploading.

Can someone help or point me in the right direction?   I would love to get this project off my plate and go on to other problems -  :D Also, I would love the title of a book that explains CiviCRM to me but failed to find one at my local book store - is there one?

Thanks in advance for any help
Shadow

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: ACL and Smarty Error
May 02, 2007, 02:16:32 pm

Most likely that is a bug in the 1.6 version of CiviCRM. please consider upgrading to 1.7. If not, try making the following change:

CRM/Utils/System.php

add

'acl' => 'ACL'

to the associative array (line 52 or so)

public static $php4SpecialClassName = array (

There are two ACL files, one will be under the CRM directory (ACL.php) and the other under templates/CRM (ACL.tpl)
That said, i dont think that will help you with your issue, since 1.6 did not have ACL's for Profiles.

There is no book on CiviCRM as yet :) but there is pretty decent documentation for 1.7 at

http://wiki.civicrm.org/confluence/display/CRMDOC/Documentation+Home

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

Shadow

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
Re: ACL and Smarty Error
May 02, 2007, 04:05:44 pm
Thanks Lobo - I will try both of your suggestions

Shadow

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

This forum was archived on 2017-11-26.