This error happened with some other themes. I do not remember the solution.
warning: implode() [function.implode]: Invalid arguments passed in /home/dtheme/public_html/includes/theme.inc on line 1229.

CommentFileSizeAuthor
#5 implode error.jpg71.89 KBbzunnssukj

Comments

vigilianty’s picture

Do u still have the error? I was working on it and your post when away.

Alexander Drupal’s picture

I had the same problem. This problem were occurred when I had renamed drupal theme after it was enabled. If you are renaming the drupal theme, be sure you rename also all themes functions(hooks) in drupal6_methods.php , in drupal5_methods.php, e.t.c.. such as:
- theme_breadcrumb($breadcrumb) [http://api.drupal.org/api/function/theme_breadcrumb/6]
- theme_links($links, $attributes = array('class' => 'links')) [http://api.drupal.org/api/function/theme_links/6]
- theme_menu_local_task($link, $active = FALSE) [http://api.drupal.org/api/function/theme_menu_local_task/6]
- e.t.c.
Hope it helps.

vigilianty’s picture

For does who like play with codes remember to save an original and I can't help if you do, you are in your own. I'm too busy with others projects, please understand. You can use Expression in windows and TexMate in Mac. I'm using a combination of tools to build these themes (MS Expression, Photoshop, Dreamweaver, Artisteer, etc....) I'm currently working with different CMS (WordPress, Joomla, MODx(I like this one), etc....) Please understand, most of the error that I get from user is because they mess around with the codes. If you change the name of the theme, most like it you will have to change the name every time PHP or Js make reference of it.

vigilianty’s picture

Status: Active » Closed (fixed)
bzunnssukj’s picture

Status: Closed (fixed) » Needs work
StatusFileSize
new71.89 KB

This error occurs anytime the block settings are saved, even when they haven't been modified. Please see the attached image.

In terms of comment #3, this error is occurring even though no changes have been made to the code.

carlwenrich’s picture

Please take me off this mailing list: carlwenrich@yahoo.com

peterx’s picture

Some of these errors occur when you first install a theme. Viewing the settings and saving the settings without changing anything may remove the because it may replace a missing value with a default value. Viewing the settings and not saving the settings may do nothing to remove the error or it might trigger code that creates a default value.

JayKayAu’s picture

I had the same problem when I made a duplicate of a client's theme, and renamed it (we're modifying their visual theme).

I then renamed all of the methods as per comment #2, but still had the issue.

Eventually, I realised that both the new and old themes were enabled in Admin > Themes, so I disabled the old one, and Bob's your uncle.

I still don't really have a good grasp of why this is, but my immediate problem is solved...

Edit: Btw, this is nothing to do with "Earth Birthday". I just found this thread through Google.

lockev3.0’s picture

Title: SOLVED? : warning: implode() [function.implode]: Invalid arguments passed in ... includes/theme.inc on line 1229. » Yes it is solved that way

Steps to solve it : (Read CAUTION note before)

  • 1.- enable any other theme (Garland would fit)
  • 2.- rename then subdirectory of our new copied theme to whatever.
    • 2.1 - edit the info file to have all coherent with our theme name
    • 2.3 - all functions in template.php which was named like :
    •       oldTheme_Name_whatever

      must be renamed to

            myThemeName_whatever

  • 3.- Re-enable and select our brand new theme.

CAUTION : Me I use a modification of theme Contrast (by AgileWare), and I used to have my Primary Links menu showing on the navigation region as the main menu so that, whenever an option selected, if it had suboptions these showed in a second level.
Well quite weird great drupal's mechanism have made my second level options to not show at all after fixing the warning trouble. HELL !!! (sorry, i am a bit furious now), instead of my suboptions just a silly link 'Home' is fooooooreeeeever showing.

lockev3.0’s picture

Title: warning: implode() [function.implode]: Invalid arguments passed in /home/dtheme/public_html/includes/theme.inc on line 1229. » SOLVED? : warning: implode() [function.implode]: Invalid arguments passed in ... includes/theme.inc on line 1229.
lockev3.0’s picture

Title: Yes it is solved that way » SOLVED? : warning: implode() [function.implode]: Invalid arguments passed in ... includes/theme.inc on line 1229.

Soooo, no one keeps having this issue ... it seems. Just me :(
All i have been able to see is that the breadcrumb (not sure what breadcrumb it is exactly yet) involved in the wrong call to implode function have to do with my primary links - submenus. As my previous post says, as long as this submenu does not appear, the problem doesn't either. .... which leaves me still with a problem naturally. .... I do not have any special character at such submenus neither nothing which apparently could cause a string replacement error ..... :|

drupal_noob001’s picture

I solved this problem by changing:

print theme('breadcumb', $breadcrumb);

to:

print $breadcrumb; in my page.tpl.php

I hope that helps.

delta62’s picture

Title: SOLVED? : warning: implode() [function.implode]: Invalid arguments passed in ... includes/theme.inc on line 1229. » warning: implode() [function.implode]: Invalid arguments passed in ... includes/theme.inc on line 1229.

I'm getting this warning on a consistent basis. It seems that by overriding the theme_breadcrumb function as I did below, PHP stops complaining:

function theme_breadcrumb($breadcrumb) {
    if (!empty($breadcrumb)) {
        return '<div class="breadcrumb">'. implode(' » ', (array)$breadcrumb) .'</div>';
    }
}

For some reason, unless you cast $breadcrumb to an array explicitly, it is not recognized as such.

amrendra’s picture

hi