Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Customer Portal: Ajax Error Viewing Record
#1
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.


Attached Files Image(s)
   
Mark

[i]If I could work while on horseback that's where I'd be doing it. There's nothing like riding... Gives new meaning to the phrase, ride to live... live to ride.[/i]
Reply
#2
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.
Joe
TSolucio
Reply
#3
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)
Stack trace:
#0 /var/www/html/apps/coreboscp/yii/web/CBaseController.php(94): CPradoViewRenderer->renderFile()
#1 /var/www/html/apps/coreboscp/yii/web/CController.php(870): HelpDeskController->renderFile()
#2 /var/www/html/apps/coreboscp/protected/runtime/views/a121dfb9/_view.php(41): HelpDeskController->renderPartial()
#3 /var/www/html/apps/coreboscp/yii/web/CBaseController.php(131): require()
#4 /var/www/html/apps/coreboscp/yii/web/renderers/CViewRenderer.php(76): HelpDeskController->renderInternal()
#5 /var/www/html/apps/coreboscp/yii/web/CBaseController.php(94): CPradoViewRenderer->renderFile()
#6 /var/www/html/apps/coreboscp/yii/zii/widgets/CListView.php(260): HelpDeskController->renderFile()
#7 /var/www/html/apps/coreboscp/yii/zii/widgets/CBaseListView.php(161): CListView->renderItems()
#8 unknown(0): CListView->renderSection()
#9 /var/www/html/apps/coreboscp/yii/zii/widgets/CBaseListView.php(144): preg_replace_callback()
#10 /var/www/html/apps/coreboscp/yii/zii/widgets/CBaseListView.php(129): CListView->renderContent()
#11 /var/www/html/apps/coreboscp/yii/web/CBaseController.php(174): CListView->run()
#12 /var/www/html/apps/coreboscp/protected/runtime/views/a121dfb9/index.php(36): HelpDeskController->widget()
#13 /var/www/html/apps/coreboscp/yii/web/CBaseController.php(127): require()
#14 /var/www/html/apps/coreboscp/yii/web/renderers/CViewRenderer.php(76): HelpDeskController->renderInternal()
#15 /var/www/html/apps/coreboscp/yii/web/CBaseController.php(94): CPradoViewRenderer->renderFile()
#16 /var/www/html/apps/coreboscp/yii/web/CController.php(870): HelpDeskController->renderFile()
#17 /var/www/html/apps/coreboscp/yii/web/CController.php(783): HelpDeskController->renderPartial()
#18 /var/www/html/apps/coreboscp/protected/controllers/HelpdeskController.php(60): HelpDeskController->render()
#19 /var/www/html/apps/coreboscp/yii/web/actions/CInlineAction.php(50): HelpDeskController->actionList()
#20 /var/www/html/apps/coreboscp/yii/web/CController.php(309): CInlineAction->runWithParams()
#21 /var/www/html/apps/coreboscp/yii/web/filters/CFilterChain.php(134): HelpDeskController->runAction()
#22 /var/www/html/apps/coreboscp/yii/web/filters/CFilter.php(41): CFilterChain->run()
#23 /var/www/html/apps/coreboscp/yii/web/CController.php(1146): CAccessControlFilter->filter()
#24 /var/www/html/apps/coreboscp/yii/web/filters/CInlineFilter.php(59): HelpDeskController->filterAccessControl()
#25 /var/www/html/apps/coreboscp/yii/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#26 /var/www/html/apps/coreboscp/yii/web/CController.php(292): CFilterChain->run()
#27 /var/www/html/apps/coreboscp/yii/web/CController.php(266): HelpDeskController->runActionWithFilters()
#28 /var/www/html/apps/coreboscp/yii/web/CWebApplication.php(283): HelpDeskController->run()
#29 /var/www/html/apps/coreboscp/yii/web/CWebApplication.php(142): vtyiiCPngApplication->runController()
#30 /var/www/html/apps/coreboscp/yii/base/CApplication.php(162): vtyiiCPngApplication->processRequest()
#31 /var/www/html/apps/coreboscp/index.php(89): vtyiiCPngApplication->run()
REQUEST_URI=/index.php/vtentity/HelpDesk/list/9x9953/dvcpage/1
Mark

[i]If I could work while on horseback that's where I'd be doing it. There's nothing like riding... Gives new meaning to the phrase, ride to live... live to ride.[/i]
Reply
#4
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 -->
Joe
TSolucio
Reply
#5
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.
Mark

[i]If I could work while on horseback that's where I'd be doing it. There's nothing like riding... Gives new meaning to the phrase, ride to live... live to ride.[/i]
Reply
#6
Hi Joe,

Thank you... it's working now. sweet!
Mark

[i]If I could work while on horseback that's where I'd be doing it. There's nothing like riding... Gives new meaning to the phrase, ride to live... live to ride.[/i]
Reply
#7
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:-) -->
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)