Skip to content

Error when try viewing plugin version details #344

@Phreshhh

Description

@Phreshhh

Hi!

Thanks for the lib, its a great work and very useful for many dev.

I have a bit problem, with the details part.

I am developing my own plugin and now built in your lib.
If i click on plugin version details link, then it gives me error: Plugin not found.

Query Monitor:

The message above was triggered by Core.

Call stack:

wp_die()
    wp-admin/includes/plugin-install.php:513
    install_plugin_information()
    wp-includes/class-wp-hook.php:286
    do_action('install_plugins_pre_plugin-information')
    wp-admin/plugin-install.php:70

I try some other slug to check it whats wrong but, i didn't.

$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
	'http://example.com/path/to/details.json',
	__FILE__, //Full path to the main plugin file or functions.php.
	'unique-plugin-or-theme-slug'
);

If i change the slug to a plugin what is installed from wp repo, then works the info popup, but all other not.

I think, the problem is the new WordPress restricted download updates form unknown hosts.
I find a possible solution for the problem in another repo pull request.
Needs the Plugin name also..

Please check and try to reconstruct the problem, and if this plugin name extend not solve the problem, i try to help find the solution.

Thanks

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