Error Widgets Artisteer 3.0


Author Message
Pedro

Posted: 10/29/2010
Quote message 

Warning: Cannot use a scalar value as an array in /home/xxxxxxxx/public_html/blog/wp-content/themes/elespinar_azul_moderno_1200/core/widgets.php on line 16

Línea 16:

$controls['params'][0]['id']=$id;


¿Cómo se soluciona?
 
Garry

Posted: 11/1/2010
Quote message 

Artisteer developers will fix this issue in next update, meantime you can disable PHP warnings on your server as they are not critical and will not affect your website functionality.
 
Garulfo

Posted: 11/3/2010
Quote message 

I have the same issue:

Warning: Cannot use a scalar value as an array in ~/library/widgets.php on line 41

appears at the top of the widgets page.
 
Justanumber

Posted: 11/3/2010
Quote message 

I had the same problem. Used the code below at the very top of my header.php file, before everything else:


<?php
error_reporting(0);
@ini_set(‘display_errors’, 0);
?>


Please understand I am no PHP guru, only telling you how I fixed my problem. No guarantees it will fix yours. No guarantees it will not cause problems.

This is certainly not the way to fix a script error, but until the new version is released will fix for most.

Since my host would not allow me to "turn off warnings", they gave me this info.

Terry
 
ketamynx

Posted: 2/4/2011
Quote message 

Quote Garry:

Artisteer developers will fix this issue in next update, meantime you can disable PHP warnings on your server as they are not critical and will not affect your website functionality.


Open up C:\Program Files\Artisteer 3\Library\Data\Templates\WordPress\Export\Files\library\widgets.php

To disable the error go to line 41 and replace whatever is there with
 $controls['params'][] = array('id'=>$id);


To make sure the extra option still works go to line 71 and replace it with
$id = end($params); $id = $id['id'];


Artisteer developers, heads up next time.

 
LindaV

Posted: 2/4/2011
Quote message 

Quote ketamynx:


Open up C:\Program Files\Artisteer 3\Library\Data\Templates\WordPress\Export\Files\library\widgets.php

To disable the error go to line 41 and replace whatever is there with
 $controls['params'][] = array('id'=>$id);


To make sure the extra option still works go to line 71 and replace it with
$id = end($params); $id = $id['id'];




Hi,

I don't have a "library" folder in C:\Program Files\Artisteer 3\Library\Data\Templates\WordPress\Export\Files
Would that be core\widgets.php ?

And, is the line that you refer to as "whatever is there" actually

function art_get_widget_style_key($id)
?

I am not all that familiar with php code so want to be sure I have the correct line.

I assume this would solve the issue for themes created afterward - but, what would I need to do to correct themes already created?

Many thanks.

Linda
 
Kevin ONeill

Posted: 2/13/2011
Quote message 

Quote ketamynx:

Quote Garry:

Artisteer developers will fix this issue in next update, meantime you can disable PHP warnings on your server as they are not critical and will not affect your website functionality.


Open up C:\Program Files\Artisteer 3\Library\Data\Templates\WordPress\Export\Files\library\widgets.php

To disable the error go to line 41 and replace whatever is there with
 $controls['params'][] = array('id'=>$id);


To make sure the extra option still works go to line 71 and replace it with
$id = end($params); $id = $id['id'];


Artisteer developers, heads up next time.




Worked perfectly. TU!

 
Luke

Posted: 2/24/2011
Quote message 

Quote LindaV:

I don't have a "library" folder in C:\Program Files\Artisteer 3\Library\Data\Templates\WordPress\Export\Files
Would that be core\widgets.php ?


Yes. Follow Ketamynx's instructions, but for you the line numbers to change are 16 and 82.
 
Marissa

Posted: 3/26/2011
Quote message 

This is a problem caused my the plugin AKISMET interacting with the artisteer theme. You can either disable akismet or try the fix above. I'm going to try the fix. If the developers are looking to resolve the problem, they need bark up the akismet tree and see what doesn't jibe.
 
Marissa

Posted: 3/26/2011
Quote message 

60 seconds later, problem solved! The following fix really works...

Quote ketamynx:


Open up C:\Program Files\Artisteer 3\Library\Data\Templates\WordPress\Export\Files\library\widgets.php

To disable the error go to line 41 and replace whatever is there with
 $controls['params'][] = array('id'=>$id);


To make sure the extra option still works go to line 71 and replace it with
$id = end($params); $id = $id['id'];



:-) :-)
 
TAVRIJ

Posted: 10/21/2011
Quote message 

:-)

Thanks, dear Marissa.
 
Jerri

Posted: 11/7/2011
Quote message 

:-{}

Thanks for the fix...it was driving me nuts!
 
Tom

Posted: 2/15/2012
Quote message 

O:) Thanks it works great with Luke's help.

Quote :
Luke

Yes. Follow Ketamynx's instructions, but for you the line numbers to change are 16 and 82.


However Artisteer planed to fix this Problem the problem apears yesterday.