Coder Social home page Coder Social logo

unfulvio / wp-php-console Goto Github PK

View Code? Open in Web Editor NEW
96.0 6.0 14.0 738 KB

:pager: Implementation of PHP Console for WordPress.

Home Page: https://wordpress.org/plugins/wp-php-console/

License: GNU General Public License v3.0

PHP 91.68% JavaScript 8.32%
php-console php wordpress-development chrome-devtools chrome-dev php-development php-errors php-debug

wp-php-console's Introduction

wp-php-console's People

Contributors

gitter-badger avatar polfo avatar unfulvio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wp-php-console's Issues

Cannot send session cache limiter - headers already sent

Wordpress WPMU: 4.2.2
Theme: Twenty Fifteen
PHP: 5.4.40
All other plugins deactivated.

This error occurs at the bottom of the page:

Cannot send session cache limiter - headers already sent (output started at /home/odio/public_html/wp-includes/functions.php:3282) in /home/odio/public_html/wp-content/plugins/wp-php-console/vendor/php-console/php-console/src/PhpConsole/Storage/Session.php on line 25

In the Settings menu, the WP PHP Console isn't there, but the above error message is at the bottom of the page.

Load plugin on plugins_loaded instead of init.

Hi,

We are getting into some cases where PHP console is failed to collect the errors.
It is even throwing undefined PC class error if used as an open statement (without any callbacks) or any hook above 'init'.

I think it's better to move it on plugins_loaded with priority in negative as it might catch errors that cause during loading of plugins/themes.
What do you think?

Plugin breaks theme/plugin editor save

This is a fantastic plugin for debugging, but unfortunately it breaks some core WordPress functionality. When this plugin is active, it's not possible to save php-files through the WordPress theme/plugin editor. The save request always times out after 10 seconds . (Non-php files can be saved without problems.)

This issue also shows up in WordPress' Health Check as a failed loopback request:

The loopback request to your site failed, this may prevent WP_Cron from working, along with theme and plugin editors.
Error encountered: (0) cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received

Wrong PHP Console eval request signature

When I try to execute from the console, I get the error indicating that the request signature does not match the signature generated by the php console library (in Auth.php).

Plugin is installed. Password is set. I am receiving E_NOTICE, E_WARNING, etc. in my console. So I know it is working.

I tried the IP address mask field (, *..., my own IP, blank, etc.) - they all result in the same error

I am able to use http://162.250.145.84/php-console/examples/features/eval_terminal.php without issues, so the chrome extension is working properly.

I tried two different wordpress installs on two different hosting providers, same error.

How to avoid "Fatal error: Uncaught Error: Class 'PC' not found"

Hi Fulvio,

First I'd like to thank you for creating such a useful plugin for PHP developers in WP. I've read in your plugin page the reason why I'm getting the error Fatal error: Uncaught Error: Class 'PC' not found, but I could not understand 100% how to solve it.

When you write that we can use the following code bellow, where exactly should I place it in?

// PHP Console autoload
require_once dirname( __FILE__ ) . '/wp-php-console/vendor/autoload.php';

// make PC class available in global PHP scope
if ( ! class_exists( 'PC', false ) ) PhpConsole\Helper::register();

Enhancement: Additional PHP Console Options

It would be nice to have an option in WP PHP Console Settings to activate this code:

// reduce displayed SourcesPath
$connector = PhpConsole\Connector::getInstance();
$connector->setSourcesBasePath($_SERVER['DOCUMENT_ROOT']);

version 1.3.9

Hi there ,

I got the following fatal error:

Fatal error: Uncaught exception 'Exception' with message 'PhpConsole\Connector::setPostponeStorage can be called only before PhpConsole\Connector::getInstance()' in plugins\wp-php-console\vendor\php-console\php-console\src\PhpConsole\Connector.php:80 Stack trace: #0 plugins\wp-php-console\lib\class-wp-php-console.php(73):

Thanks

PHP Warning: session_start(): Cannot send session cache limiter - headers already sent

this seems an error that creeped out again

PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent (output started at /...path.../wp-includes/functions.php:3549) in /...path.../wp-content/plugins/wp-php-console/vendor/php-console/php-console/src/PhpConsole/Storage/Session.php on line 25

does not inhibit plugin functionalities and error is suppressed in Chrome console... but will show up and pollute logs

fatal error

Got the following error when I tried to activate the plugin

    Notice: Undefined index: args in /vagrant/wp/wp-includes/functions.php
    on line 4311

    Warning: require_once(/vagrant/content/plugins/wp-php-console-
    master/lib/php-console/src/PhpConsole/__autoload.php): failed to open
    stream: No such file or directory in /vagrant/content/plugins/wp-php-
    console-master/wp-php-console.php on line 28

    Fatal error: require_once(): Failed opening required
    '/vagrant/content/plugins/wp-php-console-master/lib/php-
    console/src/PhpConsole/__autoload.php'
    (include_path='.:/usr/share/php:/usr/share/pear') in
    /vagrant/content/plugins/wp-php-console-master/wp-php-console.php on
    line 28

The vagrant installation is https://github.com/Chassis/Chassis

Update for PHP > 8.0

Hello, I would like to ask if you could make a small update of the plugin for the php version above version 8, now the plugin works with version 8. But it returns a lot of warnings to the page

Warning: Private methods cannot be final as they are never overridden by other classes in D:\OpenServer\domains\fansy.loc\web\app\plugins\wp-php-console\vendor\php-console\php-console\src\PhpConsole\Connector.php on line 101

Deprecated: Required parameter $args follows optional parameter $key in D:\OpenServer\domains\fansy.loc\web\app\plugins\wp-php-console\vendor\php-console\php-console\src\PhpConsole\Connector.php on line 377

Warning: Private methods cannot be final as they are never overridden by other classes in D:\OpenServer\domains\fansy.loc\web\app\plugins\wp-php-console\vendor\php-console\php-console\src\PhpConsole\Auth.php on line 106

Warning: Private methods cannot be final as they are never overridden by other classes in D:\OpenServer\domains\fansy.loc\web\app\plugins\wp-php-console\vendor\php-console\php-console\src\PhpConsole\Handler.php on line 55

E_NOTICE Undefined offset: 0

Hi there,

I'm getting the following notice:

E_NOTICE Undefined offset: 0

/wp-includes/capabilities.php 127.

Thanks

getting fatal error when activating the plugin

Hey,
this is what i get over and over again:

Warning: require_once(DIR/composer/autoload_real.php) [function.require-once]: failed to open stream: No such file or directory in /home/talgui5/public_html/moti/wp-content/plugins/wp-php-console-master/vendor/autoload.php on line 5

Fatal error: require_once() [function.require]: Failed opening required 'DIR/composer/autoload_real.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/talgui5/public_html/moti/wp-content/plugins/wp-php-console-master/vendor/autoload.php on line 5

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.