Replying to a case through portal shows raw data

Hello,

I want to share a problem that I have with the Advanced Open Portal module, just in case somebody has any idea about the cause and how to fix it.

When a (test) portal user replies to an existing case through the portal (joomla 3.2), a ‘blank’ page appears with content that looks like this

{"id":"14fa4782-a111-d4a4-3df5-52d3c4c8ad3f","name":"2) Client reply from HELP DESK...","date_entered_display":"13\/01\/2014 10:47","date_entered":"2014-01-13 10:47:50","date_modified_display":"13\/01\/2014 10:47","date_modified":"2014-01-13 10:47:50","description":"2) Client reply from HELP DESK...","contact_id":"8b54ff3f-eb6d-67da-04db-51ee62f57196","internal":"","assigned_user_id":"","contact":[{"id":"8b54ff3f-eb6d-67da-04db-51ee62f57196","first_name":"Company","last_name":"X\u03a5\u0396","date_entered":"2013-08-04 12:49:00","date_modified":"2014-01-09 16:01:54","description":"","type":"contact"}],"poster":{"id":"8b54ff3f-eb6d-67da-04db-51ee62f57196","first_name":"Company","last_name":"X\u03a5\u0396","date_entered":"2013-08-04 12:49:00","date_modified":"2014-01-09 16:01:54","description":"","type":"contact"}}

The url of the page has this form:
index.php/list-tickets?option=com_advancedopenportal&task=addupdate&format=raw

The user is not automatically redirected to the updated case but if he presses the back button he can see the case which is normally updated with his new reply.

When I create a new case there is no such problem.

Can anybody confirm the described behavior?

Some extra info: The used Joomla version is 3.2 installed on a Windows :dry: server with IIS 7.5 :frowning: while the related suitecrm installation is on a Linux Ubuntu 12.04 :cheer: server with Apache .

Thanks in advance for any related info that may help!

Regards,
George

Something extra that may help:

When I press the ‘Send Reply’ button I can see (for a one or two seconds before the appearance of the blank page) the following error in firebug console.

TypeError: jQuery(...).ajaxSubmit is not a function
http://portaldomail.tld/index.php/list-tickets?option=com_advancedopenportal&view=showcase&id=136f51a9-ed9d-690f-2407-52d3c566ec5e
Line 142

Any ideas?

Thanks,
George

Hi George,

Sorry you’re having issues. Can you try a few things:

Ensure that

components/com_advancedopenportal/js/jquery.form.min.js

exists and is included.

If it does could you try editing the js in

components/com_advancedopenportal/views/showcase/tmpl/default.php

and replacing the line:

jQuery(this).ajaxSubmit(options);

with

$(this).ajaxSubmit(options);

Thanks,
Jim

2 Likes

Hi Jim,

Thanks a lot for your valuable help!

It worked!

I saw one more similar error:
TypeError: jQuery(…).prettyDate is not a function
jQuery(“a”).prettyDate();

which also disappeared when I made a similar change inside components/com_advancedopenportal/views/showcase/tmpl/default.php :
from

jQuery("a").prettyDate();

to

$("a").prettyDate();

[color=#ff0000]Edit[/color]: Is this a bug that will be fixed in a future release?

You are great! SuiteCRM is great! F.O.S.S. rocks!

Thanks again,
George