GithubHelp home page GithubHelp logo

dpdconnect / woocommerce-shipping Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 5.0 166 KB

Hieronder vindt u de nieuwste versies van de DPD plugins met o.a. Brexit functionaliteiten. Let op: Verstuurt u na Brexit naar UK, dan doet u er verstandig aan u te registreren bij de HMRC in de UK. Wij raden altijd aan om de module eerst op een testomgeving te installeren.

CSS 1.45% PHP 98.55%

woocommerce-shipping's People

Contributors

dpdplugin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

woocommerce-shipping's Issues

Wrong weight on labels

Hello, I'm actually testing the pugin in a development server, and when I generate a new label, the weight is not the good one (I think that it's actually given in grams instead of kilograms.

I already checked my Woocommerce configuration that is setted to work with Kg.
image

In my test order, I tried to order two different products : three products of 1 Kg and one product of 2 Kg. So this must be a 5Kg order. And the label is telling me : Gewicht 0.05 kg

If you need more info, don't hesitate to let me know.

Cannot create labels

When trying to create a label, I got this error:

DPD Connect: System.Web.Services.Protocols.SoapException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Dpd.Shipper.PublicApi.Services.ShipmentService.d__75.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Dpd.Shipper.PublicApi.Services.ShipmentService.d__69.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Dpd.Shipper.PublicApi.Services.ShipmentService.d__100.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Dpd.Shipper.PublicApi.Soap.Services.ShipmentService.ShipmentServiceBase.d__7.MoveNext() in C:\Work\DPD-Shipper\Source\Shipper\PublicApi\Soap\Services\ShipmentService\ShipmentServiceBase.cs:line 254 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Dpd.Shipper.PublicApi.Soap.Common.SyncTaskRunner.<>c__DisplayClass0_0`1.<b__0>d.MoveNext() in C:\Work\DPD-Shipper\Source\Shipper\PublicApi\Soap\Common\SyncTaskRunner.cs:line 27 --- End of inner exception stack trace --- at Dpd.Shipper.PublicApi.Soap.Common.SoapServiceBase.HandleServiceException[T](Exception ex, String nameSpace, Object eventData) in C:\Work\DPD-Shipper\Source\Shipper\PublicApi\Soap\Common\SoapServiceBase.cs:line 363 at Dpd.Shipper.PublicApi.Soap.Services.ShipmentService.ShipmentServiceBase.storeOrdersBase33(String serviceNamespace, String apiEndpointName) in C:\Work\DPD-Shipper\Source\Shipper\PublicApi\Soap\Services\ShipmentService\ShipmentServiceBase.cs:line 133 at Dpd.Shipper.PublicApi.Soap.Services.ShipmentService.ShipmentServiceSoap33.storeOrders(StoreOrders33 storeOrders) in C:\Work\DPD-Shipper\Source\Shipper\PublicApi\Soap\Services\ShipmentService\ShipmentServiceSoap33.asmx.cs:line 47

It seems an error on the service and not on the plugin.

DPD Connect for WooCommerce 1.3.6
WooCommerce 6.5.1
WordPress 6.0
PHP 7.4.25

High-Performance Order Storage (HPOS) compatibility

If I understand correctly, you are already aware that this plugin is not yet compatible with the High-Performance Order Storage (HPOS) (previously known as Custom Order Tables) functionality of WooCommerce.

https://woo.com/document/high-performance-order-storage/

However, I couldn't find an issue on GitHub that addressed this. We would like to follow the developments in this area. So that we can also inform our customers about a possible switch to HPOS.

At @pronamic we already have some experience with making plugins for WooCommerce HPOS-compatible. Among other things, you will have to look at the use of functions such as get_post_meta, add_post_meta, update_post_meta etc.:

Adding meta boxes will also have to be set up slightly differently.

public static function handle()
{
add_filter('add_meta_boxes', [self::class, 'add']);
}
public static function add()
{
add_meta_box('dpdconnect_pdf', __('DPD Connect Download Labels', 'dpdconnect'), [self::class, 'render'], 'shop_order', 'side', 'high');
}

public static function handle()
{
add_filter('add_meta_boxes', [self::class, 'add']);
add_action( 'save_post', [self::class, 'process']);
}
public static function add()
{
add_meta_box(
'meta-box-id',
__('DPD Connect Generate Labels', 'dpdconnect'),
[self::class, 'render'],
'shop_order',
'side',
'high'
);
}

If you need help with this, please feel free to contact us.

Problems Eori number since version 1.3.3

If you got dots (.) separating your Eori numbers and update from a version lower than 1.3.3 to a version bigger or equal to version 1.3.3, and try to create a label for an order you will get an error's message stating 'DPD connect: UNKNOWN_ERROR'.

Example:

  • This will fail: BE0123.456.789
  • This will succeed: BE0123456789

When I dug deeper in the code I discovered that the bad formatted Eori number trows an 'InvalidResponseException error', in the create function of the Shipment class.

Maybe the Eori number can be formatted when saving the DPD options?
Or maybe check if the Eori number has the correct format when submitting the DPD options?

missing autoload.php

If i try to install this plugin it installs but i cant activate missing vendor/autoload.php

Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in /customers/2/d/b/dartspaleis.be/httpd.www/wp-content/plugins/woocommerce-shipping-master/dpdconnect.php on line 3 Fatal error: require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in /customers/2/d/b/dartspaleis.be/httpd.www/wp-content/plugins/woocommerce-shipping-master/dpdconnect.php on line 3

Any advice

Fatal error PSR-4 autoloading

We're experiencing problems installing the plugin in our Woocommerce application. Apparently there's an issue with autoloading classes via composer (psr-4). This is the exception that we're seeing:

Fatal error: Uncaught Error: Class 'DpdConnect\classes\Handlers\Activate' not found in /usr/local/var/www/.../wp-content/plugins/dpdconnect/dpdconnect.php on line 40 

We've installed the plugin directly from the release page on Github as suggested in other issues.
This problem also occurs in a clean install of Wordpress with Woocommerce and no other plugins.
Tested with all versions from 1.2.0 up to 1.2.9

Order properties should not be accessed directly - $order->currency

PHP Notice: currency was called <strong>incorrectly</strong>. Order properties should not be accessed directly. Backtrace: edit_post, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, DpdConnect\classes\Handlers\GenerateLabelBox::process, DpdConnect\classes\Handlers\LabelRequest::single, DpdConnect\classes\OrderTransformer->createShipment, DpdConnect\classes\OrderTransformer->addCustomsToShipment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.0.) in /var/www/sites/www.re-enactmentshop.com/web/wp-includes/functions.php on line 5775

In function addCustomsToShipment from class OrderTransformer (line 133), the currency is called directly
'totalCurrency' => $order->currency,

This should be:
$order->get_currency()

Slow loading on Order Page

Page loading is very slow when accessing the Order page on WooCommerce 7.1.0 with DPD Connect 1.4.2. When the DPD plugin is deactivated, loading is almost instant.

Slow WP Admin & PHP errors

I'm experiencing major issues with 1.3.4 (I haven't used other versions). The WordPress Admin becomes practically unusable after filling in Login Details (causing 50+s page load). Works fine when deleting Login Details.

Using Query Monitor I can see some PHP errors coming from your plugin:

Undefined array key "token"
Undefined array key 0
Undefined array key 1

Setup freeshipping from x euros

Hi,

Happy new year.
How do you setup free shipping from X euros within this Wordpress extension ? I meant, all your competitors include in their extension different options to do that, yours, not available. My client has a specific setup (free from x euros, different fee if pickup/@home/saturday, different price for each country, etc.)

PS: I already check on DPD Shipping Manager, nothing relevant.

Thanks,
Ludovic.

~500 warnings for every page load after the plugin is activated

Hi,
There is something wrong with the plugin. After I activated the plugin every page load takes minutes and whenever the page is load I see around 500 warnings like:

Warning: Undefined array key 0 in /srv/users/name/apps/site/public/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91

Warning: Undefined array key 1 in /srv/users/name/apps/site/public/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87

Warning: Undefined array key "token" in /srv/users/name/apps/site/public/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77

I disabled all plugins except WooCommerce, tried it again and ended up with the same problem.

Multiple Warnings

After fixing #56 I came a cross some warnings;

 /wp-content/plugins/dpdconnect/classes/Settings/Advanced.php in DpdConnect\classes\Settings\Advanced::renderInputAsyncTreshold 
Warning: Trying to access array offset on value of type bool
 /wp-content/plugins/dpdconnect/classes/Settings/Advanced.php in DpdConnect\classes\Settings\Advanced::renderInputCallbackUrl 
Warning: Trying to access array offset on value of type bool
Warning: Undefined array key 1 in wp-content/plugins/dpdconnect/classes/shippingmethods/DPDShippingMethod.php on line 44
Warning: Undefined array key 1 in wp-content/plugins/dpdconnect/classes/shippingmethods/DPDShippingMethod.php on line 44

An error occurred while connecting to the server

Hello,

When I try to place an order, Woocommerce gives me a notice at checkout with this message : An error occurred while connecting to the server. Please try again.

I checked the error log and found this, exactly at the time of the above error:
PHP Notice: Trying to access array offset on value of type null in /.../public_html/wp-content/plugins/dpdconnect/classes/Handlers/Pickup.php on line 200

Thanks for your help

Save tracking number to order notes

Hey!

For integration with Channable, the tracking number needs to be added to the order notes. Is this possible? Maybe with a function?

Thanks,

Cannot activate plugin

Activating causes fatal error:
Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in /mnt/customers-2/customers-el-4453752-42599-reedin-wordpress-pvc-6388785dc9c2ad0020db8d6d/wp-content/wp-content/plugins/woocommerce-shipping-master/dpdconnect.php on line 3 Fatal error: require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php7') in /mnt/customers-2/customers-el-4453752-42599-reedin-wordpress-pvc-6388785dc9c2ad0020db8d6d/wp-content/wp-content/plugins/woocommerce-shipping-master/dpdconnect.php on line 3

Vendor folder missing

The vendor folder is missing because of the .gitignore.

So, when I try to activate the plugin on WordPress, I get this error: "Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in dpdconnect.php on line 3".

Problems in settings

With the dpd plugin installed the chekout page is verry slow, also to load the settings it takes a long time to load.

and some other isues :

  1. "DPD Label Type" slectbox in the woocommerce->settings->shipping methodes = empty ?

  2. in the woocommerce->settings->shipping methodes there are no links to navigate to settings for the parcelshop or saturday delivery like its described in the manual ? so i can not us the parcelshop feature.

woocommerce Versie 5.8.0
worpress Versie 5.8.1

what can i do ?
thanx

Problem in shipping zone settings

After installing the latest version, its impossible to load WooCommerce shipping zone settings.
It takes huge long time to load with most of time 504 timeout error. So I can not edit the shipping options, zones, shipping methods, shipping costs, ...

When I disable DPD plugin, everything is back to normal instantly.

Version Wordpress: 5.8.1
Version WooCommerce: 5.8.0
Version DPD: 1.3.1

Need installer Zip file

I have tried uploading the zipped content in woocommerce as a new plugin, but vcannot activate it.. missing vendor/Autoupload.php on line 3.
Would it not be easier for you guys to just deliver a plugin zip file that works with Woocommerce? Not all woocommerce users are IT'ers

Error installing plugin

Installed both plugins to start with DPD

Warning: require_once(vendor/autoload.php): Failed to open stream: No such file or directory in /customers/4/1/4/versleverancier.be/httpd.www/wp-content/plugins/woocommerce-shipping-1.4.4/dpdconnect.php on line 3 Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in /customers/4/1/4/versleverancier.be/httpd.www/wp-content/plugins/woocommerce-shipping-1.4.4/dpdconnect.php:3 Stack trace: #0 /customers/4/1/4/versleverancier.be/httpd.www/wp-admin/includes/plugin.php(2314): include_once() #1 /customers/4/1/4/versleverancier.be/httpd.www/wp-admin/plugins.php(192): plugin_sandbox_scrape('woocommerce-shi...') #2 {main} thrown in /customers/4/1/4/versleverancier.be/httpd.www/wp-content/plugins/woocommerce-shipping-1.4.4/dpdconnect.php on line 3

This error occures, the file is in this directory

Plugin failed to activate

Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in /data/sites/web/sitename/wp-content/plugins/woocommerce-shipping-master/dpdconnect.php on line 3

Fatal error: require_once(): Failed opening required 'vendor/autoload.php' (include_path='.') in /data/sites/web/sitename/wp-content/plugins/woocommerce-shipping-master/dpdconnect.php on line 3

Upon activating the plugin for woocommerce, I got this error message.

problems with woocommerce

When I install this plugin I have on several woocommerce websites the same error, the pay button is gone.
after disableing the DPD plugin all is working fine
Please help us out

Webshop extremely slow

Hello,

We have installed the latest version of the plugin in a WooCommerce webshop with 4000+ products.
When we add something to the cart it takes a few minutes to do this.

Also adding/editing the shipping methods in the backend is very slow.(pages take a few minutes to load)

When we disabled the plugin, adding a product to the cart is almost instant. Same goes for adding/editing shipping methods in the backend.

We used a debug plugin to try to find slow functions and the function "addCustomSettings" is executed around 30 times, taking at least 6 seconds every execution.

Can you help us identify the problem?

Sudden fatal error

Hi, without any reason we got this fatal error; as a result we could not login in to wordpress; and the woocommerce checkout was not functioning.

Fri Aug 12 13:18:17.875868 2022] [error] [pid 4000207] mod_proxy_fcgi.c(887): [client xxx] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: [] operator not supported for strings in /xxx/plugins/dpdconnect/classes/Connect/Product.php:21\nStack trace:\n#0 /xxxx/plugins/dpdconnect/classes/Connect/Product.php(69): DpdConnect\classes\Connect\Product->getList()\n#1 /xxxx/plugins/dpdconnect/classes/Connect/Product.php(42): DpdConnect\classes\Connect\Product->getProductsByType()\n#2 /xxxx/plugins/dpdconnect/classes/Connect/Product.php(58): DpdConnect\classes\Connect\Product->getAllowedProducts()\n#3 /xxxx/plugins/dpdconnect/classes/shippingmethods/DPDShippingMethod.php(102): DpdConnect\classes\Connect\Product->getProductByCode()\n#4 /xxxx/plugins/dpdconnect/classes/shippingmethods/DPDShippingMethod.php(96): DpdConnect\classes\shippingmethods\DPDShippingMethod->init_dpd()\n#5 /xxxx/www/wp-con...'

we have the version 1.3.7.
I took out the plugin via FTP; then able to login, activate DPD plugin, and it's all good.
What could be the case here?

The plugin tries to create tables with every page view/request (`CREATE TABLE IF NOT EXISTS`)

We have a customer who uses this plugin. Yesterday, a number of WooCommerce orders were suddenly missing all kinds of data (including billing and shipping addresses). A very inconvenient problem and this may have to do with the fact that this plugin executes the CREATE TABLE IF NOT EXISTS queries on every page view/request?

// Add tables for storing labels
Activate::handle();

class Activate
{
public static function handle()
{
register_activation_hook(dirname(__DIR__) . '/dpdconnect.php', 'dpdconnect_activate');
self::updateDb();
}
public static function updateDb()
{
global $wpdb;
$version = get_option('my_plugin_version', '1.1');
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
$charset_collate = $wpdb->get_charset_collate();
$table_name = $wpdb->prefix . 'dpdconnect_labels';
$sql = "CREATE TABLE IF NOT EXISTS $table_name (
id mediumint(9) NOT NULL AUTO_INCREMENT,
created_at datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
order_id int(11) NOT NULL,
contents mediumblob NOT NULL,
type tinyint NOT NULL,
shipment_identifier varchar(255) NOT NULL,
parcel_numbers varchar(255) NOT NULL,
PRIMARY KEY id (id),
INDEX created_at (created_at)
) $charset_collate;";
$wpdb->query($sql);
$table_name = $wpdb->prefix . 'dpdconnect_batches';
$sql = "CREATE TABLE IF NOT EXISTS $table_name (
id mediumint(9) NOT NULL AUTO_INCREMENT,
created_at datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
shipment_count smallint(5) NOT NULL,
success_count smallint(5) DEFAULT 0,
failure_count smallint(5) DEFAULT 0,
status varchar(255) NOT NULL,
PRIMARY KEY id (id),
INDEX created_at (created_at)
) $charset_collate;";
$wpdb->query($sql);
$table_name = $wpdb->prefix . 'dpdconnect_jobs';
$sql = "CREATE TABLE IF NOT EXISTS $table_name (
id mediumint(9) NOT NULL AUTO_INCREMENT,
created_at datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
external_id varchar(255) NOT NULL,
batch_id varchar(255) NOT NULL,
order_id varchar(255) NOT NULL,
status varchar(255) NOT NULL,
type varchar(255) NOT NULL,
error text,
state_message text,
label_id int(11) NULL,
PRIMARY KEY id (id),
INDEX created_at (created_at),
INDEX batch_id (batch_id)
) $charset_collate;";
$wpdb->query($sql);
}
}

We noticed that @BernardV created a similar issue a few hours ago:

Is it more convenient to only close these issues once the problem has actually been resolved in the codebase?

If you need help resolving these issues, please let us know. Perhaps we at @pronamic can also assist you in solving these problems.

Cannot activate the plugin on Woocemmerce, it fails

After installing the plugin, the activation fails. It gives following errors: Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in /data/sites/web/ocheckercom/www/wp-content/plugins/woocommerce-shipping-master/dpdconnect.php on line 3

Fatal error: require_once(): Failed opening required 'vendor/autoload.php' (include_path='.') in /data/sites/web/ocheckercom/www/wp-content/plugins/woocommerce-shipping-master/dpdconnect.php on line 3

Received a DELIS ID and DELIS PASSWORD from support, but cannot login.

Hi,

I received a DELIS ID and DELIS PASSWORD from support of DPD, but when I use those credentials and want to create a shipping label I get the following error:

Uncaught DpdConnect\Sdk\Exceptions\AuthenticateException: {"code":401,"message":"Bad credentials"}

dpdconnect/vendor/dpdconnect/php-sdk/src/Resources/Authentication.php(58): DpdConnect\Sdk\Common\HttpClient->sendRequest('POST', 'auth/login', false, Array, '{"username": mycred...,

feature suggestions / improvements

  1. Add credential check in the settings with a "validation" flag under the hood.
    First validate the credentials and only if they are correct, then change the validation flag to true before loading any of the other settings to prevent breaking the WooCommerce shipping settings.
    And this will also help preventing people wasting tons of hours to figure out problems when they seem to be related to the account itself.

  2. Add a field to settings to enter a (custom) meta field name for the package reference.
    By default, the plugin is using the post ID which is unknown to most end-users resulting in labels that are not able to identify to which package they belong.
    Some WooCommerce shops use 3rd party plugins to override the default order ID from WooCommerce for a custom order ID with eg custom prefix and pattern like "SO-2021-00064".
    With a proper meta field, it can be used to override which field value should be put on the label in the reference field

  3. Add an option to generate a shipping list (similar to DPD central shipper).
    If you generate labels for 50+ orders, you want the carrier to sign a document to confirm the number of packages that have been collected.
    The plugin does not facilitate this feature and none of the labels nor shipments created via WooCommerce and the DPD API are showing into the DPD central shipper backend.

Can't activate plugin

Can't activate the plugin.
Error message:
Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in /home/ocge4930/dev.kitciel.com/wp-content/plugins/woocommerce-shipping/dpdconnect.php on line 3
Fatal error: require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/ocge4930/dev.kitciel.com/wp-content/plugins/woocommerce-shipping/dpdconnect.php on line 3

Plugin could not be activated because it caused a fatal error .

When I activate plugin:

Warning : require_once (vendor / autoload.php): failed to open stream: No such file or directory in /var/www/vhosts//httpdocs/*****/wp-content/plugins/woocommerce-shipping-master /dpdconnect.php on line 3

Fatal error : require_once (): Failed opening required 'vendor / autoload.php' (include_path = '.: / opt / plesk / php / 7.4 / share / pear') in / var / www / vhosts / ******** / httpdocs / *********** / wp-content / plugins / woocommerce-shipping-master / dpdconnect.php on line 3

Can you help me with this one ?

Fatal error: Uncaught Error: Call to undefined method `WP_Post::get_id()` in `classes/Handlers/DownloadLabelBox.php:32`

We just tested version 1.4.5 on WordPress 6.3.2:

Fatal error: Uncaught Error: Call to undefined method WP_Post::get_id() in public_html/wp-content/plugins/dpdconnect/classes/Handlers/DownloadLabelBox.php:32
Stack trace:
#0 public_html/wp-admin/includes/template.php(1443): DpdConnect\classes\Handlers\DownloadLabelBox::render()
#1 public_html/wp-admin/edit-form-advanced.php(681): do_meta_boxes()
#2 public_html/wp-admin/post.php(206): require('/home/moosefarg...')
#3 {main}
thrown in public_html/wp-content/plugins/dpdconnect/classes/Handlers/DownloadLabelBox.php on line 32

/**
* @param \WC_Order $order
* @return void
*/
public static function render($order)
{
$labelRepo = new Label();
$shippingLabels = $labelRepo->getByOrderId($order->get_id(), ParcelType::TYPEREGULAR, true);
$returnLabels = $labelRepo->getByOrderId($order->get_id(), ParcelType::TYPERETURN, true);
echo '<table>';
if (!$shippingLabels && !$returnLabels) {
echo '<tr><td>' . __('No labels available.') . '</a></td></tr>';
}
if ($shippingLabels) {
foreach ($shippingLabels as $shippingLabel) {
$shippingId = $shippingLabel['id'];
$shippingUrl = add_query_arg(['plugin' => 'dpdconnect', 'file' => 'shipping_label', 'id' => $shippingId], admin_url());
echo '<tr><td><a href="' . $shippingUrl . '">' . __('Shipping label', 'dpdconnect') . '</a></td>';
echo '<td>' . $shippingLabel['created_at'] . '</td></tr>';
}
}
if ($returnLabels) {
foreach ($returnLabels as $returnLabel) {
$returnId = $returnLabel['id'];
$returnUrl = add_query_arg(['plugin' => 'dpdconnect', 'file' => 'shipping_label', 'id' => $returnId], admin_url());
echo '<tr><td><a href="' . $returnUrl . '">' . __('Return label', 'dpdconnect') . '</a></td>';
echo '<td>' . $returnLabel['created_at'] . '</td></tr>';
}
}
echo '</table>';
}

It looks like the plugin assume that HPOS is always enabled? We handle this as follows in our plugins:

https://github.com/pronamic/pronamic-order-referrer-for-woocommerce/blob/08b81d4fbdc643a85d2444d27a989bb0499d8d26/src/Plugin.php#L119-L148

	/**
	 * Maybe add a meta box the WooCommerce order.
	 * 
	 * @link https://github.com/pronamic/wp-pronamic-pay-woocommerce/issues/41
	 * @link https://developer.wordpress.org/reference/hooks/add_meta_boxes/
	 * @param string           $post_type_or_screen_id Post type or screen ID.
	 * @param WC_Order|WP_Post $post_or_order_object   Post or order object.
	 * @return void
	 */
	public function maybe_add_meta_box_to_wc_order( $post_type_or_screen_id, $post_or_order_object ) {
		if ( ! \in_array( $post_type_or_screen_id, [ 'shop_order', 'woocommerce_page_wc-orders' ], true ) ) {
			return;
		}

		$order = $post_or_order_object instanceof WC_Order ? $post_or_order_object : \wc_get_order( $post_or_order_object->ID );

		if ( ! $order instanceof WC_Order ) {
			return;
		}

		\add_meta_box(
			'pronamic-woocommerce-order-referrer',
			\__( 'Referrers', 'pronamic-order-referrer-for-woocommerce' ),
			function () use ( $order ) {
				include __DIR__ . '/../views/admin-meta-box-woocommerce-order.php';
			},
			$post_type_or_screen_id,
			'normal'
		);
	}

Related to:

Fatal error WP 6.4.3 Woo 8.6.1

facing this error when I want to activate the plugin with WP 6.4.3 Woo 8.6.1

Plugin could not be activated because it triggered a fatal error.

Shipping method title + translation

The shipping method title as configured in the shipping zones pop up for a specific shipping method is not shown in the front end.
=> "woocommerce_dpd_pickup_zone_title"

The title as mentioned in the separate "DPD Pickup" / "DPD Home" / ... tab is always shown, no matter what you fill in in the other field above.
=> woocommerce_dpd_pickup_title"

The title you see for the moment (the one from the separate tab) is not appearing in WPML for translation. I had to add this manually to String Translation, then it works
=> (domain) "admin_texts_woocommerce_dpd_pickup_settings"
=> (name) "[woocommerce_dpd_pickup_settings]title"

You should add a "wpml-config.xml " (with all admin texts) in the root of your plugin with a structure like the example below to enable this.

<wpml-config>
  <admin-texts>
    <key name="woocommerce_dpd_pickup_settings">
      <key name="title"/>
    </key>
  </admin-texts>
</wpml-config>

Of course best solution would be to show the shipping method as configured in the shipping zones pop up (cfr above).

Thanks!

HTTP Token issues behind reverse nginx proxy

After setting up reverse nginx proxy

context:
docker-compose.yml

version: '3.9'
services:
  nginx:
    container_name: nginx
    image: "nginx:$NGINX_VERSION"
    ports:
      - "$NGINX_PORT_WEB:80"
      - "$NGINX_PORT_SSL:443"
    volumes:
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
      - ./nginx/sites-enabled:/etc/nginx/sites-enabled
      - /etc/letsencrypt:/etc/letsencrypt
      - ./certbot/data:/var/www/certbot
      - ./logs/nginx/nginx:/var/log/nginx
      - ./logs/nginx/letsencrypt:/var/log/letsencrypt
    depends_on:
      - webshop

  webshop:
    container_name: webshop
    image: wordpress:$WORDPRESS_VERSION
    ports:
      - "$WORDPRESS_HOST_PORT"
    environment:
      WORDPRESS_DB_HOST: $DB_HOST
      WORDPRESS_DB_NAME: $DB_NAME
      WORDPRESS_DB_USER: $DB_USER
      WORDPRESS_DB_PASSWORD: $DB_PASSWORD
      WORDPRESS_DEBUG: 1
    volumes:
      - ./wordpress_content:/var/www/html
  
  certbot:
    container_name: certbot
    image: certbot/certbot:latest
    depends_on:
      - nginx
    command: >-
             certonly -v --reinstall --webroot --webroot-path=/var/www/certbot
             --email [email protected] --agree-tos --no-eff-email
             -d dnhere.com,www.dnhere.com
    volumes:
      - /etc/letsencrypt:/etc/letsencrypt
      - ./certbot/data:/var/www/certbot

.env

SERVER_IP=52.49.245.31
HOST_NAME=dnhere.be
TIME_ZONE=Europe/Brussels

################################################################################
#                                 Nginx                                        #
################################################################################
NGINX_VERSION=1.23.3
NGINX_PORT_WEB=80
NGINX_PORT_SSL=443
NGINX_SITES_ENABLED=wordpress

################################################################################
#                                 Webshop                                      #
################################################################################
WORDPRESS_VERSION=6.1.1
WORDPRESS_SERVER_DN=dnhere.com
WORDPRESS_SERVER_FQDN=www.dnhere.com
WORDPRESS_HOST=webshop
WORDPRESS_HOST_PORT=80
WORDPRESS_ADMIN_USER=admin
WORDPRESS_ADMIN_PW=insertpasswordhere

################################################################################
#                                 Database                                     #
################################################################################
DB_HOST=database-<dbaddresshere>.eu-west-1.rds.amazonaws.com
DB_NAME=acidfermentationwebsite
DB_USER=wordpress
DB_PASSWORD=insertpasswordhere
DB_PORT=3306

nginx.conf (filled in through make with source .env):

server {
  listen [::]:80;
  listen 80;

  server_name ${WORDPRESS_SERVER_FQDN} ${WORDPRESS_SERVER_DN};

  location ~/.well-known/acme-challenge {
      allow all;
      default_type "text/plain";
      root /var/www/certbot;
  }
  
  location / {
      return 301 https://$host$request_uri;
  }
}

server {
  listen                    [::]:443 ssl http2;
  listen                    443 ssl http2;
  server_name               ${WORDPRESS_SERVER_FQDN} ${WORDPRESS_SERVER_DN};
  
  ## Your only path reference.
  root /var/www/html;
  ## This should be in your http block and if it is, it's not needed here.
  index index.php; 


  ssl_certificate             /etc/letsencrypt/live/${WORDPRESS_SERVER_FQDN}/fullchain.pem;
  ssl_certificate_key         /etc/letsencrypt/live/${WORDPRESS_SERVER_FQDN}/privkey.pem;

  client_max_body_size 50M;

  location ~/.well-known/acme-challenge {
      allow all;
      default_type "text/plain";
      root /var/www/certbot;
  }

  location / {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass       http://${WORDPRESS_HOST}:${WORDPRESS_HOST_PORT};
  }
}

server {
  listen 443 ssl http2 default_server;
  listen [::]:443 ssl http2 default_server;
  server_name _;

  ssl_certificate             /etc/letsencrypt/live/${WORDPRESS_SERVER_FQDN}/fullchain.pem;
  ssl_certificate_key         /etc/letsencrypt/live/${WORDPRESS_SERVER_FQDN}/privkey.pem;

    # Other SSL-related settings go here

    return 404;
}

I get this error when installing the plugin:
Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87 Warning: Undefined array key "token" in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/AuthenticatedHttpClient.php on line 77 Warning: Undefined array key 0 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 91 Warning: Undefined array key 1 in /var/www/html/wp-content/plugins/dpdconnect/vendor/dpdconnect/php-sdk/src/Common/ResourceClient.php on line 87

Critical error

Hi, we're now on version 1.2.8.
I tested the new DPD plugin on a staging website and it all resulted in a bunch of critical errors:

require_once(vendor/autoload.php): failed to open stream: No such file or directory in xxxx/wp-content/plugins/dpdconnect/dpdconnect.php on line 3

Fatal error: require_once(): Failed opening required 'vendor/autoload.php' (include_path='.') in xxxx/dpdconnect/dpdconnect.php on line 3

Notice: is_embed werd verkeerd aangeroepen. Voorwaardelijke query-tags werken niet voordat de query is uitgevoerd. Daarvoor geeft deze altijd 'false' terug. Lees Foutopsporing in WordPress voor meer informatie. (Dit bericht is toegevoegd in versie 3.1.0.) in /xxxx/wp-includes/functions.php on line 5768

Notice: is_search werd verkeerd aangeroepen. Voorwaardelijke query-tags werken niet voordat de query is uitgevoerd. Daarvoor geeft deze altijd 'false' terug. Lees Foutopsporing in WordPress voor meer informatie. (Dit bericht is toegevoegd in versie 3.1.0.) in xxx/wp-includes/functions.php on line 5768

The site is just a regular Kadence Theme; not much customization.
What can the issue here?

And when do you plan to get the DPD plugin on wordpress.org.

Cannot create labels

Wordpress:

debug.log shows:

[31-Aug-2020 13:53:36 UTC] PHP Warning:  array_column() expects parameter 1 to be array, string given in /data/sites/web/**/subsites/**/wp-content/plugins/dpdconnect/classes/Connect/Country.php on line 23

[31-Aug-2020 13:53:36 UTC] PHP Warning:  array_search() expects parameter 2 to be array, null given in /data/sites/web/**/subsites/**/wp-content/plugins/dpdconnect/classes/Connect/Country.php on line 23

Wordpress: 5.5
Plugin: 1.2.1
Countrycode set (in both places) to NL

You have an error in your SQL syntax

Hello,

We're optimizing our site, and using plugin Query Monitor.. It's slowing our admin dashboard too much. There is some dpd error in query database tab:

Error Message
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'IF' at line 1

Caller:
DpdConnect\c\H\Activate::updateDb()
wp-content/plugins/dpdconnect/classes/Handlers/Activate.php:35
DpdConnect\c\H\Activate::handle()
wp-content/plugins/dpdconnect/classes/Handlers/Activate.php:10

DpdConnect\classes\Handlers\Activate not found

I encountered the following error after installing and activating a plugin from the plugin repository:

Fatal error: Uncaught Error: Class "DpdConnect\classes\Handlers\Activate" not found in .../wp-content/plugins/dpdconnect/dpdconnect.php:46 

I am running PHP 8.0.2.

This solution fixed the issue for me: tdwesten@88013b4

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.