Menu
SuiteCRM dedicated support by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: AJAX error for some users when going to the view a list of contacts

AJAX error for some users when going to the view a list of contacts 4 months 1 week ago #67864

  • dmcguire
  • dmcguire's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
For some users, the message:

There was an error processing your request, please try again at a later time./ If this error persists, please have your administrator disable Ajax for this module

Appears when going to view the list of contacts.

An error is thrown in the browser:

"AjaxUI error parsing response" in sugar_grp1.js

A quick repair does not change the symptoms.

There are no errors thrown in suitecrm.log or in the server's httpd error log.

This is on SuiteCRM 7.10.6 and was first reported after an upgrade to 7.10.5 from 7.10.1.

Any suggestions are welcome and appreciated.

-Darrell
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 4 months 1 week ago #67892

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
Can you reproduce this in the live demo?

suitecrm.com/demo

You can try some other repairs from Admin / Repair (anything javacsript related)

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 4 months 4 days ago #67976

  • dmcguire
  • dmcguire's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
I've done all Javascript related rebuilds/ fixes.
I've been unable to duplicate the issue in the sandbox.

For most users it is fine. For a few it is not. If I turn off AJAX for that module, then I get a terse screen with only the ability to add a new contact.
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 4 months 4 days ago #67986

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
That error you mentioned (AjaxUI error parsing response" in sugar_grp1.js) is that on the page itself, or on the Browser's Developer console?

If it is on the page, check also the console, please.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 4 months 4 days ago #67987

  • dmcguire
  • dmcguire's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
The reference to sugar_grp1.js is only visible through the browser's console.
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 4 months 4 days ago #67994

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
Ok, thanks. And in the Developer console, please go to the Network tab and reload the page with the error.

Then tell me if you see any HTTP request there with a failure (like a 500 error), and any additional info it shows in that error.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 4 months 4 days ago #67998

  • dmcguire
  • dmcguire's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
Error:

HTTP500: SERVER ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.
(XHR)GET - www.DOMAINNAMEGOESHERE.com/crm/index.php...d=1&loadLanguageJS=1


Code:

var panel=SUGAR.ajaxUI.errorPanel;panel.setHeader(SUGAR.language.get('app_strings','ERR_AJAX_LOAD'));panel.setBody('<iframe id="ajaxErrorFrame" style="width:780px;height:550px;border:none;marginheight="0" marginwidth="0" frameborder="0""></iframe>');panel.setFooter(SUGAR.language.get('app_strings','ERR_AJAX_LOAD_FOOTER'));panel.render(document.body);SUGAR.util.doWhen(function(){var f=document.getElementById("ajaxErrorFrame");return f!=null&&f.contentWindow!=null&&f.contentWindow.document!=null;},function(){document.getElementById("ajaxErrorFrame").contentWindow.document.body.innerHTML=errorMessage;window.setTimeout('throw "AjaxUI error parsing response"',300);});SUGAR.ajaxUI.errorMessage=errorMessage;window.setTimeout('if((typeof(document.getElementById("ajaxErrorFrame")) == "undefined" || typeof(document.getElementById("ajaxErrorFrame")) == null || document.getElementById("ajaxErrorFrame").contentWindow.document.body.innerHTML == "")){document.getElementById("ajaxErrorFrame").contentWindow.document.body.innerHTML=SUGAR.ajaxUI.errorMessage;}',3000);panel.show();panel.center();throw"AjaxUI error parsing response";},canAjaxLoadModule:function(module)


Request Headers

Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-US, en; q=0.5
Cache-Control: no-cache
Connection: Keep-Alive
Cookie: sugar_user_theme=SuiteP; EmailGridWidths=0=10&1=10&2=150&3=250&4=175&5=125; ck_login_language_20=en_us; ck_login_id_20=48931375-e67e-01f6-9702-5b22947e64f8; PHPSESSID=1831da6c85fd9157089450bce5dc97e9
Host: www.baldwingroup.com
Referer: www.DOMAINNAMEGOESHERE.com/crm/index.php?action=ajaxui
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
X-Requested-With: XMLHttpRequest


Response Headers

Cache-Control: no-store, no-cache, must-revalidate
Connection: close
Content-Length: 3126
Content-Type: text/html; charset=UTF-8
Date: Fri, 15 Jun 2018 11:07:49 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Server: Apache/2.4.6 (CentOS) PHP/7.1.17 SVN/1.7.14 mod_wsgi/3.4 Python/2.7.5
Set-Cookie: ck_login_id_20=48931375-e67e-01f6-9702-5b22947e64f8; expires=Thu, 13-Sep-2018 11:07:49 GMT; Max-Age=7776000; path=/; domain=www.DOMAINNAMEGOESHERE.com; HttpOnly
Set-Cookie: ck_login_language_20=en_us; expires=Thu, 13-Sep-2018 11:07:49 GMT; Max-Age=7776000; path=/; domain=www.DOMAINNAMEGOESHERE.com; HttpOnly
Set-Cookie: sugar_user_theme=SuiteP; expires=Sat, 15-Jun-2019 11:07:49 GMT; Max-Age=31536000; HttpOnly
X-Powered-By: PHP/7.1.17

