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) »
  • UpdateMembershipRecord.php gives Restricted access error
Pages: [1]

Author Topic: UpdateMembershipRecord.php gives Restricted access error  (Read 946 times)

bryn

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
UpdateMembershipRecord.php gives Restricted access error
December 12, 2009, 07:46:17 am
UpdateMembershipRecord.php gives Restricted access error

Joomla 1.5.14, CiviCRM 3.0.1
When running UpdateMembershipRecord.php, by entering the appropriate URL in my browser window (IE or Firefox), I see:

Updating .........................Restricted access
The Membership Status of my Members are not updated.

I believe I am passing the username and password of the Joomla SuperAdmin correctly. (If I change it the error changes to ERROR: Invalid username and/or password )
I am passing a site key
I have commented out lines 184 ~ 257 as I only want to do teh Membership Status update .

The permissions for civicrm.settings.php are 755 & the owner is teh account name, which is the same for the most of the other file arround it.
I looked at the files that UpdateMembershipRecord.php calls - civicrm.config.php; Config.php; MembershipLog.php; etc, and they are all 755 with the account name
I also tried looking for all files in the CiviCRM directory that had the error phrase 'Restricted access', to see if I could change the message slightly to narrow down where the problem was coming from, without any luck.
Also search the forum, but could not find anything applicable.

As any could coder can see from the above I have no idea what I am doing, but I have tried to see I could find an answer first. :)

Does anyone know why this error is happening?
Many thanks is advance

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: UpdateMembershipRecord.php gives Restricted access error
December 12, 2009, 10:26:17 am

I;m pretty sure "Restricted Access" is not a string thrown by CiviCRM. You might want to track this down and figure out which component/module is throwing that error and why

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

jsimons

  • Guest
Re: UpdateMembershipRecord.php gives Restricted access error
October 05, 2010, 12:47:32 am
Hello,
I too am having this same problem.  Mine just says 'Restricted Access' on a blank page.
I put a marker after each line of UpdateMembershipRecord.php. 
The line
Code: [Select]
require_once 'CRM/Core/Config.php';     
completes Ok
The line     
Code: [Select]
$config =& CRM_Core_Config::singleton();does not complete.

I have looked at the apache logs, but no clues.

Does any one have help on how to fix this one?  How to even start?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • UpdateMembershipRecord.php gives Restricted access error

This forum was archived on 2017-11-26.