airflo
Forum Replies Created
-
Forum: Plugins
In reply to: [Premmerce User Roles] PHP 8 incompatibleDone.
Forum: Plugins
In reply to: [Premmerce User Roles] PHP 8 incompatibleHi Robert,
did your team fix the issue? Using PHP 7.4 on a live site is not really a viable workaround…
Also, have you though about putting a hint on the plugin’s page to advise users of the incompatibility?
Best regards,
Florian
Forum: Plugins
In reply to: [Premmerce User Roles] PHP 8 incompatibleHi @mkesteban08 ,
just checking in with you. So far I don’t see a new version, but this thread is marked as “resolved”.
Any news on this issue?
Best regards,
Florian
I have another very simple solution, at least for my scenario. I am using ZIP as file format.
Before restoring the backup, I opened the backup ZIP file, edited the file “.user.ini” inside, and commented out (prefix the line with a “;”) the line that begins with “auto_prepend_file”. This line activates Wordfence in the new installation, and if it is commented out, Wordfence is inactive. I saved the file, updating the backup ZIP file with it, and started the restore. Everything worked flawlessly.
After the installation, I edited the “.user.ini” file again and removed the prefixed “;” again to activate Wordfence.
I had to use the file “.user.ini” because I am on a PHP-FPM configuration. Other users might have to modify the file “.htaccess”.
Maybe this helps…
Hello @premmerce, I can confirm that the update 1.1.9 fixed the issue for me. Thank you!
Hello team, I have the same problem that Claire reported since updating WooCommerce to the latest version. Maybe you can get some additional information out of this error message:
WordPress 5.9.3 WooCommerce 6.3.1 Premmerce Wholesale Pricing for WooCommerce (Version 1.1.8) PHP 8.1.4 Fehler-Details ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 532 der Datei /REDACTED/wp-content/plugins/premmerce-woocommerce-wholesale-pricing/src/Models/Model.php verursacht. Fehlermeldung: Uncaught TypeError: Premmerce\PriceTypes\Models\Model::getLowestAvailablePriceForUserByOrderItem(): Argument #1 ($user) must be of type WP_User, bool given, called in /REDACTED/wp-content/plugins/premmerce-woocommerce-wholesale-pricing/src/Admin/AdminOrders.php on line 61 and defined in /REDACTED/wp-content/plugins/premmerce-woocommerce-wholesale-pricing/src/Models/Model.php:532 Stack trace: #0 /REDACTED/wp-content/plugins/premmerce-woocommerce-wholesale-pricing/src/Admin/AdminOrders.php(61): Premmerce\PriceTypes\Models\Model->getLowestAvailablePriceForUserByOrderItem(false, Object(WC_Order_Item_Product), 18.0) #1 /REDACTED/wp-content/plugins/premmerce-woocommerce-wholesale-pricing/src/Admin/AdminOrders.php(46): Premmerce\PriceTypes\Admin\AdminOrders->setLowestPossiblePriceToWcOrderItem(Object(WC_Order_Item_Product), 0) #2 /REDACTED/wp-includes/class-wp-hook.php(309): Premmerce\PriceTypes\Admin\AdminOrders->updateOrderProductsPrices(Object(Automattic\WooCommerce\Admin\Overrides\Order)) #3 /REDACTED/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #4 /REDACTED/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #5 /REDACTED/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(184): do_action('woocommerce_bef...', Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Data_Store)) #6 /REDACTED/wp-content/plugins/woocommerce/includes/class-wc-order.php(221): WC_Abstract_Order->save() #7 /REDACTED/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1682): WC_Order->save() #8 /REDACTED/wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php(419): WC_Abstract_Order->update_taxes() #9 /REDACTED/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(54): wc_save_order_items(8199, Array) #10 /REDACTED/wp-includes/class-wp-hook.php(309): WC_Meta_Box_Order_Items::save(8199) #11 /REDACTED/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #12 /REDACTED/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #13 /REDACTED/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(222): do_action('woocommerce_pro...', 8199, Object(WP_Post)) #14 /REDACTED/wp-includes/class-wp-hook.php(309): WC_Admin_Meta_Boxes->save_meta_boxes(8199, Object(WP_Post)) #15 /REDACTED/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(8199, Array) #16 /REDACTED/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #17 /REDACTED/wp-includes/post.php(4687): do_action('save_post', 8199, Object(WP_Post), true) #18 /REDACTED/wp-includes/post.php(4789): wp_insert_post(Array, false, true) #19 /REDACTED/wp-admin/includes/post.php(426): wp_update_post(Array) #20 /REDACTED/wp-admin/post.php(227): edit_post() #21 {main} thrown
Forum: Plugins
In reply to: [Add Customer for WooCommerce] Bug: Customer is created when order is editedGreat, I will ?? You’re most welcome
Einen sch?nen Tag noch!
Florian
Forum: Plugins
In reply to: [Add Customer for WooCommerce] Bug: Customer is created when order is editedAwesome! Danke vielmals!
Disclaimer: no warranty whatsoever. What I did to work around this issue is edit one of the plugin’s files, and everything SEEMS to work normally still.
File:
wp-content/plugins/premmerce-woocommerce-wholesale-pricing/src/Admin/Admin.php
Lines 43-45:
if(!session_id()){ session_start(); }
Modification:
/* if(!session_id()){ session_start(); } */
So I basically commented out (and thus disabled) the part where the session is started. I did not find calls to
session_write()
orsession_write_close()
anywhere in the plugin’s code.I would be grateful if the developers at Premmerce could resolve this issue, as modifying the code or accepting the WordPress warning is not really a good solution.