ValueError thrown
-
This plugin was installed and activated successfully. The issue ocurr when try load the page of plugin mysite.com/wp-admin/admin.php?page=local_pickup
ValueError thrown
min(): Argument#1 ($value) must contain at least one elementhttps://drive.google.com/file/d/1kT92pqhnTdvLzdlpnL_74B1KTKx486Ye/view?usp=sharing
Checking the code, the issue occurr because not exist data stored and an empty array is loaded, the next line of code call to the function “min” where the error if fired.. This was solved adding a validation for prevent this issue.
https://drive.google.com/file/d/1m1S4nK3zVHFeTeN0OzelN_emi1UR6I06/view?usp=sharing
thi same code is located in another files..
https://drive.google.com/file/d/1T6t53OzRfhl1zNLkC9pnmp3YCjHuqPIe/view?usp=sharingPlugin Version: 1.4.1
https://drive.google.com/file/d/1AzMXlWOeGM60LPfWXqMTq_GvvGan_PYL/view?usp=sharing
- The topic ‘ValueError thrown’ is closed to new replies.