WordPress.org

Ready to get started?Download WordPress

Forums

Akismet
Warning: Cannot use a scalar value as an array in.......... (7 posts)

  1. tarade
    Member
    Posted 3 years ago #

    I suddenly began receiving this error message on my widgets page:

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

    I disabled all my recently installed plugins, and Askimet is the culprit. I don't know why this is happening, but I have to disable Askimet until this is resolved.

    http://wordpress.org/extend/plugins/akismet/

  2. Joseph Scott
    Member
    Plugin Author

    Posted 3 years ago #

    I haven't been able to reproduce this error using the default twenty-ten theme that comes with WordPress. Can you try it with the twenty-ten theme and see if you still get the error. Based on the error message that you included in looks like this is related your theme, Layout2.0.

  3. tarade
    Member
    Posted 3 years ago #

    I am using a customized layout, however of the 20+ plugins I've used or am using on my site, Akismet is the only one that has ever produced any error.

    Perhaps if you let me know what the error means I can look within my template to see if it is something I can fix?

  4. Joseph Scott
    Member
    Plugin Author

    Posted 3 years ago #

    It is trying to use a scalar value (like a string or number) as an array, which won't work.

  5. Hakkit
    Member
    Posted 2 years ago #

    I have a similar problem with one type of theme (expandable full width artisteer) however only in the backend, when i enter the widget area
    a have to scroll down and across to find anything however it all works. this is the warning i get.

    Cannot use a scalar value as an array in /var/www/vhosts/******/httpdocs/wp-content/themes/****_****/core/widgets.php on line 16

    Here is line (16) $controls['params'][0]['id']=$id;
    gratefull for any help.

  6. Hakkit
    Member
    Posted 2 years ago #

    i should probably mension its artisteer 3 templates and askimet and i don't have a clue whats causing it

  7. Hakkit
    Member
    Posted 2 years ago #

    if you would like a template to try for yourself go to

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic