Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8896937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:12:13+00:00 2026-06-15T00:12:13+00:00

I writing custom module for Drupal 7 and got the following warning: Warning: Invalid

  • 0

I writing custom module for Drupal 7 and got the following warning:

Warning: Invalid argument supplied for foreach() в функции menu_unserialize() (строка 400 в файле /var/www/auth/includes/menu.inc).

My hook_menu is here:

function mnogomirauth2_menu() { $menu['tables/udkservers'] = array( 'title' => 'udkserversTable', 'page callback' => '_menu_test', 'access arguments' => TRUE, 'type' => MENU_NORMAL_ITEM ); return $menu; } function _menu_test() { echo "test"; }

Please, tell me, what's wrong with this code?

Best regards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:12:14+00:00Added an answer on June 15, 2026 at 12:12 am

    According to Drupal API for hook_menu

    “access arguments”: An array of arguments to pass to the access
    callback function, with path component substitution as described
    above. If the access callback is inherited (see above), the access
    arguments will be inherited with it, unless overridden in the child
    menu item.

    It seems that you have specified wrong argument TRUE for access arguments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Drupal module to integrate with a custom Java-based REST API for
I am developing Drupal sites sometimes. This development involves writing custom module and of
I'm writing a custom module and I'd like to use $form_state of the current
I am writing a custom binding to use $.expandingTextarea with Knockout.js . Following the
I am writing a custom .pac script for use with Firefox. Following numerous examples
Following the example of writing a custom django-admin command here , I've created the
I'm writing custom security attribute and got strange compiler behaviour... When I'm using the
I'm writing a custom module and I am trying to create an array of
I'm writing a custom authentication adapter in Zend Framework 2. module/Application/src/Application/Auth/Adapter/Auth_Adapter.php - namespace Application\Auth;
I am writing a module that uses some custom caching mechanism and i would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.