Issues with Metabox code
-
Hi! On my website yesterday, I noticed the following error code on my calendar page (located here).
Warning: count(): Parameter must be an array or an object that implements Countable in /home/XXXXXX/public_html/wp-content/themes/mmoart/wpalchemy/MetaBox.php on line 2126
I logged into the code editor of my website and changed the code from this:
$cnt = count(!empty($this->meta[$n])?$this->meta[$n]:NULL);
to this:
$cnt = (!empty($this->meta[$n]))?count ($this->meta[$n]):0;
Luckily, that took the error message off of my calendar page. However, I got into work today, and I noticed that error message is now on every page that has a header. like the page here.
I’m not sure what happened, but if there are any suggestions, I’d love to hear them.
- The topic ‘Issues with Metabox code’ is closed to new replies.