This error appears when I access the permisions tab in people, while the drutex module is enabled, if I disable it, then this error disappears. I am also getting in the logs all the notice's about "Notice: Undefined variable: format in drutex_submodule_implements() (line 853 of /var/www/html/noao/sites/all/modules/drutex/drutex.module)."
But I think that that is unrelated.
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
php 05/12/2011 - 10:35 Notice: Undefined variable: format in drutex... dwalker
Comments
Comment #1
dwalker51 commentedI also noticed this similiar problem... http://drupal.org/node/1045358
Where they mention that it could be according to #2 error in one of the modules you have installed -- it isn't implementing hook_permission() correctly..
and here http://drupal.org/node/1017202
or here http://drupal.org/node/1136908
Comment #2
dwalker51 commentedI see in drutex.module the hook_permission might not be ready...not sure how to proceed, I can deactivate which would be a shame or I can leave the drutex module active, since its working fine but then I can't see my permissions page, which is a pain.
* Implements hook_permission().
*/
function drutex_permission() {
// TODO The array elements in this hook function need to be changed.
return drutex_submodule_invoke_all('perm');
}
I changed in drutex.module to the following and I can now access my permission page and have drutex enabled using what appeared here:
http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...
but I don't think this is a permanent solution.
* Implements hook_permission().
*/
function drutex_permission() {
// TODO The array elements in this hook function need to be changed.
//return drutex_submodule_invoke_all('perm');
return array(
'administer my module' => array(
'title' => t('Administer my module'),
'description' => t('Perform administration tasks for my module.'),
),
);
}
Comment #3
inTOOLS commentedYes, the hook_permission in current dev version is not compatible with D7.
Basically DruTeX has two permissions:
These give for a user role access to the pages
where the [nid] argument is the node id of the node with LaTeX source. When you access those URLs you get respectively PDF or LaTeX file prepared from the node source and template from the DruTeX module.
In the current dev version there is a problem with the permissions page, when DruTeX module is enabled because of this fragment (676-682 line of drutex.module file):
Now, @dwalker51 correction was in right direction, but you can go further and take a look at hook_menu in the same file (last two items):
to determine, that the permissions should look like below:
For me it worked when I reinstalled DruTeX module with this corrections. Now I can access my permissions page, and set permissions for DruTeX URLs.
Comment #4
abbasmousavi commentedthanks dwalker51 and intools
yes, the hook_permission is not implemented yet, I will correct this in my next commit.
Comment #5
abbasmousavi commentedthanks dwalker51 and intools
yes, the hook_permission is not implemented yet, I will correct this in my next commit.
Comment #6
abbasmousavi commentedI have commited the changes. Please check 7.x-1.0-alpha1.