Forums

[resolved] [Plugin: Category Meta plugin] Error when attempting to edit categoies (4 posts)

  1. slionais
    Member
    Posted 2 years ago #

    I'm getting this error on the edit categories page:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/wp-category-meta/wp-category-meta.php on line 461

    Any idea what's up?

    http://wordpress.org/extend/plugins/wp-category-meta/

  2. ramsey.tapia
    Member
    Posted 2 years ago #

    On line 451, you should see the following code:
    if(!is_null($metaList) && count($metaList) > 0 && metaList != '')

    If you are running php5, you can replace it with the following:
    if(!empty($metaList))

    Had the same issue as well. It appears that the check for null values doesn't work properly and lets an empty value slip by, causing the attempt to loop through it to throw an error. Hope this helps.

  3. slionais
    Member
    Posted 2 years ago #

    Great working now.

  4. elebail
    Member
    Posted 1 year ago #

    Hello,

    Thank you for the fix.
    I integrated it into the new version.

    Regards,
    Eric Le Bail

Topic Closed

This topic has been closed to new replies.

About this Topic