The plugin generates PHP warnings + a question on URL
-
Hello, I am developing a website for a client that uses your plugin. And I noticed a couple of things that would be great to fix.
1) Deprecation message, you can reproduce it by installing WP_DEBUG in TRUE.
wp-content/plugins/precious-metals-automated-product-pricing-pro/WooCommerce_Plugin_Nfusion.php:330
Now:
add_options_page('nFusion Settings', 'nFusion Settings', 8, 'nfusion_global_setting', 't_nfusion_solutions_options');
Correction:
add_options_page('nFusion Settings', 'nFusion Settings', 'manage_options', 'nfusion_global_setting', 't_nfusion_solutions_options');
2) An uninitialized variable, to see this message, you may need to enable the display of PHP errors.
wp-content/plugins/precious-metals-automated-product-pricing-pro/WooCommerce_Plugin_Nfusion.php:266
Correction:
You need to declare a variable$row = '';
3) I’m not sure if this is a mistake, but rather a question. Which URL should the data be requested from.
On my local server, the data from “pricesbychannel” they don’t come. I found in the old version of the plugin that it uses “all”.
I changed it “pricesbychannel” on “all” in the current version of the plugin, the data began to arrive correctly.
What is the correct URL? Should I have to work with “pricesbychannel”?wp-content/plugins/precious-metals-automated-product-pricing-pro/WooCommerce_Plugin_Nfusion.php:57
Now:
$catalogUrl = 'https://'.$tenantAlias.'.nfusioncatalog.com/service/price/pricesbychannel?currency='.$cur_currency.'&channel='.$salesChannel.'&withretailtiers=true&token='.$token;
Correction:
$catalogUrl = 'https://'.$tenantAlias.'.nfusioncatalog.com/service/price/all?currency='.$cur_currency.'&channel='.$salesChannel.'&withretailtiers=true&token='.$token;
- The topic ‘The plugin generates PHP warnings + a question on URL’ is closed to new replies.