Recent Topics

[fixed] Notice: Array to string conversion

Started by on Sep 09, 2007 – Contents updated: Sep 09, 2007

Sep 09, 2007 22:53    

Notice: Array to string conversion in /home/www/blog.hemminga.net/inc/_core/_misc.funcs.php on line 114

Sep 10, 2007 10:23

Hi Afwas, can you tell me what you were doing when you got the error?

¥

Sep 10, 2007 13:10

Installing a plugun. It's under th plugin list.

*edit*
It's there under the list after you hit edit a plugin and it's at every plugin.

Sep 10, 2007 18:24

Cheers, I think I've found the problem.

Crack open /inc/_core/ui/forms/_form.class.php and make the following change ( approx 445 ) and see if it cures it

			case 'chicago':
				if( ! empty($field_params['legend_params']) )
				{
					$legend_params = $field_params['legend_params'];
					unset( $field_params['legend_params'] );
				}

¥

Sep 15, 2007 07:18

Tried the fix but introduced more errors:

line 445 contains:


			case 'chicago':
				// Temporary dirty hack:
				$r = '<div class="fieldset_title"><div class="fieldset_title_right"><div class="fieldset_title_bg">';

				if( $title != '' )
				{ // there is a title to display
					if( !empty( $icons ) )
					{
						$r .= '<span class="fieldset_icons">';
						foreach( $icons as $icon )
						{
							$r .= $icon;
						}
						$r .= '</span>';
					}
					$r .= $title;
				}

				$r .= "</div></div></div>\n";

				$r .= '<fieldset'.get_field_attribs_as_string($field_params).'>'."\n";

				break;

UPDATE: Got it.
I inserted the fix as compared with "case default" before the " // Temporary dirty hack:
"


Form is loading...

Secure CMS – This forum is powered by b2evolution CMS, a complete engine for your website.