Error message when one field is left empty.

More
13 years 8 months ago #9659 by piperchick
Hi,

I have been playing with modifying the existing blog template to suit my own needs. I seem to have broken something. When I leave a field empty, I get the following error:

Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/components/com_flexicontent/templates/people/item.php on line 197

Line 197 is as follows:
<?php foreach ($this->item->positions as $field) : ?>

You can see this error in action on my site: deadcanadians.ca/index.php?optio ... &Itemid=83


Here is an example using the same template that includes data in the "Web references" field:
deadcanadians.ca/index.php?optio ... &Itemid=83

Thanks,

Stephanie

Lovin' FLEXIcontent at deadcanadians.ca
Dead Canadians: where are they now?

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.577 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline