Giter Club home page Giter Club logo

Comments (9)

froger-me avatar froger-me commented on September 16, 2024 2

Do you happen to have Dummy Plugin and WP Plugin Update Server activated on the same WordPress install? If yes, that would be the issue - the WordPress install cannot be client and server at the same time.
If not, please visit Settings > Permalinks on the WordPress install where WP Plugin Update Server is located to flush the URL rewrite rules - it may be the reason why you get a 404 error.

P.S.: to answer your question, you do not need to install anything else besides a fully configured WP Plugin Update Server on one hand, and the plugin to be updated (Dummy Plugin) on the other hand to get the plugin up and running.

from wp-plugin-update-server.

atlet avatar atlet commented on September 16, 2024 2

Hi @froger-me, the problem where permalinks, I flushed, and now it's working fine. Dummp Plugin is installed on localhost and I'm getting timeout, but if I change sslverify to false, it's working fine.

Tnx for your help!

from wp-plugin-update-server.

froger-me avatar froger-me commented on September 16, 2024

Hi @atlet !
Is it a new install of both WP Plugin Update Server and Dummy Plugin version 1.4, or is it an update from v1.3?

from wp-plugin-update-server.

atlet avatar atlet commented on September 16, 2024

Hi @froger-me ,
it's a new install.

from wp-plugin-update-server.

froger-me avatar froger-me commented on September 16, 2024

I am investigating, I did not seem to be able to reproduce the javascript error just yet.

from wp-plugin-update-server.

atlet avatar atlet commented on September 16, 2024

Do you need additional data?

from wp-plugin-update-server.

froger-me avatar froger-me commented on September 16, 2024

The malformed response error triggered by WP Package Updater library can occur when the server could not be contacted by the plugin that needs to be updated, but could also happen in other cases - it seems I need to change that part to include a more meaningful message.

To provide more data, could you please edit dummy-plugin/lib/wp-package-updater/class-wp-package-updater.php and change the following (lines 394 to 399):

if ( is_wp_error( $response ) ) {
	$license_data          = new stdClass();
	$license_data->message = __( 'Unexpected Error! The query to retrieve the license data returned a malformed response.', 'wp-package-updater' );

	return $license_data;
}

into:

if ( is_wp_error( $response ) ) {
	$license_data          = new stdClass();
	$license_data->message = $response->get_error_message();

	return $license_data;
}

... and then try again, see the message you get, and report here?

I do not know if it has any effect on the JS (I actually doubt it would), but at least I'd know what error you get and could reproduce the entire scenario.

from wp-plugin-update-server.

atlet avatar atlet commented on September 16, 2024

Ok, problem is, that doesen't find url on my server (https://mysitexxx/wppus-license-api):

[status_code] => 404
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://mysitexxx/wppus-license-api/?action=activate&license_key=etr&allowed_domains=wordpress.loc&package_slug=mysuperplugin
[history] => Array

I installed WP Plugin Update Server, do I need to install something else on update server?

from wp-plugin-update-server.

froger-me avatar froger-me commented on September 16, 2024

@atlet Great! Glad it helped!

from wp-plugin-update-server.

Related Issues (20)

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.