Color picker plugin error

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 29, 2017   (RSS)

By hiroko - May 11, 2017 - edited: May 11, 2017

Hi,

This is the first time for me to use color picker plugin. I read about some changes to make from this topic

https://www.interactivetools.com/forum/forum-posts.php?postNum=2238403#post2238403

so I made the changes on css and on colorPicker.php line 30, I changed

addFilter('edit_buttonsRight', 'colorPicker_addJavascript', null, 3);

to this

addAction('admin_footer', 'colorPicker_addJavascript', null, 3);

on the editor it looks fine and I can pick a color, but I am getting these error logs

E_WARNING: Missing argument 1 for colorPicker_addJavascript()
/xxx/cmsb/plugins/colorPicker/colorPicker.php (line 34)
https://xxx/cmsb/admin.php?menu=admin&action=plugins

3 same errors for argument 1, 2, 3 for line 34 which is 

function colorPicker_addJavascript($html, $tablename, $record) {
colorPickerAddJavascript();
colorPickerAddCSS();
?>

and 

E_NOTICE: Undefined variable: html
/xxx/cmsb/plugins/colorPicker/colorPicker.php (line 57)
https://xxx/cmsb/admin.php?menu=admin&action=plugins

which would be 

<?php

return $html;
}

?>

Can someone help me with the changes I need to make? The CMSb version is 3.09 and 3.07.

By hiroko - June 29, 2017

Hello,

Thank you and I am so sorry I haven't replied.

For now, the plugin became not so necessary, but I will be sure to ask for consulting next time.

Thank you again.