array_walk() expects parameter 1 to be array

Home Forums Support Forum array_walk() expects parameter 1 to be array

This topic contains 2 replies, has 2 voices, and was last updated by  Honor Hart 12 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #532

    Honor Hart
    Member

    Hi,

    Using wp 3.4.2; installed plugin using upload inside wp admin area

    Got this msg when first installed your plugin. The msg showed at top of page even above the admin template area….but then, the meg disappeared as soon as I navigated away from the page in admin.

    Warning: array_walk() expects parameter 1 to be array, boolean given in

    /home/fmhhart/public_html/wp-content/plugins/gotmls/index.php on line 1064

    Any ideas?

    #533

    Eli Scheetz
    Member

    Thanks for catching that!
    On line 1055 I am reading in the array to be walked from the options table. However, in the case of new installs, there are not any options saved so it returns false instead of an array. This will only happen once after a new install because the default settings will then be saved and returned properly but I have fixed it in my code for the next release.

    Thanks for pointing this out to me. Let me know if I can be of any further assistance.

    #534

    Honor Hart
    Member

    You are great! Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.