bug

gawrion - February 4, 2009 - 23:39
Project:Drigg External Vote Button
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I got this after i tried to enable module and save module configuration:

Parse error: syntax error, unexpected $end in sites/all/modules/drigg_external/drigg_external.module on line 163

Please develop 5x version - that's really nedded module.
Thx for Your work!

#1

Edward.H - July 21, 2009 - 10:57

I got the same error,but I have fixed it.This error is due to sytax error. A "}" is missing on line 54,so just add a "}" blew line 54 ,then the correct codes should as below:

function drigg_external_menu($may_cache) {
$items = array();
if ($may_cache) {

$items[] = array('path' => 'drigg_external/display_button',
'title' => t('Drigg External - Show external vote button'),
'callback' => 'drigg_external_display_button',
'access' => user_access('access drigg_external'),
'type' => MENU_CALLBACK,
);

return $items;
}
} // add this "}" :)

#2

marcolav - October 16, 2009 - 07:48

Thank you!

I had the same problem and solved it with your suggestion!

marco

 
 

Drupal is a registered trademark of Dries Buytaert.