All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Getting an error on empty image field with no data

Amit 22 Feb 2012 02:59 problem, complete

Hi Low,

I have a select dropdown with images for featured blog posts.

I am getting a PHP error in my Control Panel (see screenshot) when I get started without data. Am using the latest version of lv and eecms on a mac. PHP 5.3 with Apache Lamp stack.

Once I upload an image to the field, it starts working fine.

Replies

  1. Low 22 Feb 2012 10:50

    Hi Amit,

    Thanks for reporting. I'll fix it for the next release. To fix now, open up vt.select_files.php in a text editor and add a new line at #220, above the foreach-statement, then add this code:

    if (empty($dir['files'])) continue;


    That should take care of it.