Support Forums
Help with Badly done plugin. - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Forum Software Help (https://www.supportforums.net/forumdisplay.php?fid=49)
+---- Thread: Help with Badly done plugin. (/showthread.php?tid=5288)



Help with Badly done plugin. - Glas - 03-15-2010

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']);
}
}
}



RE: Help with Badly done plugin. - MattR - 03-16-2010

Reupload the file and make sure it's complete, unexpected $end usually means it's only partially uploaded.


RE: Help with Badly done plugin. - Glas - 03-16-2010

i've reuploaded more than 5 times Sad
and nothing


RE: Help with Badly done plugin. - Jordan L. - 03-17-2010

Try re-downloading it? It could've been a faulty download.


RE: Help with Badly done plugin. - Glas - 03-17-2010

Also tried, and nothing

I don't know why it's happening


RE: Help with Badly done plugin. - Omniscient - 03-17-2010

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.


RE: Help with Badly done plugin. - Glas - 03-17-2010

(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


RE: Help with Badly done plugin. - Omniscient - 03-22-2010

Have you tried this with any other feeds?


RE: Help with Badly done plugin. - Glas - 03-22-2010

yup, 4 different websites. even i contacted the plugin creator and nothing =/


RE: Help with Badly done plugin. - Glas - 12-31-2010

Solved, close thread plz