Warning: Invalid argument supplied for foreach() in /xxx/xxx/public_html/_test/wp-content/plugins/business-directory-plugin/includes/widgets/widget-random-listings.php on line 32
The other widget: Latest Listing seems to be working fine without any issue.
Before the plugin upgrade, the version was 126.96.36.199.
PS: Based on the tip from another user, I tried changing the number of listings to anything but “1”. Two and above, the widget does work as intended.
Sorry that you ran into issues here!
BD 5.5.x requires that you have PHP 5.6 or higher installed, and that error very much looks like you have something older than our minimum required version.
Can you please confirm that under Directory Admin->Debug, Environment tab?
If you have something earlier, please ask your web host to upgrade your server to PHP 5.6 or higher. We support anything from 5.6 to the latest PHP 7. WordPress also has this requirement as of WP 5.2, FYI.
Try that and let me know if you run into more issues.
I noticed you’ve already raised this on our WP support forum as well: https://wordpress.org/support/topic/random-listing-widget-stopped-working/
As mentioned, please contact us directly so we can assist you further.
P.S. kindly avoid double posting on the forums so that we can keep all the conversation at one place and avoid any potential confusion. Thanks!
Sorry to hear that. Please contact us here with a link to the forum thread so we can assist you further: http://businessdirectoryplugin…..m/contact/.
I’m glad I saw this thread as I hadn’t realised that there was a random listing widget and I had been thinking about doing something like that! However, when installed it also doesn’t work if you only select one and it also only seems to select from a short list (of the newest people in the directory).
Sorry, I don’t think I understand what you mean by “it also doesn’t work if you only select one”. Can you please elaborate?
Random listing widget is designed to display randomly selected listings from your directory every time the widget is loaded. The sort order is plenty random and it also depends on the number of listings you’ve set to display in the widget. Can you try changing that number to see if you get different results?
Hi sorry, i’ll explain more. If I select to only have 1 item to display I get the error message. Anything else from 2-10 brings up the correct number of listings. More than 10 only displays 10 (not sure if that is right but may be related to the next issue). I have refreshed the widget quite a number of times and it only selects from the latest 10 items in the directory (regardless of how many I select, be that 3, 5. 10. 20 etc) but we have over 100 listings so the other 90+ are not appearing. I am currently sending through credentials for another issue so will also link to this thread for this issue.
BD Plugin 5.5.11
the URL, if that helps: http://www.hrtechbook.com
@Everyone: We have a dev version that fixes this. Please contact us here for the patch:
Most Users Ever Online: 325
Currently Browsing this Page:
Guest Posters: 5252
Newest Members:[email protected]
Moderators: BD Support: 3
Administrators: Business Directory Support: 1720