Git Product home page Git Product logo

Comments (10)

javuto avatar javuto commented on August 19, 2024 1

Can you check for errors in /var/log/hhvm/error.log? Do other operations that involve database write access work? For example, can you create new teams or categories? Can you create new Quiz levels?

from fbctf.

marjoripomarole avatar marjoripomarole commented on August 19, 2024 1

Did you refresh the page after adding the level? We don't have those actions ajaxified yet so you would need a refresh to see the new challenge.

from fbctf.

gsingh93 avatar gsingh93 commented on August 19, 2024 1

If the challenge was created but the page required a manual refresh, that's a bug as well. The page should refresh automatically.

I'd like to see /var/log/hhvm/error.log as well.

from fbctf.

abelliumnt avatar abelliumnt commented on August 19, 2024

Thanks for your kingly help. As you have suggested, I check these aspects:

  1. I can create create new teams or categories successfully.
  2. I tried to refresh the page but no new flag level was created.
  3. For /var/log/hhvm/error.log. Once I click create button in adding flag level, there will be a new line in /var/log/hhvm/error.log:

[Sat May 14 19:50:44 2016] [hphp] [1014:7f1661fff700:7:000001] [] \nFatal error: Uncaught exception 'HH\InvariantException' with message 'Expected points to be an int' in /var/www/fbctf/src/Utils.php:30\nStack trace:\n#0 /var/www/fbctf/src/Utils.php(30): HH\invariant_violation()\n#1 /var/www/fbctf/src/controllers/ajax/AdminAjaxController.php(202): must_have_int()\n#2 /var/www/fbctf/src/controllers/ajax/AjaxController.php(14): AdminAjaxController->genHandleAction()\n#3 /var/www/fbctf/src/Router.php(54): AjaxController->genHandleRequest()\n#4 /var/www/fbctf/src/Router.php(13): Router::genRouteAjax()\n#5 /var/www/fbctf/src/index.php(7): Router::genRoute()\n#6 /var/www/fbctf/src/index.php(19): genInit()\n#7 {main}
So it seems that clicking create button result in an error.

from fbctf.

abelliumnt avatar abelliumnt commented on August 19, 2024

The error message is a call stack:
Fatal error: Uncaught exception 'HH\InvariantException' with message 'Expected points to be an int' in /var/www/fbctf/src/Utils.php:30
Stack trace:
#0 /var/www/fbctf/src/Utils.php(30): HH\invariant_violation()
#1 /var/www/fbctf/src/controllers/ajax/AdminAjaxController.php(202): must_have_int()
#2 /var/www/fbctf/src/controllers/ajax/AjaxController.php(14): AdminAjaxController->genHandleAction()
#3 /var/www/fbctf/src/Router.php(54): AjaxController->genHandleRequest()
#4 /var/www/fbctf/src/Router.php(13): Router::genRouteAjax()
#5 /var/www/fbctf/src/index.php(7): Router::genRoute()
#6 /var/www/fbctf/src/index.php(19): genInit()\n#7 {main}
It seems that the code has some defects.

from fbctf.

marjoripomarole avatar marjoripomarole commented on August 19, 2024

@xiaji261 what version of hhvm are you running? You can call hhvm --version to check it out.

from fbctf.

abelliumnt avatar abelliumnt commented on August 19, 2024

@mpomarole I executed your command and this is the result:
lhy@ubuntu:~$ hhvm --version
HipHop VM 3.13.1 (rel)
Compiler: tags/HHVM-3.13.1-0-g4f382ad928a6e2a0607a8dcb251002aca77f11f6
Repo schema: 655b5912cb8136e9df6f9be972153e38ac446e0f

from fbctf.

gsingh93 avatar gsingh93 commented on August 19, 2024

Expected points to be an int

What value are you using for points?

from fbctf.

abelliumnt avatar abelliumnt commented on August 19, 2024

@gsingh93 Thanks for your kindly help. Previously I input a string for points. Now my problem is solved. Thanks for all your help.

from fbctf.

gsingh93 avatar gsingh93 commented on August 19, 2024

No problem. I will add some client side validation in the future to make sure that's an int.

from fbctf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.