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) »
  • "You do not have permission to execute this url" When Going to index2.php
Pages: [1]

Author Topic: "You do not have permission to execute this url" When Going to index2.php  (Read 7370 times)

DavidSalahi

  • Guest
"You do not have permission to execute this url" When Going to index2.php
December 19, 2009, 09:58:45 am
I've been getting the error:
"You do not have permission to execute this url."
when I try to execute certain operations in the CiviCRM backend. I have a couple of clues as to the specific situation but don't know how to fix it.

I've noticed that the error always occurs when going from index.php to index2.php. So, for example, after I log into Joomla as SuperAdmin and choose CiviCRM from the menu this is my URL:
http://trumpaids.org/administrator/index.php?option=com_civicrm

Note that this is showing index.php as the page. If I then choose Events --> Manage Events I get the error. And the new URL now includes index2.php:

http://trumpaids.org/trumpaids.org/administrator/index2.php?option=com_civicrm&task=civicrm/event/manage&reset=1&

The second clue is that the domain name is repeated: http://trumpaids.org/trumpaids.org/...
If I manually remove the extra copy of "trumpaids.org" and hit Enter I can then get to Manage Events and continue as usual. As long as I stay in index2.php things work OK. But whenever I do an operation that requires changing from index.php to index2.php the error occurs. If I disable the standard Joomla .htaccess file, then I get a 404 error; same doubled URL.

I can work around it for the time being but need to get it fixed before it's usable by the client. Any insights as to what would cause this or where to look? I've looked at the log files in .../media/civicrm/upload but there's no clue.

David Salahi
http://artistic-webdesign.com/

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: "You do not have permission to execute this url" When Going to index2.php
December 19, 2009, 06:46:23 pm
Check the Resource URL setting under Administer CiviCRM >> Global Settings
... and check the CIVICRM_UF_BASEURL in civicrm.settings.php for both back-end (joomla_root/administrator/components/com_civicrm) and front-end (joomla_root/components/com_civicrm)
Protect your investment in CiviCRM by  becoming a Member!

DavidSalahi

  • Guest
Re: "You do not have permission to execute this url" When Going to index2.php
December 20, 2009, 12:00:19 pm
Hi Dave,
Thanks for the suggestions. I had previously checked those things but double-checked and everything still looks OK to me. In fact, I checked those settings against those of another Joomla/CiviCRM site where I don't get the error and everything is the same except for domain name/subdirectory. I'll have to keep digging.

David Salahi

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: "You do not have permission to execute this url" When Going to index2.php
December 21, 2009, 06:59:30 pm
I had this problem and I've forgotten exactly how I fixed it, but I remember that the fix was in Joomla, not civiCRM, and I belive in the menu structure.
Thanks to those who help create and enhance civiCRM!

DavidSalahi

  • Guest
Re: "You do not have permission to execute this url" When Going to index2.php
December 21, 2009, 09:57:02 pm
I found the answer. It was in the table civicrm_preferences which contains just two records. The first record contains the settings you can set in the Global Configuration preferences screen. The second record is a completely different type of record and contains values for only a single field: navigation. That field contains the server paths for each of the CiviCRM admin menu functions.

In my case, it contained the subdirectory on my server where Joomla/CiviCRM are installed as part of that path. Originally, when I installed Joomla the domain was not yet set up so it needed the subdirectory as part of the URL. However, after setting up the domain, that part of the directory path was no longer needed (and not wanted). By manually editing the directory in phpMyAdmin for each of about 50 menu items I was able to fix the problem. Probably could have done it quicker with a find/replace and a SQL insert command but once I got started I kept going.

Anyway, that's the scoop in case anyone else runs into this sort of thing.

David Salahi

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: "You do not have permission to execute this url" When Going to index2.php
December 24, 2009, 01:14:47 pm
David - There is a "rebuild menus" URL which should fix this type of menu URL issue for you (or others) w/o doing any DB modifications:

For Joomla sites:
http://<joomla_site_url>/administrator/index2.php?option=com_civicrm&task=civicrm/menu/rebuild&reset=1

Sorry I didn't recognize earlier that this is what was needed to fix your issue. This functionality is described here on the wiki:
http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location
Protect your investment in CiviCRM by  becoming a Member!

DavidSalahi

  • Guest
Re: "You do not have permission to execute this url" When Going to index2.php
December 26, 2009, 12:48:06 pm
Hey, that's great to know about the rebuild menus option and the document that describes how to move an installation to a new server. That's likely to come up again for me in the future.

Thanks for the tip!
David Salahi

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • "You do not have permission to execute this url" When Going to index2.php

This forum was archived on 2017-11-26.