Add dashlet error

Dear forum users,

After installing suiteCRM I’ve ran into a problem regarding dashlets. Im running version 7.7.6 Sugar Version 6.5.24 (Build 509). The server meets all the requirements as listed here https://suitecrm.com/wiki/index.php/Compatibility_Matrix.

The problem im running into is described here and should already be fixed, https://github.com/salesagility/SuiteCRM/issues/2370, I’ve checked the responding files and they are up to date.

Whenever I try to add a dashlet (regardles of the theme or tab) to a tab it displays a window where it keeps loading endlessly. The console displays

VM13136:1 Uncaught SyntaxError: Unexpected token <
    at Object.success (http://www.itiwana.org/SuiteCRM/include/MySugar/javascript/MySugar.js?v=K552sVyILV6OMJuio5A7Xw:79:108)
    at Object.handleTransactionResponse (http://www.itiwana.org/SuiteCRM/cache/include/javascript/sugar_grp1_yui.js?v=K552sVyILV6OMJuio5A7Xw:55:4422)
    at http://www.itiwana.org/SuiteCRM/cache/include/javascript/sugar_grp1_yui.js?v=K552sVyILV6OMJuio5A7Xw:55:3935

and the VM13136:1 debugger displays the message displayed below. I’ve really got no clue how to handle this so any help would be greatly appriciated

<br />
<b>Notice</b>:  Undefined index: module in <b>/public/sites/www.itiwana.org/SuiteCRM/include/MySugar/DashletsDialog/DashletsDialog.php</b> on line <b>172</b><br />
<br />
<b>Notice</b>:  Undefined index: module in <b>/public/sites/www.itiwana.org/SuiteCRM/include/MySugar/DashletsDialog/DashletsDialog.php</b> on line <b>172</b><br />
<br />
<b>Notice</b>:  Undefined index: module in <b>/public/sites/www.itiwana.org/SuiteCRM/include/MySugar/DashletsDialog/DashletsDialog.php</b> on line <b>172</b><br />
<br />
<b>Notice</b>:  Undefined index: module in <b>/public/sites/www.itiwana.org/SuiteCRM/include/MySugar/DashletsDialog/DashletsDialog.php</b> on line <b>172</b><br />
response = {"html":"<div align=\"right\" id=\"dashletSearch\">\n\t<table>\n\t\t<tr>\n\t\t\t<td>Find SuiteCRM Dashlet: <input id=\"search_string\" type=\"text\" length=\"15\" onKeyPress=\"javascript:if(event.keyCode==13)SUGAR.mySugar.searchDashlets(this.value,document.getElementById('search_category').value);\"  title=\"Find SuiteCRM Dashlet\"\/>\n\t\t\t<input type=\"button\" class=\"button\" value=\"Search\" 

commenting out line 172 in DashletsDialog.php kinda gives me a workaround on the error, just throws a ton of 403 errors in the logs now. Ive got as far as stating that $dashletsFiles[$className] is an array that does NOT contain ‘module’ and thats what causing the syntax error but I’ve got no idea how to fix it.

I’m new to this myself, but during my early testing, every time I saw “Undefined” it was caused by the server files having the wrong permissions.

it shouldnt be permissions, got everything set on 775 recursing in all subdirectories and files. Though it seems to reset some permissions from time to time to xxx. unsure why though. But ill look into it again

commenting out the line is a workaround but its throwing 403 errors in the console now. Can use dashlets normally though