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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • *Solved* Upgrading standalone 2.0 -> 2.1: You do not have permission...
Pages: [1]

Author Topic: *Solved* Upgrading standalone 2.0 -> 2.1: You do not have permission...  (Read 1881 times)

stefanr

  • Guest
*Solved* Upgrading standalone 2.0 -> 2.1: You do not have permission...
March 18, 2009, 01:31:14 pm
Hi,

I am trying to upgrade from 2.0.7 to 2.1. I have tried 2.1.6 and then 2.1.1, but I got the same result twice: I can log in, after which I have no access to the actual page.

Steps taken:

- mv civicrm civicrm.bak
- tar -zxvf civicrm-2.1.1-drupal.tar.gz
- mkdir civicrm/standalone/files
- chmod o+rwx civicrm/standalone/files -R
- cp civicrm.bak/standalone/civicrm.settings.php civicrm/standalone/

Then I could not find the upgrade manual for the standalone version 2.1, so I tried following the same manual for the standalone version 2.2.
The main page at that point gave me an error about missing "locales" field in the table "civicrm_domain", so I went straight to the upgrade page:

http://sitenameremoved/civicrm/standalone/index.php?q=civicrm/upgrade&reset=1

I had to go there twice. The first time, the log file said  "Log file CiviCRM.log is not writable. Make sure files directory is writable.".

The second time, I got to complete the upgrade wizard. The final page says, "Please be sure to follow the remaining steps in the Upgrade Instructions."
That link (http://wiki.civicrm.org/confluence/x/SoJH) gives a Confluence error.

So I went to the main page of my site and logged in, after which I got the following error:

Quote
Sorry. A non-recoverable error has occurred.
You do not have permission to access this page
Return to home page.

Here is the log item:

Quote
Mar 18 21:08:57  [info] $Fatal Error Details = Array
(
    [message] => You do not have permission to access this page
    \[code\] =>
)


Mar 18 21:08:57  [info] $backTrace = /hosting/sitenameremoved/sites/civ.sitenameremoved/www/civicrm/CRM/Core/Error.php, backtrace, 267
/hosting/sitenameremoved/sites/civ.sitenameremoved/www/civicrm/CRM/Utils/System/Standalone.php, fatal, 268
/hosting/sitenameremoved/sites/civ.sitenameremoved/www/civicrm/CRM/Utils/System.php(192) : eval()'d code, permissionDenied, 1
/hosting/sitenameremoved/sites/civ.sitenameremoved/www/civicrm/CRM/Utils/System.php, eval, 192
/hosting/sitenameremoved/sites/civ.sitenameremoved/www/civicrm/CRM/Core/Invoke.php, permissionDenied, 119
/hosting/sitenameremoved/sites/civ.sitenameremoved/www/civicrm/standalone/index.php, invoke, 40
/hosting/sitenameremoved/sites/civ.sitenameremoved/www/civicrm/standalone/index.php, invoke, 66

So I would really appreciate if you had a pointer for me to try and get in again!

Thanks,
Stefan.

« Last Edit: March 18, 2009, 03:18:18 pm by stefanr »

stefanr

  • Guest
Re: *Solved* Upgrading standalone 2.0 -> 2.1: You do not have permission...
March 18, 2009, 03:20:22 pm
OK, solved that one.

Apparently, the upgrade introduces the ACL system, but no acl was defined. I modified civicrm/CRM/ACL/BAO/ACL.php temporarily so as to gain access and define an administrator acl, granting all permissions. After restoring the original ACL.php file, I was able to get back in and work with Civicrm.

Cheers,
Stefan.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • *Solved* Upgrading standalone 2.0 -> 2.1: You do not have permission...

This forum was archived on 2017-11-26.