Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Third party integration: standalone php-console build doesn't work on Wordpress #164

Open
userlond opened this issue Nov 22, 2019 · 1 comment

Comments

@userlond
Copy link

I try to setup standalone php-console on Wordpress. Site is on localhost.

I've made all necessary preparations and extension works in standalone (not Wordpres) index.php, minimal working code is:

<?php
require __DIR__ . '/classes/vendor/autoload.php';
\PhpConsole\Helper::register();
PC::debug(23);

Then I try to integrate it into my theme, in my functions.php:

<?php
add_action('init', function() {
    require __DIR__ . '/classes/vendor/autoload.php';
    \PhpConsole\Helper::register();
    PC::debug(23);
});

Seems like extension starts and even outputs some data into HTTP-headers, related to php-console. But I can't get Chrome notifications with debug data.

I tried recipes from #88, but with no luck.

I know about special WP-phpconsole plugin, but question is related to standalone php-console build.

@userlond userlond changed the title Third party integration: php-console doesn't work on Wordpress Third party integration: standalone php-console build doesn't work on Wordpress Nov 22, 2019
@unfulvio
Copy link
Contributor

try this plugin https://wordpress.org/plugins/wp-php-console/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants