Menu

#8 More PHP problems

1.0
closed
nobody
None
2016-03-05
2015-09-10
No

We are getting close. I'm able to upload PDB files and submit crash reports which are being analysed. I can view the reports and the uploaded PDB files hoever The navigation links Digest, Collections and Bugs are not working.

I am getting 500 error when clicking either the Collections or Bugs link. Reports and Debug info work fine.

Navigation: Collections
URL: /crashfix/index.php/crashGroup/index

Navigation: Bugs
URL: /crashfix/index.php/bug/index

Both of the above result the folowing on screen error:-

Error 500
Illegal string offset 'userId'

The application.log shows:-
2015/09/10 19:40:38 [error] [php] Illegal string offset 'userId' (/var/www/html/crashfix/protected/framework/web/auth/CDbAuthManager.php:97)
Stack trace:

0 /var/www/html/crashfix/protected/views/crashGroup/index.php(66): WebUser->checkAccess()

1 /var/www/html/crashfix/protected/framework/web/CBaseController.php(126): require()

2 /var/www/html/crashfix/protected/framework/web/CBaseController.php(95): CrashGroupController->renderInternal()

3 /var/www/html/crashfix/protected/framework/web/CController.php(869): CrashGroupController->renderFile()

4 /var/www/html/crashfix/protected/framework/web/CController.php(782): CrashGroupController->renderPartial()

5 /var/www/html/crashfix/protected/controllers/CrashGroupController.php(65): CrashGroupController->render()

6 /var/www/html/crashfix/protected/framework/web/actions/CInlineAction.php(49): CrashGroupController->actionIndex()

7 /var/www/html/crashfix/protected/framework/web/CController.php(308): CInlineAction->runWithParams()

8 /var/www/html/crashfix/protected/framework/web/filters/CFilterChain.php(133): CrashGroupController->runAction()

9 /var/www/html/crashfix/protected/framework/web/filters/CFilter.php(40): CFilterChain->run()

10 /var/www/html/crashfix/protected/framework/web/CController.php(1145): CAccessControlFilter->filter()

11 /var/www/html/crashfix/protected/framework/web/filters/CInlineFilter.php(58): CrashGroupController->filterAccessControl()

12 /var/www/html/crashfix/protected/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()

13 /var/www/html/crashfix/protected/framework/web/CController.php(291): CFilterChain->run()

14 /var/www/html/crashfix/protected/framework/web/CController.php(265): CrashGroupController->runActionWithFilters()

15 /var/www/html/crashfix/protected/framework/web/CWebApplication.php(282): CrashGroupController->run()

16 /var/www/html/crashfix/protected/framework/web/CWebApplication.php(141): CWebApplication->runController()

17 /var/www/html/crashfix/protected/framework/base/CApplication.php(180): CWebApplication->processRequest()

18 /var/www/html/crashfix/index.php(17): CWebApplication->run()

REQUEST_URI=/crashfix/index.php/crashGroup/index

Navigation: Digest
URL: /crashfix/index.php/site/index

Displays the wait icon indefinately

For this the application log shows:-
2015/09/10 19:47:00 [error] [php] Couldn't find autoload directory '/var/www/html/crashfix/protected/vendors/ezcomponents/Base/src/../../autoload/' (/var/www/html/crashfix/protected/vendors/ezcomponents/Base/src/base.php:206)
Stack trace:

0 /var/www/html/crashfix/protected/models/CrashReport.php(1584): spl_autoload_call()

1 /var/www/html/crashfix/protected/controllers/CrashReportController.php(547): generateOSVersionDistributionGraph()

2 unknown(0): CrashReportController->actionOsVersionDist()

3 /var/www/html/crashfix/protected/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs()

4 /var/www/html/crashfix/protected/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal()

5 /var/www/html/crashfix/protected/framework/web/CController.php(308): CInlineAction->runWithParams()

6 /var/www/html/crashfix/protected/framework/web/filters/CFilterChain.php(133): CrashReportController->runAction()

7 /var/www/html/crashfix/protected/framework/web/filters/CFilter.php(40): CFilterChain->run()

8 /var/www/html/crashfix/protected/framework/web/CController.php(1145): CAccessControlFilter->filter()

9 /var/www/html/crashfix/protected/framework/web/filters/CInlineFilter.php(58): CrashReportController->filterAccessControl()

10 /var/www/html/crashfix/protected/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()

11 /var/www/html/crashfix/protected/framework/web/CController.php(291): CFilterChain->run()

12 /var/www/html/crashfix/protected/framework/web/CController.php(265): CrashReportController->runActionWithFilters()

13 /var/www/html/crashfix/protected/framework/web/CWebApplication.php(282): CrashReportController->run()

14 /var/www/html/crashfix/protected/framework/web/CWebApplication.php(141): CWebApplication->runController()

15 /var/www/html/crashfix/protected/framework/base/CApplication.php(180): CWebApplication->processRequest()

16 /var/www/html/crashfix/index.php(17): CWebApplication->run()

REQUEST_URI=/crashfix/index.php/crashReport/osVersionDist?w=684&h=200

