issue with custom module menu path
Hi, when I type the url mydomain.com/admin/mycustom_menu , I get access denied error My hook_menu code is $items['admin/mycustom_menu'] = array( 'title' => 'mycustom menu Settings', 'page callback' => 'my_custom_page', 'access arguments' => array('administer content'), 'type' => MENU_NORMAL_ITEM, ); -- Tel:254- 722-490994 www.agile.co.ke | www.jipambe.com
I believe, you should try changing the path from admin/xxx to something like xxx I also faced similar issue, and got this rectified. Same issue I faced on admin/people/xxx menu too. On Thu, Sep 27, 2012 at 2:31 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
Hi,
when I type the url mydomain.com/admin/mycustom_menu , I get access denied error
My hook_menu code is
$items['admin/mycustom_menu'] = array( 'title' => 'mycustom menu Settings', 'page callback' => 'my_custom_page', 'access arguments' => array('administer content'), 'type' => MENU_NORMAL_ITEM, );
-- Tel:254- 722-490994 www.agile.co.ke | www.jipambe.com
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Regards, Vaibhav Jain
Hi, I tried that but it did not work. I am using d6. On 27 September 2012 06:31, Vaibhav Jain <in.vaibhavjain@gmail.com> wrote:
I believe, you should try changing the path from admin/xxx to something like xxx I also faced similar issue, and got this rectified.
Same issue I faced on admin/people/xxx menu too.
On Thu, Sep 27, 2012 at 2:31 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
Hi,
when I type the url mydomain.com/admin/mycustom_menu , I get access denied error
My hook_menu code is
$items['admin/mycustom_menu'] = array( 'title' => 'mycustom menu Settings', 'page callback' => 'my_custom_page', 'access arguments' => array('administer content'), 'type' => MENU_NORMAL_ITEM, );
-- Tel:254- 722-490994 www.agile.co.ke | www.jipambe.com
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Regards, Vaibhav Jain
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Tel:254- 722-490994 www.agile.co.ke | www.jipambe.com
are you flushing caches after you create a menu, it is kinda mandatory to flush caches. On Thu, Sep 27, 2012 at 10:52 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
Hi,
I tried that but it did not work. I am using d6.
On 27 September 2012 06:31, Vaibhav Jain <in.vaibhavjain@gmail.com> wrote:
I believe, you should try changing the path from admin/xxx to something like xxx I also faced similar issue, and got this rectified.
Same issue I faced on admin/people/xxx menu too.
On Thu, Sep 27, 2012 at 2:31 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
Hi,
when I type the url mydomain.com/admin/mycustom_menu , I get access denied error
My hook_menu code is
$items['admin/mycustom_menu'] = array( 'title' => 'mycustom menu Settings', 'page callback' => 'my_custom_page', 'access arguments' => array('administer content'), 'type' => MENU_NORMAL_ITEM, );
-- Tel:254- 722-490994 www.agile.co.ke | www.jipambe.com
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Regards, Vaibhav Jain
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Tel:254- 722-490994 www.agile.co.ke | www.jipambe.com
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Regards, Vaibhav Jain
go to admin/settings/performance and click on "clear cached data" button -- Thanks and regards, Sushil Hanwate. On Thu, Sep 27, 2012 at 10:58 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
Do I need to reinstall the module after changing the hook_menu?
-- [ Drupal support list | http://lists.drupal.org/ ]
Duh. On Wed, Sep 26, 2012 at 10:30 PM, sushyl <sushyl@gmail.com> wrote:
go to admin/settings/performance and click on "clear cached data" button
-- Thanks and regards,
Sushil Hanwate.
On Thu, Sep 27, 2012 at 10:58 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
Do I need to reinstall the module after changing the hook_menu?
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- *Anthony Stefan Maciejowski*
your code seems fine, did clearing cache resolve your problem? -- Thanks and regards, Sushil Hanwate. On Thu, Sep 27, 2012 at 11:03 AM, Anthony <tony@tony-mac.com> wrote:
Duh.
On Wed, Sep 26, 2012 at 10:30 PM, sushyl <sushyl@gmail.com> wrote:
go to admin/settings/performance and click on "clear cached data" button
-- Thanks and regards,
Sushil Hanwate.
On Thu, Sep 27, 2012 at 10:58 AM, Mutuku Ndeti <jnmutuku@gmail.com>wrote:
Do I need to reinstall the module after changing the hook_menu?
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
--
*Anthony Stefan Maciejowski*
-- [ Drupal support list | http://lists.drupal.org/ ]
Still "Access denied" error On 27 September 2012 08:37, sushyl <sushyl@gmail.com> wrote:
your code seems fine, did clearing cache resolve your problem?
-- Thanks and regards,
Sushil Hanwate.
On Thu, Sep 27, 2012 at 11:03 AM, Anthony <tony@tony-mac.com> wrote:
Duh.
On Wed, Sep 26, 2012 at 10:30 PM, sushyl <sushyl@gmail.com> wrote:
go to admin/settings/performance and click on "clear cached data" button
-- Thanks and regards,
Sushil Hanwate.
On Thu, Sep 27, 2012 at 10:58 AM, Mutuku Ndeti <jnmutuku@gmail.com>wrote:
Do I need to reinstall the module after changing the hook_menu?
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
--
*Anthony Stefan Maciejowski*
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Tel:254- 722-490994 www.agile.co.ke | www.jipambe.com
Which user you are checking this for ? I tried your code with my local instance and its working for admin user. May be you'll have to check the permissions. -- Thanks and regards, Sushil Hanwate. On Thu, Sep 27, 2012 at 11:11 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
Still "Access denied" error
On 27 September 2012 08:37, sushyl <sushyl@gmail.com> wrote:
your code seems fine, did clearing cache resolve your problem?
-- Thanks and regards,
Sushil Hanwate.
On Thu, Sep 27, 2012 at 11:03 AM, Anthony <tony@tony-mac.com> wrote:
Duh.
On Wed, Sep 26, 2012 at 10:30 PM, sushyl <sushyl@gmail.com> wrote:
go to admin/settings/performance and click on "clear cached data" button
-- Thanks and regards,
Sushil Hanwate.
On Thu, Sep 27, 2012 at 10:58 AM, Mutuku Ndeti <jnmutuku@gmail.com>wrote:
Do I need to reinstall the module after changing the hook_menu?
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
--
*Anthony Stefan Maciejowski*
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Tel:254- 722-490994 www.agile.co.ke | www.jipambe.com
-- [ Drupal support list | http://lists.drupal.org/ ]
is your code same as you posted before? And did you clear the cache and checked again? -- Thanks and regards, Sushil Hanwate. On Thu, Sep 27, 2012 at 11:37 AM, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
I am using the admin user on my local instance
-- [ Drupal support list | http://lists.drupal.org/ ]
My code is as before $items['admin/mycustom_menu'] = array( 'title' => 'mycustom menu Settings', 'page callback' => 'my_custom_page', 'access arguments' => array('administer content'), 'type' => MENU_NORMAL_ITEM, ); I have cleared cache and checked again.
My guess here is that you are operating as a user other than user 1, but one with full administrative privileges.... In Drupal 6, the appropriate access argument is 'administer nodes', not 'administer content'. As always, clear caches after any change to the menu hook. Dave ________________________________ From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Mutuku Ndeti Sent: Wednesday, September 26, 2012 11:20 PM To: support@drupal.org Subject: Re: [support] issue with custom module menu path My code is as before $items['admin/mycustom_menu'] = array( 'title' => 'mycustom menu Settings', 'page callback' => 'my_custom_page', 'access arguments' => array('administer content'), 'type' => MENU_NORMAL_ITEM, ); I have cleared cache and checked again.
Hi, I'm looking at bringing up a new multi-site under postgres for a set of D7 sites. I'm wondering if people have opinions on whether there are performance gains in using postgres and any other feedback about performance and ease of use with the new abstract interface. These sites will have ubercart, but are primarily brochure sites with multiple authors. From what i've seen, until the site is thoroughly cached D7 runs a bit slow under mysql. I'm also hearing stories of the database getting corrupted, though i think that's probably from not having enough memory set in php.ini. Thanks. -Don-
participants (6)
-
Anthony -
Don -
Metzler, David -
Mutuku Ndeti -
sushyl -
Vaibhav Jain