Can't add dashlets

Hello folks,

After a clean install of sugar i'm not able to add any dashlets. When i look at the apache error logs i get te following error:

PHP Deprecated:  preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/html/include/Smarty/Smarty_Compiler.class.php on line 268

When i change the preg_replace to preg_replace_callback smarty starts flipping the error message:

PHP Fatal error:  Smarty error: [in themes/Sugar5/tpls/header.tpl line 63]: syntax error: unrecognized tag: YAHOO.util.History.register('ajaxUILoc', "", SUGAR.ajaxUI.go);\n    {/literal (Smarty_Compiler.class.php, line 434) in /var/www/html/include/Smarty/Smarty.class.php on line 1095

And sugar gives a white page.

Any ideas?

Kind regards,

Freek Sijmons.

Parents
  • Hi Freek,

    That PHP error is a Deprecated error, so you shouldn't have to worry about that. Is there anything in your sugarcrm.log file? What is the behavior that occurs when you try to add a dashlet?

    -Alan

  • Hi Alan,

    Thanks for your reply.

    I know the php error is a deprecated warning but the strange thing is that when i change the php code back after getting a white screen the dashlet i added before suddenly appear. When i add a dashlet i see a little screen appearing for a few seconds stating the dashlet is being added but nothing happens.

    The sugarcrm.logs only gives a php date.timezone error witch is weird because the date.timezone are set in the php.ini

    Update, the timezone error was caused by the cronjob. I forgot to edit the php cli ini file. The sugarcrm.log stays empty now.

Reply
  • Hi Alan,

    Thanks for your reply.

    I know the php error is a deprecated warning but the strange thing is that when i change the php code back after getting a white screen the dashlet i added before suddenly appear. When i add a dashlet i see a little screen appearing for a few seconds stating the dashlet is being added but nothing happens.

    The sugarcrm.logs only gives a php date.timezone error witch is weird because the date.timezone are set in the php.ini

    Update, the timezone error was caused by the cronjob. I forgot to edit the php cli ini file. The sugarcrm.log stays empty now.

Children
No Data