I am following Community Documentation

Creating modules - a tutorial: Drupal 6.x

please check this tutorial link https://www.drupal.org/node/206764

my module is products and i implemented products_all() same as in tutorial.

function that will generate a page with links products_all raising

You don't have permission to access /eshopy1/products/ on this server. error.

my configuration is
Apache/2.4.27 (Win32) OpenSSL/1.1.0f PHP/7.0.23 Server at localhost Port 81
i am using drupal 6.26 ver.

my menu item array for this is

$items['products'] = array(
    'title' => 'Products',
    'page callback' => 'products_all',
    'access arguments' => array('access products content'),
    'type' => MENU_CALLBACK
  );

Please any body help me

Thanks
 

Comments

Jaypan’s picture

Are you returning $items from hook_menu()? Did you clear the cache after adding it? Does the page callback products_all() exist? Is it in the .module file? Does your user have the 'access products content' permission?

srinath1976’s picture

yes i amreturning $items from hook_menu().

i cleared the cache after adding it. 

i have the page callback products_all() exist in the .module file coded as per tutorial.

now i created new Admin role with all permissions and created new user

added Admin role for this user and logouted site and tryed to login with Admin roled user

but i am getting unrecognised username and password. lot of tim i tryed no sol.

even i am not able to enter with my old user

i cleared browser cache also

please help me

Thanks

Jaypan’s picture

You're going to have to get yourself logged in again.

srinath1976’s picture

sir

i am unable to login with my nuw admin roled user.

i logged in with my old usr and added Admin role with all including "access products content" perms.

but when i run http://localhost:81/eshopy1/products/

You don't have permission to access /eshopy1/products/ on this server. error.

where i am doing wrong. pls tell me.

Thanks