Embedder Support Forum

92 Comments in 29 Topics
Embedder Plugin Support Forum » Embeder fails on comment post
Author Topic: Embeder fails on comment post 1 comment / 6528 views

I had strange problem: each time user posts comment he receives error caused by Embedder:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/pedja/public_html/wp-content/plugins/embedder/nbbc-1.4.5/nbbc.php on line 1106

I noticed this happens only for blog visitors. If logged in user posts comment, there is no error.

Fix was simple, I checked if parameter is array before using it so I avoided error.

Here is code fix

function AddRules($rules) {
if (is_array ($rules)) {
$this->tag_rules = array_merge($this->tag_rules, $rules);
}
}

I guess you would like to investigate this further and fix in new release.

Powered by moztools Instant Forums

Leave a Reply

Your email address will not be published. Required fields are marked *