Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Using Embedded Comment Crashes Server?
jaredNZ
New
This is fairly drastic and I have no idea how its happening, but if I:
Put a valid vanilla_sso, and
Use the comment embedding javascript,
With a DIV id: vanilla-comments,
Then it totally crashes the apache server and I have to reboot the server.
Is there some way there could be an infinite PHP loop from the vanilla script? Perhaps an invalid cURL pointer?
Tagged:
0
Comments
PS: I want to enable embed comments at the bottom of this page: http://www.quantconnect.com/docs/QuickStart#1.2.5
version?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Hmm.. where do I find my version number?
it does sound like an curl issue or maybe DOMDocument related.
you should set up and check logs
grep is your friend.
I checked apache's logs, it doesn't show anything -- i.e. doesn't show the page as accessed or documents served at all. So seems like PHP is in an infinite loop. The embed.js generates the iFrame but its white -- so its like the bug occurs when the iFrame tries to navigate to its target?
are saying you are DOSing yourself?
normally redirection loops are broken, they aren't allowed to go on forever.
what does the access log say?
grep is your friend.
@x00 lol. Yes it looks like that, but the Apache logs show nothing --> Literally no visits. It happens when the embedded iFrame tries to navigate to "forum/index.php?p=/vanilla/embed..."
I'll enable debug mode and see if there's something obvious.
Enabling debug mode:
Fatal Error in Gdn_Autoloader.RegisterMap();
// Allow intrinsic ordering / layering of contexts by prefixing them with a context number
$MapHash = 'context:'.GetValue($ContextType, array_flip(self::$ContextOrder)).''.$Extension.''.$MapHash;
Only variables should be passed by reference
When navigating to this URL:
http://localhost/forum/index.php?p=/vanilla/discussion/embed/?vanilla_discussion_id=0&vanilla_identifier=docs/QuickStart&vanilla_type=page&vanilla_name=&vanilla_url=http://localhost/docs/QuickStart&vanilla_body=&vanilla_category_id=
I fixed it in localhost by deleting database and re-installing fresh. This isn't an option on the production website though.
Is there some way to transfer the discussions to a fresh vanilla install?
export and import the database.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@jaredNZ there is an addon called Porter Core available in the addon section. It will let you export from Vanilla 2. For a step by step guide, check out the wiki.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Thanks @hgtonight, it didn't work actually. I had to use MySQL manual import for future reference.