We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a031d0 commit fb2ed4fCopy full SHA for fb2ed4f
lib/class-wp-php-console.php
@@ -65,7 +65,8 @@ public function __construct() {
65
// By default PHP Console uses PhpConsole\Storage\Session for postponed responses,
66
// so all temporary data will be stored in $_SESSION.
67
// But there is some problem with frameworks like WordPress that override PHP session handler.
68
- PhpConsole\Connector::setPostponeStorage( new PhpConsole\Storage\File( '/tmp/pc.data' ) );
+ // So we need to call the Storage session very early.
69
+ PhpConsole\Connector::setPostponeStorage( new PhpConsole\Storage\Session() );
70
71
// Perform PHP Console initialisation required asap for other code to be able to output to the JavaScript console
72
$connector = PhpConsole\Connector::getInstance();
0 commit comments