Page 1 of 1

Company Directory error after recent upgrade

Posted: Tue Jul 10, 2012 9:04 am
by elkman
Just upgraded Company Directory and now see an error when viewing a member entry in the admin edit area.

Code: Select all

Warning: Invalid argument supplied for foreach() in /home/tcounty/public_html/ccvchamber/modules/CompanyDirectory/action.editcompany.php on line 762
Any idea what happened? Everything template in the CD is default.

Re: Company Directory error after recent upgrade

Posted: Thu Jul 12, 2012 10:01 am
by Jaro
I had the same warning. I solved it by adding a Field Definition with type 'Album (group of pictures)'. Although this field isn't used in my directory, somehow the code on line 762 of action.editcompany.php expects it to be there.

Next, another error was displayed when clicking on the new 'Album' tab that appeared after adding this Field Definition. This can be solved by installing the CGSmartImage module (which seems to be a dependency that is not detected during installation).

Hope this helps.