I am just a beginner and trying to figure out what I am missing here. I have installed and activated a plugin on my site but after I add the user name and password this is the message I get:
Fatal error: Call to undefined method Snoopy::submit() in /var/www/vhosts/craigzuber.com/httpdocs/wp-content/plugins/ezinearticles-wordpress-plugin/wp_ezinearticles.php on line 1668
I am not even sure where to start to correct this. I would appreciate any help. Thank you!
Here is the code in that area:
[php]/* a different post method for the posts that are searching the api */
function wp_ezinearticles_post_search($method, $with = null, $unfiltered = false)
{
// post as array
$post_query = array_merge( array(‘search’=>$method), (array)$with, wp_ezinearticles_common_vars($method));
$s = new Snoopy();
$s->submit('http://api.ezinearticles.com/api.php?’, $post_query);
$results = unserialize($s->results);
if ($unfiltered) return $results;
return (isset($results[$method])) ? $results[$method] : false;
}
function wp_ezinearticles_post($method, $with = null)
{
// post as array
$post_query = array_merge( array(‘submit’=>$method), (array)$with, wp_ezinearticles_common_vars($method));
$s = new Snoopy();
$s->submit('http://api.ezinearticles.com/api.php?’, $post_query);
$results = unserialize($s->results);
return ($results[$method][0]) ? $results[$method][0] : $results;
}
function wp_ezinearticles_common_vars($method)
{
$common_vars = array();
$required = array(‘account.status’, ‘account.article.new’, ‘account.article.update’, ‘account.article.view’);
if(in_array($method, $required))
{
$common_vars['email'] = wp_ezinearticles_get_option('ea_email');
$common_vars['pass'] = wp_ezinearticles_get_option('ea_password');
}
$common_vars['response_format'] = 'phpserial';
$common_vars['data_amount'] = 'extended';
$common_vars['key'] = wp_ezinearticles_get_option('ea_api_key');
[/php]