[bad custom templat] Invalid argument supplied for foreach()

More
10 years 6 months ago #41943 by ggppdk
Hello

- have you checked the Joomla folder paths for tmp and logs are correct (Joomla global configuration)?
- are your items listed in backend items manager ?
- is your frontend category view empty or do it show items and gives warning ?

Please answer the above,
and then send me a PM with super admin login, and a link to the frontend category view that show the issue

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 6 months ago #41947 by masstox

- have you checked the Joomla folder paths for tmp and logs are correct (Joomla global configuration)?


Oui, ils sont corrects.

- are your items listed in backend items manager ?


Oui

- is your frontend category view empty or do it show items and gives warning ?


Excusez-moi, je viens de me rendre compte que la 2ème erreur s'affiche lorsque j'active le Débogage système de joomla, et la 1ère lorsque le debogage n'est pas activé.

Donc lorsque le debogage n'est pas activé, les items s'affichent et il y a une erreur au dessus de chaque item.

Cordialement.

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

More
10 years 6 months ago #41948 by ggppdk
Hello

-- inside your custom template code of category view code you had bad code:
(category_items_html5.php)
Code:
<?php echo FlexicontentFields::getFieldDisplay($this->item, 'favourites'); ?>

... but $this->item does not exist in category view you should use what ever you have in your item loop
e.g in your case: $item
(now you can see a NEW extra favoroutes icon has appeared, if you don't want it, then remove the above code from your template)

-- if you have other templates please update them

the error existed in previous server but it was not printed, due to error_reporting level set to none

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.413 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