Page MenuHomePhabricator

Fix variable issue on Conpherence draft saving pathway
ClosedPublic

Authored by epriestley on Feb 24 2014, 7:48 PM.
Tags
None
Referenced Files
F19053051: D8323.diff
Fri, Nov 28, 7:04 AM
F18837319: D8323.id.diff
Oct 27 2025, 4:54 AM
F18834163: D8323.diff
Oct 26 2025, 7:01 AM
F18830101: D8323.id19794.diff
Oct 25 2025, 4:12 AM
F18828085: D8323.id19795.diff
Oct 24 2025, 2:10 PM
F18821659: D8323.id.diff
Oct 23 2025, 1:05 AM
F18044489: D8323.id19795.diff
Aug 3 2025, 7:18 AM
F17961476: D8323.diff
Aug 1 2025, 9:45 AM
Subscribers

Details

Summary

When we save a Conpherence draft, the draft part works fine but $xactions never gets defined, so this gets hit a little later on:

[24-Feb-2014 11:46:10] WARNING: [pool www] child 82805 said into stderr: "NOTICE: PHP message: [2014-02-24 11:46:10] EXCEPTION: (RuntimeException) Undefined variable: xactions at [/INSECURE/devtools/libphutil/src/error/PhutilErrorHandler.php:211]"
[24-Feb-2014 11:46:10] WARNING: [pool www] child 82805 said into stderr: "NOTICE: PHP message:   #0 PhutilErrorHandler::handleError(8, Undefined variable: xactions, /INSECURE/devtools/phabricator/src/applications/conpherence/controller/ConpherenceUpdateController.php, 122, Array of size 13 starting with: { request => Object AphrontRequest }) called at [/INSECURE/devtools/phabricator/src/applications/conpherence/controller/ConpherenceUpdateController.php:122]"
[24-Feb-2014 11:46:10] WARNING: [pool www] child 82805 said into stderr: "NOTICE: PHP message:   #1 ConpherenceUpdateController::processRequest() called at [/INSECURE/devtools/phabricator/webroot/index.php:87]"

Instead, define $xactions.

Test Plan
  • Type into Conpherence while tailing the error log.
  • After patch, clean error log.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Thank you sir. Apologies for putting poop in your error log.

haha, no problem. I think we intentionally ignore errors in ShapedRequest, which is most of the root cause here. A more systematic fix might be to ignore errors only in production, but as long as we're only hitting this kind of thing a couple times a year I'm inclined not to bother.