The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 4 months 4 days ago #68002

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
I have a foggy memory of an issue just like this. It was related to "saved searches" on the list view. That's why it was user specific.

Let's try and clear the saved searches from those users.

Try entering this as your browser's URL:
http://localhost/index.php?action=index&module=Contacts&searchFormTab=advanced_search&query=true&clear_query=true

Change that "localhost" to be your server URL (like my.company.com).

This has to be done for each user that shows the error.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 4 months 4 days ago #68004

  • dmcguire
  • dmcguire's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
That totally fixed it; thanks!!!
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 1 week 6 days ago #72722

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • SuiteCRM Is My Life
  • Posts: 327
  • Thank you received: 30
  • Karma: 6
Not sure if I'm having the same trouble, but the error looks similar to me. Unfortunately I'm getting a 500 internal server error also for your fixer-upper URL
http://localhost/index.php?action=index&module=Contacts&searchFormTab=advanced_search&query=true&clear_query=true

I seem to be getting this error for all AJAX modules. e.g. leads module. I can open detail/editview of individual record no problem. But listview doesn't load.

"There was an error processing your request, please try again at a later time."

JS Console showing multiple entries:
>Failed to decode downloaded font: crmtest.ezs.ch/themes/SuiteP/fonts/glyph...alflings-regular.ttf
>GET /index.php?module=Leads&action=index&parentTab=Addressbuch&ajax_load=1&loadLanguageJS=1 500 (Internal Server Error)
>Uncaught AjaxUI error parsing response
>GET /cache/index.php?entryPoint=getImage&themeName=SuiteP&imageName=dashletclose.png 403 (Forbidden)

All of them referring to one of these:
/cache/include/javascript/sugar_grp1_yui.js
/cache/include/javascript/sugar_grp1.js
/cache/themes/SuiteP/js/style.js



When trying to load your link (/index.php?action=index&module=Leads&searchFormTab=advanced_search&query=true&clear_query=true) I get
> GET /index.php?action=index&module=Leads&searchFormTab=advanced_search&query=true&clear_query=true 500 (Internal Server Error)


Any ideas?
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 1 week 6 days ago #72723

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
For a 500 error I would look at the PHP Fatal error in php_errors.log (or whatever your web server log is called).

You can also clear the filter form the database. It's in table user_preferences, with a specific user_id and a specific "category" value... I don't remember which.

Try changing a filter from the UI and seeing what happens in that table. The actual filter goes, Base64 encoded, in the "content" field. To reset, you can remove the entire row or simply replace the content with one that is known to work (copied from some other user).

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 1 week 6 days ago #72729

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • SuiteCRM Is My Life
  • Posts: 327
  • Thank you received: 30
  • Karma: 6
I'm not seeing any php errors in my error log from loading that page. error_reporting is on E_ALL.

Interestingly if I turn on "display_errors on", I don't see any errors on the screen, instead I don't see the suitecrm error message anymore: "There was an error processing your request, please try again at a later time." it's just an empty popup with the same title "An error has occurred."

I do have a new error that popped up at some point, but I can't reproduce. Seems to have come from viewing the logs via SuiteCRM Admin.
[Tue Oct 09 14:46:02.659060 2018] [:error] [pid 8008] [client 213.160.35.9:52940] PHP Fatal error: Class 'LoggerManager' not found in [www-path]/include/ErrorMessage.php on line 121, referer: [www-path]/index.php?action=LogView&module=Configurator&doaction=all&filter=%3A
Last Edit: 1 week 6 days ago by John - EZS.
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 1 week 5 days ago #72768

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
Do you have the class definition?

include/SugarLogger/LoggerManager.php:45: class LoggerManager

Which version are you running, again?

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 1 week 3 days ago #72862

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • SuiteCRM Is My Life
  • Posts: 327
  • Thank you received: 30
  • Karma: 6
Yes class LoggerManager in include/SugarLogger/LoggerManager.php looks fine to me.

I'm on a fresh upgrade from 7.4.1 to 7.10.9.
Upgrade procedures all went through without issues.
The administrator has disabled public write access.

AJAX error for some users when going to the view a list of contacts 1 week 3 days ago #72863

  • John - EZS
  • John - EZS's Avatar
  • Offline
  • SuiteCRM Is My Life
  • Posts: 327
  • Thank you received: 30
  • Karma: 6
Found the culprit in /custom/modules/<modulename>/views/view.list.php. Some old custom module had placed some code in here that SuiteCRM doesn't like anymore.

Still don't understand why I didn't see the 500 error in any of my logs...
I am seeing other PHP errors...
The administrator has disabled public write access.
Time to create page: 0.083 seconds
Powered by Kunena Forum