hsehszroc
Forum Replies Created
-
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverPlease check how server files are included and why product property is not been set.
You can var dump the output for that property for debugging on the server:
var_dump( Server::load()->product ).No test has been made for WP v5.8.
Sorry, but this is all I can help you at this time.Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverThe debug mode is only meant to be used for testing purposes on the development site whereas the license form should only be used on production (by clients). i.e. Debug mode and license form are not meant to be used on the same client site.
As per your debug output, it seems you have used API endpoint
/wp-json/lmfwc/v2/licenses/activate/{license_key}to activate the same license key 3 times.The license for this site has already been activated.
The above output is the server response to let you know that license has already been activated for that client site. Check your server database table wp_lmfwc_licenses_meta for more details on which client sites have made license request.Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverYou’re welcome. Happy to help.
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverAs per your debug output, request data shows the server URL as
http://shop.siteix.co.ilbut the location seems to behttps://shop.siteix.co.il/.Also, try checking when making a server request:
- the options (at
/tws-license-manager-client-master/Includes/Component/Options.php), and - the parameters (at
/tws-license-manager-client-master/Includes/Component/OAuth.phpfor non-SSL site & at/tws-license-manager-client-master/Includes/Component/Basic_Auth.phpfor SSL site)
Also, the client manager is quite impossible to debug from my side beyond this.
Hope you get this resolved.
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverInside your plugin class where you have instantiated the client manager, try adding this code to the construct method for debugging:
add_action( 'admin_notices', function() { var_dump( $this->manager->client->get_error() ); var_dump( $this->manager->client->other_errors ); var_dump( $this->manager->get_response() ); }, 99 );- This reply was modified 4 years, 9 months ago by hsehszroc. Reason: missing arrow
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverJSON Error: Syntax error and then I see “301 Moved Permanently – Nginx” error in the body messageThis error occurred since it connected to the server but didn’t find the resource. Can you share more details how you setup the client?
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverIf done in the following way, it should work (tested). Hope it helps.
- Create new folder inside WordPress plugins directory.
- Download and extract setting and server framework from github, rename folders to setting & server inside above new folder.
- Create main plugin file inside above new folder and require extracted framework files like so:
<?php /** * Plugin Name: License Server * Description: License Server to manager license. * Version: 1.0 * License: GNU General Public License v3.0 (or later) * License URI: https://www.gnu.org/licenses/gpl-3.0.txt * * @package TheWebSolver\License_Manager\Server */ use TheWebSolver\License_Manager\Server; // Setting files. require_once __DIR__ . '/setting/Includes/Plugin.php'; require_once __DIR__ . '/setting/Includes/Component/Container.php'; require_once __DIR__ . '/setting/Includes/Component/Options.php'; require_once __DIR__ . '/setting/Includes/Component/Fields.php'; // Server files. require_once __DIR__ . '/server/Includes/Single_Instance.php'; require_once __DIR__ . '/server/Includes/Server.php'; require_once __DIR__ . '/server/Includes/Options_Interface.php'; require_once __DIR__ . '/server/Includes/Options_Handler.php'; require_once __DIR__ . '/server/Includes/API/Manager.php'; require_once __DIR__ . '/server/Includes/API/S3.php'; require_once __DIR__ . '/server/Includes/Component/Checkout.php'; require_once __DIR__ . '/server/Includes/Component/Order.php'; require_once __DIR__ . '/server/Includes/Component/Product.php'; // Amazon PHP SDK v3 files... ...add them by following the Amazon SDK guide. Server::load()->instance();It should create new menu The Web Solver and a submenu Server Setup within this menu.
It will work even if Amazon PHP SDK files aren’t included.
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverIf everything is included properly, it should work. I can’t debug the problem unless I see the codes how you included the files.
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverThe plugin will not instantiate unless you have properly set crypto generated from License Manager for WooCommerce plugin.
Did a notice display regarding cryptographic secrets when you activate the plugin?
Make sure:
- Cryptographic secrets are generated properly, and
- Those crypto constants are defined in wp-config.php file.
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and serverIt is a lot of manual work but possible to use it without using a composer.
If you want to use it without a composer, then you can:
- download server framework and require all PHP files inside Includes folder.
- download setting framework and require all PHP files inside it.
- download AWS SDK for PHP by following the steps there.
It is not tested in this scenario. But should work if everything is included properly.
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and server@yonifre
Thanks for trying out the framework.I have updated the readme file on how to use it.
Please try the steps given there and you should be able to install and activate it.
Also, are you using the server along with the client or not? If not, it may not work as expected.
- This reply was modified 4 years, 9 months ago by hsehszroc. Reason: review activate word
Forum: Plugins
In reply to: [License Manager for WooCommerce] lmfwc API PHP for client and server@drazenbebic
Thank you.Forum: Plugins
In reply to: [ACF Photo Gallery Field] Not working properly with acf_form()Hey @navzme,any update on this?
Forum: Plugins
In reply to: [ACF Photo Gallery Field] Not working properly with acf_form()Thanks @navzme. Hope it isn’t the problem only on my side.
Forum: Plugins
In reply to: [WooCommerce] Cart empty everytime after logoutYes. That is what I meant.
- the options (at