Problem with Module_Builder module

papun - May 29, 2008 - 06:33

Hi,
I am a newbie in drupal6 module development .So i downloaded the "module_builder" module, but it is not working .The error is given once you give the name of the "custom module" and click "next" then it is giving the "Access Denied" page of drupal.
I would appreciate if someone could help me out with this problem.
Thank you.

Sorry

gpk - May 29, 2008 - 07:48

[edit]Misunderstood your post.[/edit]

You might want to check the permissions you have given on the admin/user/permissions page.

gpk
----
www.alexoria.co.uk

Thanx 4 the advice

papun - May 29, 2008 - 08:29

I have given the permission(s) to the admin.But even tyen it is not working.

From this issue

gpk - May 29, 2008 - 08:55

From this issue http://drupal.org/node/257112 it appears that module_builder was released before Drupal 6.2 release (and will only work with 6.0 and 6.1). 6.2 made a couple of changes to the menu system, and as a result you need to apply the patch attached to that issue to make module_builder work with Drupal 6.2+. Alternatively you can just add the 2 lines by hand to the main .module file.

gpk
----
www.alexoria.co.uk

thanx again

papun - May 29, 2008 - 11:00

I am really sorry about this but could you please tell me which two lines need to be written in the".module" file and where.
This would be so kind of you.

On line 37 you should see

gpk - May 29, 2008 - 11:07

On line 37 you should see the line starting $items[... which matches the line $items[... just over halfway down the patch file, i.e. this one

  $items['admin/build/module_builder/edit/%module_builder'] = array(

There is then a line 'title' and then one 'page callback'. After this line you need to add the line that starts with a + (the one 'access arguments'). Don't put the + in though.

Then look at line 23, and the $items[... statement there, and repeat the process.

This will then give users with 'build modules' permission the ability to ... build modules ...! (Drupal 6.2 did away with inheritance of permissions for path (menu) callbacks in most cases.)

gpk
----
www.alexoria.co.uk

Thanx again but where is the patch

papun - May 29, 2008 - 12:38

Actually i did not get the patch so it would be nice if u could either give the link to the patch or better just write the two lines that need to be replaced.
I am sorry to disturb you again .
But i need the help very urgently.

are you talking about inserting this line=>

papun - May 29, 2008 - 12:42

'access arguments' => array('build modules'),

I am still getting the same problem

papun - May 29, 2008 - 12:48

Access denied
You are not authorized to access this

Now you need to hit the

gpk - May 29, 2008 - 13:44

Now you need to hit the Clear cached data button at admin/settings/performance

gpk
----
www.alexoria.co.uk

Yet Another problem

papun - May 30, 2008 - 06:44

I am getting this error on creating a menu using the module_builder module::

warning: array_shift() [function.array-shift]: The argument should be an array in C:\xampp_new\xampp\htdocs\drupal6\sites\all\modules\module_builder\module_builder.api.inc on line 132.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in C:\xampp_new\xampp\htdocs\drupal6\includes\form.inc on line 358.
warning: array_pop() [function.array-pop]: The argument should be an array in C:\xampp_new\xampp\htdocs\drupal6\sites\all\modules\module_builder\module_builder.api.inc on line 143.

Suggest you post a new issue

gpk - May 30, 2008 - 14:02

Suggest you post a new issue in the project's issue queue for that one http://drupal.org/project/issues/module_builder.

gpk
----
www.alexoria.co.uk

thanx again

papun - May 30, 2008 - 05:19

The module seems to be working now.

Similar issues - with additional

pclux - July 17, 2008 - 15:43

Had the same issues as described here and applied described patches. That got me to the next screen where you set the machine readable name and description but submit is going nowhere.

MAMP server... Drupal 6.3 ... latest release of Module_Builder v 1.2.4.2 datestamp = "1199361902"

 
 

Drupal is a registered trademark of Dries Buytaert.