Describe the bug
When the listing duration in Settings > Job Manager is set too large, such as 4500000000000000000 days, the job editor will no longer work. Editing Product Package will also break, if WC Paid Listing is used.
This fatal error occurs:
Ein Fehler vom Typ E_ERROR wurde in der Zeile 1493 der Datei /var/www/clients/client1/web66/web/wp-content/plugins/wp-job-manager/wp-job-manager-functions.php verursacht. Fehlermeldung: Uncaught Exception: Unknown or bad format (P4500000000000000000D) in /var/www/clients/client1/web66/web/wp-content/plugins/wp-job-manager/wp-job-manager-functions.php:1493
Stack trace:
#0 /var/www/clients/client1/web66/web/wp-content/plugins/wp-job-manager/wp-job-manager-functions.php(1493): DateInterval->__construct()
To Reproduce
Steps to reproduce the behavior:
Go to Settings > Job Submission
Set the listing duration to 4500000000000000000 days
Edit a job listing
Expected Behaviour
There should be a maximum limit to how long the listing duration can be set.
Isolating the problem (mark completed items with an [x]):
[ x] I have deactivated other plugins and confirmed this bug occurs when only WP Job Manager plugin is active.
[ x] This bug happens with a default WordPress theme active.
[ x] I can reproduce this bug consistently using the steps above.
Describe the bug When the listing duration in Settings > Job Manager is set too large, such as 4500000000000000000 days, the job editor will no longer work. Editing Product Package will also break, if WC Paid Listing is used.
This fatal error occurs:
To Reproduce Steps to reproduce the behavior:
Expected Behaviour
There should be a maximum limit to how long the listing duration can be set.
Isolating the problem (mark completed items with an [x]):
WordPress Environment