Pedro
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
Thanks, dear Marissa.
|
|
Jerri
|
Thanks for the fix...it was driving me nuts!
|
|
Tom
|
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.
|
|