Problem creating new dashlets

Hi,

My SuiteCRM instance, does not create new dashlets anymore. Here apache error.log:

PHP Warning: array_unshift() expects parameter 1 to be array, null given in path_to_crm\custom\include\MySugar\MySugar.php on line 116, referer: http://crm/crm/index.php?action=ajaxui

PHP Warning: require_once(path_to_crm) [function.require-once]: failed to open stream: Permission denied in path_to_crm\custom\include\MySugar\MySugar.php on line 150, referer: http://crm/crm/index.php?action=ajaxui

PHP Fatal error: require_once() [function.require]: Failed opening required ‘’ (include_path=‘path_to_crm;path_to_crm\include\HTMLPurifier/standalone;path_to_crm\include/…;.;C:\php\pear’) in path_to_crm\custom\include\MySugar\MySugar.php on line 150, referer: http://crm/crm/index.php?action=ajaxui

Any ideas?

Regards,
Mario

Hi rossi,

You need to set the correct permissions.

Thanks,

Will.

Hi Will,

I tried with the entire crm’s directory allowed with RWX to everyone. Sometimes works, sometimes not, as before.
See also http://suitecrm.com/forum/suitecrm-discussion/940-the-problem-add-tap-add-dashlets-on-suitecrm-7-1.

Thanks

This looks like the same problem I have. When I try to add a new dash let I get three lines in the sugar log. I have checked permissions.

But the error looks unusual to me. If you look at the part I colored below, there is no filename. A require_once error will indicate the path and filename that could not be found, but this just indicates a folder, which makes me think that sugar is trying to use require_once on a blank file name.

[05-Jun-2014 19:25:52 UTC] PHP Warning: array_unshift() expects parameter 1 to be array, null given in /home/gt/subdomains/suitecrm/crm/custom/include/MySugar/MySugar.php on line 116

[05-Jun-2014 19:25:53 UTC] PHP Warning: [color=#0000ff]require_once(/home/gt/subdomains/suitecrm/crm)[/color] [function.require-once]: failed to open stream: No such file or directory in /home/gt/subdomains/suitecrm/crm/custom/include/MySugar/MySugar.php on line 150

[05-Jun-2014 19:25:53 UTC] PHP Fatal error: require_once() [function.require]: Failed opening required ‘’ (include_path=’/home/gt/subdomains/suitecrm/crm:/home/gt/subdomains/suitecrm/crm/include/HTMLPurifier/standalone:/home/gt/subdomains/suitecrm/crm/include/…:.:/usr/lib/php:/usr/local/lib/php’) in /home/gt/subdomains/suitecrm/crm/custom/include/MySugar/MySugar.php on line 150

Hi

I have the same problem with adding dashlet on homepage
Di you resolve the topic ?

BR

I believe in my case it turned out to be a permissions problem as Will suggested. The weird part was, after verifying the permissions, it still did not work right away. But then I tried again a few days later and suddenly it was working. I think after I fixed the permissions I had to wait for a cache to expire is my guess.

Hi thank you for your reply

I have created a new dashbord and all dashlet are working on this new dashboard.
Now I would like that this new dashboard open as defaullt instead of Dashboard Suite and I would like to configure this dashboard for all users. Is this possible ?