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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Menu items in back-end do not refer to administrator pages
Pages: [1]

Author Topic: Menu items in back-end do not refer to administrator pages  (Read 793 times)

PaulVanLil

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • VanLil.be
  • CiviCRM version: civicrm 4.0.6
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Menu items in back-end do not refer to administrator pages
October 29, 2011, 03:42:45 am
Hi,

I am registered in the back-end as super-administrator.
All menus can be folded open, but when I click on a specific menu-item then it does not refer to the administrator page requested.

Example: when I click on "search contact", civicrm calls the following url:
Code: [Select]
http://www.mysite.be/?option=com_civicrm&task=civicrm/contact/search&reset=1where it should be:
Code: [Select]
http://www.mysite.be/administrator/?option=com_civicrm&task=civicrm/contact/search&reset=1
This means that all menu calls result in "access denied".
When I copy the url, paste it in the browser and add /administrator/, it works.

For some obscure reason, I could open a contact screen by looking up the contact through the search block (upper left). Once I am on the contact screen, all links like relations, activities, etc. work as should be.

I killed the cache by deleting /media/civicrm/templates_c/*. This had no result except that some items opened (for a while) in the front-end and not in the back-end  :-\.
I re-installed civicrm, same result  ???.

Thanks for any support.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Menu items in back-end do not refer to administrator pages
October 31, 2011, 01:56:17 pm
Seems like the base URL in your administrator folder copy of civicrm.settings.php is not being set properly.

Check <joomla_root>/administrator/components/com_civicrm/civicrm.settings.php. Setting should be something like this:

define( 'CIVICRM_UF_BASEURL'      , 'http://mysite.org/joomla/administrator/' );
Protect your investment in CiviCRM by  becoming a Member!

PaulVanLil

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • VanLil.be
  • CiviCRM version: civicrm 4.0.6
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Re: Menu items in back-end do not refer to administrator pages
November 01, 2011, 03:43:12 am
Now I feel embarrassed. I did not realise that civicrm.settings.php was different for the administrator site and the front-end.

I checked it and the CIVICRM_UF_BASEURL was not set correctly for the administrator site.

After updating civicrm.settings.php, killing templates_c, cleaning joomla's cache, I still get the same error: all menu items in civicrm (back-end) result in access denied  ???.

Could it be that the template is corrupted? Or can it be that something is wrong with the database?

I launched a mailing to 329 contacts, 160 were sent and the rest was not delivered due to syntax error. I have the problem above since then. Could one be related to the other?

All idea's are welcome.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Menu items in back-end do not refer to administrator pages
November 01, 2011, 01:08:43 pm
You must rebuild menus:

?option=com_civicrm&task=civicrm/menu/rebuild?reset=1

 
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

PaulVanLil

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • VanLil.be
  • CiviCRM version: civicrm 4.0.6
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Re: Menu items in back-end do not refer to administrator pages
November 02, 2011, 02:06:29 am
I deleted again /media/civicrm/templates_C/*

I rebuilded the menu's using:
  • Drupal sites: http://<drupal_site>/index.php?q=civicrm/menu/rebuild&reset=1
  • joomla 1.5 sites: http://<joomla_site>/administrator/index2.php?option=com_civicrm&task=civicrm/menu/rebuild&reset=1
  • Joomla 1.6 sites: http://<joomla_site>/administrator/index.php?option=com_civicrm&task=civicrm/menu/rebuild&reset=1

and everything works perfect  ;D

Case closed!

Thanks to all.
Paul

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Menu items in back-end do not refer to administrator pages

This forum was archived on 2017-11-26.