Customer Portal: Ajax Error Viewing Record - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forum-17.html) +--- Forum: Administrator Support (https://discussions.corebos.org/forum-8.html) +--- Thread: Customer Portal: Ajax Error Viewing Record (/thread-70.html) |
Customer Portal: Ajax Error Viewing Record - mweaver - 11-26-2014 Afternoon, I got a call this afternoon from a client to let me know she's getting an Ajax error when trying to view a trouble-ticket in the customer portal. I checked into it and was easily able to reproduce the error, so I was wondering what could be causing the problem. She was clicking on the view icon, however I noticed that clicking on the TT number of TT name resulted with the same error. Re: Customer Portal: Ajax Error Viewing Record - joebordes - 11-26-2014 Could it be maybe some field that the REST user can't access? I'm not sure but we created a special interface for the tickets, if we are trying to access some field that is hidden it may fail. I just tested on the demo (<!-- m --><a class="postlink" href="http://corebos.org/demos/coreboscp">http://corebos.org/demos/coreboscp</a><!-- m -->) and it seems to be working ok. There is a log file that I think is activated by default in the protected/runtime/application.log have a look there to see if you can get a more specific error. Re: Customer Portal: Ajax Error Viewing Record - mweaver - 11-26-2014 Hi Joe, It does appear to be acting like a permissions thing, but it's not completely clear from looking at the log. Code: 2014/11/26 17:13:42 [error] [php] Invalid argument supplied for foreach() (/var/www/html/apps/coreboscp/protected/runtime/views/a121dfb9/_comments.php:36) Re: Customer Portal: Ajax Error Viewing Record - joebordes - 11-26-2014 Try this change I just uploaded: <!-- m --><a class="postlink" href="https://github.com/tsolucio/coreBOSCP/commit/8239fc87a95b9599d072ff3a6121fdfdabd55ca1">https://github.com/tsolucio/coreBOSCP/c ... fdabd55ca1</a><!-- m --> Re: Customer Portal: Ajax Error Viewing Record - mweaver - 11-27-2014 Its strange but it's still tossing the same error when attempting to view a trouble ticket. Opening it for an edit works fine of the CP, but viewing doesn't work. The CP user has create, edit, view privileges set in the system. Unless there are other settings in the system for CP and CP/user I'm not sure what else it could be. Re: Customer Portal: Ajax Error Viewing Record - mweaver - 11-28-2014 Hi Joe, Thank you... it's working now. sweet! Re: Customer Portal: Ajax Error Viewing Record - joebordes - 11-28-2014 just for the records: Mark let me in to his install and I reviewed the error. In the end it was an error in the comments and timecontrol records on help desk custom view. I added the fix to the project on GitHub Have a nice weekend all <!-- s:-) --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |