Error message invalid argument supplied for foreach()
Responsive, suitable for any type of business, built for any needs elegant one-page Joomla template.
Rate this topic: 




1.00 out of 6 based on 1 vote(s)






- GK User
- Wed Aug 13, 2014 5:13 pm
- Reply with quote
- Report this post
I had following error message after a click on a Artikel Headline
Warning: Invalid argument supplied for foreach() in .../templates/gk_creativity/html/com_content/article/default.php on line 14
I found this Workaround:
https://www.gavick.com/forums/fest-joom ... 24605.html
---> put the "@" sign right before "foreach".
The REsult of putting the @ was:
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in .../templates/gk_creativity/html/com_content/article/default.php on line 14
What can I do now?
Warning: Invalid argument supplied for foreach() in .../templates/gk_creativity/html/com_content/article/default.php on line 14
I found this Workaround:
https://www.gavick.com/forums/fest-joom ... 24605.html
---> put the "@" sign right before "foreach".
The REsult of putting the @ was:
Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in .../templates/gk_creativity/html/com_content/article/default.php on line 14
What can I do now?
-
- Fresh Boarder
- GK User
- Wed Aug 13, 2014 5:25 pm
- Reply with quote
- Report this post
I just found out, that I get this error only if I added the article from the frontend. If I add articles form backend into the same categorie I get nothing. Could this be a hint to sove the issue?
-
- Fresh Boarder
- GK User
- Wed Aug 13, 2014 5:50 pm
- Reply with quote
- Report this post
The Message won't come back if I save the article once from the backend.
-
- Fresh Boarder
- GK User
- Wed Aug 13, 2014 6:42 pm
- Reply with quote
- Report this post
for now I changed it to, but it's not the real fix for the Problem.
Do you've a glue what's the Problem is and how to fix it?
txs for your help
if (!empty($attribs)) {
foreach($attribs as $key => $value) {
if($value != null) {
$params->set($key, $value);
}
}
}
Do you've a glue what's the Problem is and how to fix it?
txs for your help
if (!empty($attribs)) {
foreach($attribs as $key => $value) {
if($value != null) {
$params->set($key, $value);
}
}
}
-
- Fresh Boarder
4 posts
• Page 1 of 1