Hi @nyks-barton,
We have checked your query on our test server. When you add any auction product to your site, you need to add all the required fields.
and as per your query, if the “Incremental Value” is missing then it will display the message alert.
please refer to the screenshot – https://ibb.co/PMBfgMY
Please configure all the auction settings and input all the required fields during the add new auction product and after that, if you will face any issues, please post your query here
If you want more functionality than our WordPress auction plugin, we have two auction software – please have a look.
Ultimate Auction: Pro Plugin – Suitable for existing websites.
Its demo is available at https://testdrive.auctionplugin.net
Ultimate Auction: Pro Theme – Suitable for creating a new auction website.
Its demo is available at https://demo.getultimateauction.com
Let us know if you have any other questions.
Thank You
I put values in all fields, before saving it; the error was caused by saving them.
I had written “1” into incremental value, but the plugin has not saved that.
In the meantime i figured out, that the plugin causes the issue on PHP 8.0.
On PHP 7.4 it has no error.
This is unfortunate – especially since PHP8.0 was released almost 2 years ago.
PH 7.4 has not been actively supported for almost a year, and all security support for 7.4 ends next month.
Found this error myself this morning, and we have literally just discovered the same issue around PHP 8.0 vs. 7.4. I was actually just signing up to ww.wp.xz.cn in order to respond to this support thread, but by the time I had, you had replied to yourself!
I believe that the problem stems from a backwards incompatible change in PHP 8.0 whereby the number/string comparison ceased treating 0 and “” as equivalent. This means that the round function now throws an error if you pass it in empty string. https://www.php.net/manual/en/migration80.incompatible.php
This line specifically is the culprit: update_post_meta($post_id, 'wdm_buy_it_now', round($_POST["buy_it_now_price"], 2)); (L100 of add-new-auction.php as you mention in your original post) but the same problem would manifest on any of lines 98-101 as they all use round without first checking for an empty value.
Since the Buy Now field is optional, and can be left blank, this throws an error, which prevents the rest of the metadata fields being saved (thumbnail, payment method, increment amount)
Rolling back to 7.4 fixes it all, as that version of round successfully rounds “” up to 0 by default.
I am seeing the same behavior on my site. Since we do not always want to set the Buy Now price, we are unsure if our auctions are getting setup correctly.
@payalrajyaguru Have you verified this is an issue with PHP 8.0? Do you happen to have an estimated timeline for when a possible solution would be pushed out?
Hi @krack3,
There is an error that comes with PHP 8.0 in the Ultimate WordPress Auction plugin while creating a new auction. We have fixed this issue in the plugin. We will update the code in the auction plugin and release a new plugin update soon.
You can change the below plugin code to fix this issue. Go to the auction plugin and open the add-new-auction.php file.
Line number – 100
Update the code below. It will fix this issue.
if(empty($_POST["buy_it_now_price"]))
{
update_post_meta($post_id, 'wdm_buy_it_now','');
}
else
{
update_post_meta($post_id, 'wdm_buy_it_now', round($_POST["buy_it_now_price"], 2));
}
Thank You
Thank you. I hope, it was the only php8-incompatibility.
Today my Webhoster annouced to cancel the php7.4-option, and in december all websites will be automatically changed to php 8.0.
-
This reply was modified 3 years, 6 months ago by
nyks-barton.
-
This reply was modified 3 years, 6 months ago by
nyks-barton.
@payalrajyaguru That seems to have fixed my issue. Thank you for the swift response!