Support Forums

Full Version: Help with Badly done plugin.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This plugin have been giving me problems since i've installed it
It's the last version of Rss To Post plugin http://mods.mybboard.net/view/rss-to-post
Task is enabled correctly
I have allow_url_fopen enabled
everything as readme file says
forum is http://www.beatdj.net/foros/

and i get this error


Quote: MyBB SQL Error - [20] array (
'error_no' => 1064,
'error' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\' at line 1',
'query' => 'UPDATE ez2_users SET numtopics=numtopics+1 WHERE uid=',
)

Could anyone check the plugin and see why it's wrong?
I found in server logs
that talks about this
PHP Parse error: syntax error, unexpected $end in /xxx/xxx/xxx/xxxx/inc/plugins/rss2post.php on line 470

Quote: {
$insert_array = array(
'url' => $db->escape_string($mybb->input['newurl']),
'forum' => $forum,
THIS IS LINE 470 'uid' => $uid,
'striphtml' => (!empty($mybb->input['newstriphtml'])) ? 1 : 0,
);
$db->insert_query("rss2post", $insert_array);

// Log admin action
$mybb->input['action'] = 'add';
$log = array('fid' => $db->insert_id(), 'url' => $mybb->input['newurl']);
log_admin_action($log);

// Reset new feed info
unset($mybb->input['newurl']);
unset($mybb->input['newforum']);
}
}
}
Reupload the file and make sure it's complete, unexpected $end usually means it's only partially uploaded.
i've reuploaded more than 5 times Sad
and nothing
Try re-downloading it? It could've been a faulty download.
Also tried, and nothing

I don't know why it's happening
Quote:'query' => 'UPDATE ez2_users SET numtopics=numtopics+1 WHERE uid=',

Find the line associated with that and post the section here. In the settings what's the uid you have for the RSS posts? I hope it's not blank and it's suppose to be a number not a username.

Your mysql might be in strict mode and you'll have to make some adjustments to the file.
(03-17-2010, 01:32 PM)Omniscient Wrote: [ -> ]Find the line associated with that and post the section here. In the settings what's the uid you have for the RSS posts? I hope it's not blank and it's suppose to be a number not a username.

Your mysql might be in strict mode and you'll have to make some adjustments to the file.


I am maybe a begginer php
I am not so stupid to keep UID's Empty, i ve tried with 1 (super admin), and many ones (mod, super mod, bot, registered member :S) etc

by the way i am using:

Versión de MyBB 1.4.11
Versión PHP 5.1.6
Motor SQL MySQLi 5.0.77

Even i've checked via phpmyadmin to be sure
[Image: 55055409.jpg]

Weird fact that i've searched in all the files included in the zip package:

(the plugin and the tasK)

and i didn't found such line

http://mods.mybboard.net/download/rss-to-post
This is the download link


Thanks in advance for everyone
Have you tried this with any other feeds?
yup, 4 different websites. even i contacted the plugin creator and nothing =/
Solved, close thread plz