Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Badly done plugin.
#1
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']);
}
}
}
Reply
#2
Reupload the file and make sure it's complete, unexpected $end usually means it's only partially uploaded.
MyBB Support Team Lead
Reply
#3
i've reuploaded more than 5 times Sad
and nothing
Reply
#4
Try re-downloading it? It could've been a faulty download.
At the top will be the same place you hang from.
Reply
#5
Also tried, and nothing

I don't know why it's happening
Reply
#6
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.
Superman I am here to rescue you.
This is Support Forums not Support PMs.  Do not PM me for support unless it's private and site related.
Reply
#7
(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
Reply
#8
Have you tried this with any other feeds?
Superman I am here to rescue you.
This is Support Forums not Support PMs.  Do not PM me for support unless it's private and site related.
Reply
#9
yup, 4 different websites. even i contacted the plugin creator and nothing =/
Reply
#10
Solved, close thread plz
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Table corruption and plugin migration king0demons 0 846 01-03-2016, 08:03 PM
Last Post: king0demons
  MyBB Twitter Plugin like on SF. Snow. 5 1,891 05-02-2012, 07:22 AM
Last Post: Kewlz
  game section plugin scores problem NO BAIL 1 876 02-13-2012, 12:19 PM
Last Post: D3xus
  What plugin is this Crystal 7 1,895 12-23-2011, 06:41 AM
Last Post: Crystal
  MyThreadsMyPosts MyBB 1.6 Plugin BreShiE 13 4,008 10-10-2011, 11:57 AM
Last Post: BlackHops

Forum Jump:


Users browsing this thread: 1 Guest(s)