error: 2: implode(): Invalid arguments passed in admin.template.php

Started by abraamz, February 20, 2011, 06:03:14 AM

Previous topic - Next topic

abraamz

i localy upgraded my forum in smf 2.0 rc4. Then made a fresh install of rc4 on a new directory at the server and uploaded the local database to the remote server. i installed aeva media, simple ads and rc4 security patch.
When any admin sees credits i get an error in the logs
Quote
http://****************/index.php?action=admin;area=credits;f16a72c801=1a357624535427e5a23890626e1aed0e

2: implode(): Invalid arguments passed

*************************/Themes/default/Admin.template.php
Line: 330
the code from that file is
// The most important part - the credits :P.
echo '
<div class="cat_bar">
<h3 class="catbg">
', $txt['admin_credits'], '
</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">';

foreach ($context['credits'] as $section)
{
if (isset($section['pretext']))
echo '
<p>', $section['pretext'], '</p>';

echo '
<dl>';

foreach ($section['groups'] as $group)
{
if (isset($group['title']))
echo '
<dt>
<strong>', $group['title'], ':</strong>
</dt>';

echo '
<dd>', implode(', ', $group['members']), '</dd>';
}

echo '
</dl>';

if (isset($section['posttext']))
echo '
<p>', $section['posttext'], '</p>';
}

echo '
</div>
<span class="botslice"><span></span></span>
</div>
</div>
<br class="clear" />';

Line 330 is
<dd>', implode(', ', $group['members']), '</dd>';

Its not a big problem, just trying to be cautius in every step

Kermit

Upgrading your site to the latest version RC5 might solve your problem
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein


NanoSector

Quote from: Duncan85 on March 04, 2011, 05:11:44 AM
Upgrading your site to the latest version RC5 might solve your problem
The user has the RC4 Security Patch installed.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Kermit

Quote from: Yoshi2889 on March 04, 2011, 01:29:23 PM
Quote from: Duncan85 on March 04, 2011, 05:11:44 AM
Upgrading your site to the latest version RC5 might solve your problem
The user has the RC4 Security Patch installed.

As far as i know security patch for RC4 and RC5 is not exactly same versions !
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

NanoSector

Quote from: Duncan85 on March 05, 2011, 01:48:35 AM
Quote from: Yoshi2889 on March 04, 2011, 01:29:23 PM
Quote from: Duncan85 on March 04, 2011, 05:11:44 AM
Upgrading your site to the latest version RC5 might solve your problem
The user has the RC4 Security Patch installed.

As far as i know security patch for RC4 and RC5 is not exactly same versions !
The user still uses the latest stuff, the user can choose between the upgrade or the security patch.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Arantor

QuoteAs far as i know security patch for RC4 and RC5 is not exactly same versions !

The RC4 security patch is all the security related fixes from RC5 without the rest of the bug fixes.

Kermit

Quote from: Arantor on March 05, 2011, 04:08:06 PM
QuoteAs far as i know security patch for RC4 and RC5 is not exactly same versions !

The RC4 security patch is all the security related fixes from RC5 without the rest of the bug fixes.

I meant the same as well :)
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Arantor

I figured that's what you meant, but it could easily have been misread to mean that they were different in other ways - from a security perspective RC4+patch and RC5 are identical, but RC5 has some non security bug fixes that weren't in the patch.

Advertisement: