Project:Colorpicker
Version:6.x-1.0-beta1
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

i am seeing the following pink status error:

warning: Missing argument 1 for colorpicker_example_menu() in /modules/colorpicker/examples/colorpicker_example.module on line 8.

did i not install this module correctly? please advise.

Comments

#1

I have same problem too... What is it?

#2

It looks like the development snapshot has an updated colorpicker_example.module. I made the same changes to the colorpicker_example_menu() function and the error went away. The function should look like this:

function colorpicker_example_menu() {
$items[] = array(
'title' => t('Color Picker Example'),
'path' => 'colorpicker/example',
'description' => t('An example of the color picker in use.'),
'callback' => 'colorpicker_example_callback',
'access' => user_access('access colorpicker example')
);
return $items;
}

#3

the problem is caused by the $may_cache variable. In D6 isn't used anymore.

#4

Status:active» needs review
AttachmentSize
colorpicker_issue_352761.patch 631 bytes

#5

Status:needs review» needs work

This is exactly the problem, but the conditional function inside the hook_menu() is now unnecessary and should be removed as well.

Dave

#6

Oops, overlooked that one! You're right.

#7

Sorry i am experiencing the same problem. Forgive my ignorance but how would one go about applying that patch. hit me with it daddio i can take it. I aint scared of no code! (in the voice of ghostbusters)

Thanks

#8

Did you install the latest version of Colorpicker? It should have been fixed.

#9

Status:needs work» fixed

This appears to have been resolved.

#10

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#11

I installed the latest version of colorpicker and I'm still having this issue on a 6.20 drupal site