Skip to content

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

@userlond

Description

@userlond

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions