Not sure it ever worked, but when I click the Edit button on the “My Top Open Opportunities” dashlet, it gives me an error that states “There was an error handling this request.”.
Is there a way around this? I’d like to be able to allow my users to specify their own criteria in the dashlet.
This is not a support issue - this is a system issue. There is nothing we could have done to stop that from working. I need a resolution , as I’m certain others do as well. This cannot be isolated to our instance.
I don’t know why, but after a lot of trial and error down grading to PHP 5.6 resolves this problem and many other problems. I can’t yet locate the exact location where the problem is happening.
Ok then, solve it here! There are multiple threads where this issue pops up and no one resolved the issue. I tried multiple different installations and I still get on a fresh clean install the error message when trying to edit the dashlets on PHP 7 not to mention that I get additional warnings on 7.1
If you believe it is a sysadmin issue, please share it.
Installation goes normally, all requirements are OKed by the installer and everything works. No errors in suitecrm.log or apache. However there are query errors in sugarcrm.log
Environment2:
OS: Linux
PHP: 7.0 on Apache
SuiteCRM 7.9.7
Same exact procedure occurs as with earlier PHP environment, however, now when I log in and try to edit any of the dashlets on the left (e.g. My Calls) I get a pop up with an error message “There was an error handling this request.”
Setting the logger level on debug does not show any errors, just normal execution. The error seems to happen somewhere around SUGAR.mySugar.configureDashlet but I cannot trace it because the logs both in Apache and suitecrm aren’t showing any errors or even warnings.
I repeat, the environments are identical in every way except that one has PHP 5.6 and the other has 7.0
It’s a pity you didn’t start a new thread like I asked - I fear this way we will be unnecessarily annoying the other three people in this thread, and this can get quite long as it is a tough problem to solve.
I don’t question the fact that on your system, it works with one version of PHP and not with the other. If you say it, of course it’s true. The problem is just that on my system, on many others’, it simply works in either case.
So, in order for us to be methodical about tracking this down, I would appreciate it if we settled on a lists of steps to reproduce, so that we’re always looking at the exact same problem.
Go to homepage, click add dashlets
Add the “My top ten opportunities dashlet”
Click to edit that dashlet
Pop up message appears on screen saying “[exact message]”
Is this correct? Or do you only see the message when saving the changes? Which changes exactly? What is the exact message, so I can search the code for it? Etc.
Secondly, I would ask you to try your list of steps in the online demo, and tell me if it works well there.
I confirm the bug occurs by the sequence you provided and I confirm that the bug does NOT occur on the demo system. What this means is that probably some hidden dependency is not declared or some library is causing an issue on PHP 7 (i.e. I must install, uninstall or upgrade something). More investigation will happen on my part.
So, I will start a new thread with the exact issue. I am going to build a full docker image dedicated to getting the setup exactly right to isolate whatever is causing this bug. Thank you for your help.
These are the modules I install in Ubuntu 16.04 with PHP 7.0:
Start with these if you didn’t choose “LAMP Stack” in the installer:
apt-get install mysql-server php-mysql nano
/etc/init.d/mysql start
Then these in any case:
apt install zip unzip php-mbstring php7.0-mbstring php-gettext php-xml-parser php7.0-zip php7.0-imap php7.0-gd php7.0-curl phpmyadmin
Add this if it is a development machine:
apt install php-xdebug
Was there ever any resolution to this? I’m having basically the same issue. After some difficulty, I got SuiteCRM installed on my Hostgator shared server account. Now, in the Dashboard, when Iclick on any pencil icon in the dashlets, I get the error message. These messages show up in error_log:
[color=#0000bb]08-Feb-2018 16:15:42 America/Chicago] PHP Warning: Declaration of SugarWidgetFieldVarchar::displayInput(&$layout_def) should be compatible with SugarWidgetField::displayInput($layout_def) in /home2/garlick/public_html/SuiteCRM-7.9.12/include/generic/SugarWidgets/SugarWidgetFieldvarchar.php on line 42
[08-Feb-2018 16:15:42 America/Chicago] PHP Warning: Declaration of SugarWidgetFieldName::queryFilterone_of($layout_def, $rename_columns = true) should be compatible with SugarWidgetFieldVarchar::queryFilterone_of(&$layout_def) in /home2/garlick/public_html/SuiteCRM-7.9.12/include/generic/SugarWidgets/SugarWidgetFieldname.php on line 46
[08-Feb-2018 16:15:42 America/Chicago] PHP Warning: Declaration of SugarWidgetFieldName::displayList(&$layout_def) should be compatible with SugarWidgetField::displayList($layout_def) in /home2/garlick/public_html/SuiteCRM-7.9.12/include/generic/SugarWidgets/SugarWidgetFieldname.php on line 46
[08-Feb-2018 16:15:42 America/Chicago] PHP Warning: Declaration of SugarWidgetFieldDateTime::displayInput(&$layout_def) should be compatible with SugarWidgetField::displayInput($layout_def) in /home2/garlick/public_html/SuiteCRM-7.9.12/include/generic/SugarWidgets/SugarWidgetFielddatetime.php on line 817
[/color]
And, nothing works.
If there’s another forum thread that deals with this, please point me to it. Thanks.