Discussion

  • zexspectrum

    zexspectrum - 2015-09-11

    I tried to fix this. Can you please test new tar.gz archive? Please tell me if you detect any further problems.

     
  • Gordon Cmley

    Gordon Cmley - 2015-09-11

    Partial success.

    I can now see the Digest page and I can view the list of collections and bugs but when I click on either a collection or a bug I get a 500 error. The application shows the same call stack for both problems.

                Click on a collection results:-
                2015/09/11 14:41:06 [error] [php] Illegal string offset 'userId' (/var/www/html/crashfix/protected/framework/web/auth/CDbAuthManager.php:97)
                Stack trace:
                #0 /var/www/html/crashfix/protected/views/crashGroup/view.php(18): WebUser->checkAccess()
                #1 /var/www/html/crashfix/protected/framework/web/CBaseController.php(126): require()
                #2 /var/www/html/crashfix/protected/framework/web/CBaseController.php(95): CrashGroupController->renderInternal()
                #3 /var/www/html/crashfix/protected/framework/web/CController.php(869): CrashGroupController->renderFile()
                #4 /var/www/html/crashfix/protected/framework/web/CController.php(782): CrashGroupController->renderPartial()
                #5 /var/www/html/crashfix/protected/controllers/CrashGroupController.php(104): CrashGroupController->render()
                #6 unknown(0): CrashGroupController->actionView()
                #7 /var/www/html/crashfix/protected/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
                #8 /var/www/html/crashfix/protected/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal()
                #9 /var/www/html/crashfix/protected/framework/web/CController.php(308): CInlineAction->runWithParams()
                #10 /var/www/html/crashfix/protected/framework/web/filters/CFilterChain.php(133): CrashGroupController->runAction()
                #11 /var/www/html/crashfix/protected/framework/web/filters/CFilter.php(40): CFilterChain->run()
                #12 /var/www/html/crashfix/protected/framework/web/CController.php(1145): CAccessControlFilter->filter()
                #13 /var/www/html/crashfix/protected/framework/web/filters/CInlineFilter.php(58): CrashGroupController->filterAccessControl()
                #14 /var/www/html/crashfix/protected/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()
                #15 /var/www/html/crashfix/protected/framework/web/CController.php(291): CFilterChain->run()
                #16 /var/www/html/crashfix/protected/framework/web/CController.php(265): CrashGroupController->runActionWithFilters()
                #17 /var/www/html/crashfix/protected/framework/web/CWebApplication.php(282): CrashGroupController->run()
                #18 /var/www/html/crashfix/protected/framework/web/CWebApplication.php(141): CWebApplication->runController()
                #19 /var/www/html/crashfix/protected/framework/base/CApplication.php(184): CWebApplication->processRequest()
                #20 /var/www/html/crashfix/index.php(17): CWebApplication->run()
                REQUEST_URI=/crashfix/index.php/crashGroup/view/4
    
                Click on a bug results in:-
                2015/09/11 14:42:28 [error] [php] Illegal string offset 'userId' (/var/www/html/crashfix/protected/framework/web/auth/CDbAuthManager.php:97)
                Stack trace:
                #0 /var/www/html/crashfix/protected/views/bug/view.php(19): WebUser->checkAccess()
                #1 /var/www/html/crashfix/protected/framework/web/CBaseController.php(126): require()
                #2 /var/www/html/crashfix/protected/framework/web/CBaseController.php(95): BugController->renderInternal()
                #3 /var/www/html/crashfix/protected/framework/web/CController.php(869): BugController->renderFile()
                #4 /var/www/html/crashfix/protected/framework/web/CController.php(782): BugController->renderPartial()
                #5 /var/www/html/crashfix/protected/controllers/BugController.php(81): BugController->render()
                #6 unknown(0): BugController->actionView()
                #7 /var/www/html/crashfix/protected/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
                #8 /var/www/html/crashfix/protected/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal()
                #9 /var/www/html/crashfix/protected/framework/web/CController.php(308): CInlineAction->runWithParams()
                #10 /var/www/html/crashfix/protected/framework/web/filters/CFilterChain.php(133): BugController->runAction()
                #11 /var/www/html/crashfix/protected/framework/web/filters/CFilter.php(40): CFilterChain->run()
                #12 /var/www/html/crashfix/protected/framework/web/CController.php(1145): CAccessControlFilter->filter()
                #13 /var/www/html/crashfix/protected/framework/web/filters/CInlineFilter.php(58): BugController->filterAccessControl()
                #14 /var/www/html/crashfix/protected/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()
                #15 /var/www/html/crashfix/protected/framework/web/CController.php(291): CFilterChain->run()
                #16 /var/www/html/crashfix/protected/framework/web/CController.php(265): BugController->runActionWithFilters()
                #17 /var/www/html/crashfix/protected/framework/web/CWebApplication.php(282): BugController->run()
                #18 /var/www/html/crashfix/protected/framework/web/CWebApplication.php(141): CWebApplication->runController()
                #19 /var/www/html/crashfix/protected/framework/base/CApplication.php(184): CWebApplication->processRequest()
                #20 /var/www/html/crashfix/index.php(17): CWebApplication->run()
                REQUEST_URI=/crashfix/index.php/bug/view/1
    
     
  • Gordon Cmley

    Gordon Cmley - 2015-09-16

    Any progress on the latest problems described above?

     
  • zexspectrum

    zexspectrum - 2015-09-21

    I uploaded the fixed tar.gz and .zip archives. Can you please try?

     
  • Gordon Cmley

    Gordon Cmley - 2015-09-21

    Thanks, just installed the latest tar ball and it looks good so far. Obviously it will take a little while to be certain but looks very promising.

     
  • zexspectrum

    zexspectrum - 2016-03-05
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.