Comments (10)
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.
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.
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.
Thanks for your kingly help. As you have suggested, I check these aspects:
- I can create create new teams or categories successfully.
- I tried to refresh the page but no new flag level was created.
- 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.
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.
@xiaji261 what version of hhvm are you running? You can call hhvm --version
to check it out.
from fbctf.
@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.
Expected points to be an int
What value are you using for points?
from fbctf.
@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.
No problem. I will add some client side validation in the future to make sure that's an int.
from fbctf.
Related Issues (20)
- Cannot choose team shield in Chrome HOT 1
- Possible to do a combination of flag and quiz?
- FianGanz
- Changing country names to custom HOT 1
- Requirements HOT 1
- Welcome Message
- opensource.facebook.com redirection HOT 1
- Problem with composer HOT 1
- Graph is missing HOT 1
- Nginx error HOT 1
- first_capture and completed_by are not updating HOT 4
- Multiple challenges per country
- Dead project? HOT 3
- ERR_TOO_MANY_REDIRECTS HOT 1
- Game clock is out of sync to Game schedule
- Link to collegiate - focused challenges (In FAQ) is dead
- How can I change default port fbctf with docker HOT 1
- Locked out of UI HOT 1
- mySQL "too many connections" error HOT 1
- how to acces from my ip direct - without Vagrant?! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbctf.