MyBB Community Forums

Full Version: MyBBPublisher v2.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
upgrading from 1.3.x to 1.4 is simple. deactivate, upload, reactivate. the activation function included code to add the new settings.
Turkish Language for MyBBPublisher v1.4
[attachment=20548]

More Information:
http://forum.mybbdestek.com/konu-mybbpub...4-0-turkce
Thanks.
Hey- I have an error.

First, background: This morning I upgraded to MyBB 1.6 - it went well.

Then, using the plugin browser, I found and installed this plugin. Following the directions, I got it working with FB and Twitter! Used it about 5 times- seemed to work perfectly.

Then, another user posted a thread. When I noticed, there appeared to be 3 duplicates of that thread, so I deleted two of them.

Then, the remaining thread wouldn't work - clicking on it always returned the "The specified thread does not exist." error.

I instructed the user to repost their thread.

When they did, they got this error:

Fatal error: Call to a member function read() on a non-object in /home/user/public_html/forum/inc/plugins/mybbpublisher.php on line 1228


UPDATE:
It look as if they posted their thread again- but again the thread link doesn't work, the "The specified thread does not exist." error. so strange!
if you go to the ACP >> Tools & Maintenance >> Cache Manager, do you see an entry called mybbpublisher_errors_fb?

If so, click that and tell me what it says.
(2010-11-23, 01:14 AM)pavemen Wrote: [ -> ]if you go to the ACP >> Tools & Maintenance >> Cache Manager, do you see an entry called mybbpublisher_errors_fb?

If so, click that and tell me what it says.

Nope, it's not there in the cache manager...

If I deactivate the plugin, I can make a new thread. When activated, I get

Fatal error: Call to a member function read() on a non-object in /home/ncgunown/public_html/forum/inc/plugins/mybbpublisher.php on line 1228
I will look into it.
I found the error and have uploaded version 1.4.1 of MyBBPublisher to the mods site. Its awaiting activation.

Sorry for the problem, I just missed declaring the cache variable in the facebook portion of the code.
(2010-11-23, 03:54 AM)pavemen Wrote: [ -> ]I will look into it.
I found the error and have uploaded version 1.4.1 of MyBBPublisher to the mods site. Its awaiting activation.

Sorry for the problem, I just missed declaring the cache variable in the facebook portion of the code.

Thanks! Glad I could help... Big Grin

(2010-11-23, 03:54 AM)pavemen Wrote: [ -> ]I will look into it.
I found the error and have uploaded version 1.4.1 of MyBBPublisher to the mods site. Its awaiting activation.

Sorry for the problem, I just missed declaring the cache variable in the facebook portion of the code.

How long does activation usually take?
I get this error once I try to activate the plugin:
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    1064 - 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:
    SELECT max(disporder) as disporder FROM mybb_settings WHERE gid= 

Any advice?
Dear pavemen

I just want to thank you to providing such a nice plugin..I configured it today and it is really amazing..
Thanks again Smile
well, I have one question..How frequent this plugin can post on wall?

I posted 2 posts on my forum within 5min..and it just posted one on page wall..

Is there a place to see if there is any error in posting?
well I found the errors in cache..not sure whats wrong

Quote:Forum ID:
object(FacebookRestClientException)#14 (6) {
["message:protected"]=>
string(95) "The status you are trying to publish is a duplicate of one that we originally posted to Twitter"
["string:private"]=>
string(0) ""
["code:protected"]=>
int(100)
["file:protected"]=>
string(90) "/home/pkitforu/public_html/inc/plugins/mybbpublisher/facebook/facebookapi_php5_restlib.php"
["line:protected"]=>
int(3025)
["trace:private"]=>
array(6) {
[0]=>
array(6) {
["file"]=>
string(90) "/home/pkitforu/public_html/inc/plugins/mybbpublisher/facebook/facebookapi_php5_restlib.php"
["line"]=>
int(916)
["function"]=>
string(11) "call_method"
["class"]=>
string(18) "FacebookRestClient"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(23) "facebook.stream.publish"
[1]=>
array(5) {
["message"]=>
string(104) "A new thread, Haq e Dosti, has been posted to our forums at http://www.pkitforum.com/Thread-Haq-e-Dosti."
["attachment"]=>
string(0) ""
["action_links"]=>
string(0) ""
["target_id"]=>
string(12) "194728884319"
["uid"]=>
string(12) "194728884319"
}
}
}
[1]=>
array(6) {
["file"]=>
string(56) "/home/pkitforu/public_html/inc/plugins/mybbpublisher.php"
["line"]=>
int(1204)
["function"]=>
string(14) "stream_publish"
["class"]=>
string(18) "FacebookRestClient"
["type"]=>
string(2) "->"
["args"]=>
array(5) {
[0]=>
string(104) "A new thread, Haq e Dosti, has been posted to our forums at http://www.pkitforum.com/Thread-Haq-e-Dosti."
[1]=>
string(0) ""
[2]=>
string(0) ""
[3]=>
string(12) "194728884319"
[4]=>
string(12) "194728884319"
}
}
[2]=>
array(4) {
["file"]=>
string(56) "/home/pkitforu/public_html/inc/plugins/mybbpublisher.php"
["line"]=>
int(606)
["function"]=>
string(28) "mybbpublisher_fb_post_update"
["args"]=>
array(1) {
[0]=>
&array(1) {
[0]=>
array(6) {
["type"]=>
string(1) "t"
["id"]=>
int(1447)
["msg"]=>
string(11) "Haq e Dosti"
["url"]=>
string(43) "http://www.pkitforum.com/Thread-Haq-e-Dosti"
["postid"]=>
NULL
["postuid"]=>
NULL
}
}
}
}
[3]=>
array(4) {
["file"]=>
string(48) "/home/pkitforu/public_html/inc/class_plugins.php"
["line"]=>
int(142)
["function"]=>
string(23) "mybbpublisher_newthread"
["args"]=>
array(1) {
[0]=>
&object(PostDataHandler)#12 (14) {
["language_file"]=>
string(16) "datahandler_post"
["language_prefix"]=>
string(8) "postdata"
["action"]=>
string(6) "thread"
["post_insert_data"]=>
array(14) {
["tid"]=>
int(1447)
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["dateline"]=>
int(1290862232)
["message"]=>
string(62) "[img][/img]"
["ipaddress"]=>
string(14) "110.37.129.199"
["longipaddress"]=>
int(1847951815)
["includesig"]=>
int(1)
["smilieoff"]=>
int(0)
["visible"]=>
int(1)
["posthash"]=>
string(32) "469a9206a0c1cca37b227965ba94160c"
}
["post_update_data"]=>
array(0) {
}
["pid"]=>
int(0)
["thread_insert_data"]=>
array(13) {
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["prefix"]=>
int(0)
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["dateline"]=>
int(1290862232)
["lastpost"]=>
int(1290862232)
["lastposter"]=>
string(3) "shk"
["views"]=>
int(0)
["replies"]=>
int(0)
["visible"]=>
int(1)
["notes"]=>
string(0) ""
}
["thread_update_data"]=>
array(0) {
}
["tid"]=>
int(1447)
["data"]=>
&array(13) {
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["prefix"]=>
int(0)
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["message"]=>
string(62) "[img][/img]"
["ipaddress"]=>
string(14) "110.37.129.199"
["posthash"]=>
string(32) "469a9206a0c1cca37b227965ba94160c"
["savedraft"]=>
int(0)
["options"]=>
array(3) {
["signature"]=>
int(1)
["subscriptionmethod"]=>
string(7) "instant"
["disablesmilies"]=>
int(0)
}
["modoptions"]=>
NULL
["dateline"]=>
int(1290862232)
}
["is_validated"]=>
bool(true)
["errors"]=>
array(0) {
}
["admin_override"]=>
bool(false)
["method"]=>
string(6) "insert"
}
}
}
[4]=>
array(6) {
["file"]=>
string(52) "/home/pkitforu/public_html/inc/datahandlers/post.php"
["line"]=>
int(1230)
["function"]=>
string(16) "run_hooks_by_ref"
["class"]=>
string(12) "pluginSystem"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
&string(23) "mybbpublisher_newthread"
[1]=>
&array(1) {
[0]=>
&object(PostDataHandler)#12 (14) {
["language_file"]=>
string(16) "datahandler_post"
["language_prefix"]=>
string(8) "postdata"
["action"]=>
string(6) "thread"
["post_insert_data"]=>
array(14) {
["tid"]=>
int(1447)
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["dateline"]=>
int(1290862232)
["message"]=>
string(62) "[img][/img]"
["ipaddress"]=>
string(14) "110.37.129.199"
["longipaddress"]=>
int(1847951815)
["includesig"]=>
int(1)
["smilieoff"]=>
int(0)
["visible"]=>
int(1)
["posthash"]=>
string(32) "469a9206a0c1cca37b227965ba94160c"
}
["post_update_data"]=>
array(0) {
}
["pid"]=>
int(0)
["thread_insert_data"]=>
array(13) {
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["prefix"]=>
int(0)
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["dateline"]=>
int(1290862232)
["lastpost"]=>
int(1290862232)
["lastposter"]=>
string(3) "shk"
["views"]=>
int(0)
["replies"]=>
int(0)
["visible"]=>
int(1)
["notes"]=>
string(0) ""
}
["thread_update_data"]=>
array(0) {
}
["tid"]=>
int(1447)
["data"]=>
&array(13) {
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["prefix"]=>
int(0)
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["message"]=>
string(62) "[img][/img]"
["ipaddress"]=>
string(14) "110.37.129.199"
["posthash"]=>
string(32) "469a9206a0c1cca37b227965ba94160c"
["savedraft"]=>
int(0)
["options"]=>
array(3) {
["signature"]=>
int(1)
["subscriptionmethod"]=>
string(7) "instant"
["disablesmilies"]=>
int(0)
}
["modoptions"]=>
NULL
["dateline"]=>
int(1290862232)
}
["is_validated"]=>
bool(true)
["errors"]=>
array(0) {
}
["admin_override"]=>
bool(false)
["method"]=>
string(6) "insert"
}
}
}
}
[5]=>
array(6) {
["file"]=>
string(40) "/home/pkitforu/public_html/newthread.php"
["line"]=>
int(397)
["function"]=>
string(13) "insert_thread"
["class"]=>
string(15) "PostDataHandler"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
&string(35) "datahandler_post_insert_thread_post"
[1]=>
&object(PostDataHandler)#12 (14) {
["language_file"]=>
string(16) "datahandler_post"
["language_prefix"]=>
string(8) "postdata"
["action"]=>
string(6) "thread"
["post_insert_data"]=>
array(14) {
["tid"]=>
int(1447)
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["dateline"]=>
int(1290862232)
["message"]=>
string(62) "[img][/img]"
["ipaddress"]=>
string(14) "110.37.129.199"
["longipaddress"]=>
int(1847951815)
["includesig"]=>
int(1)
["smilieoff"]=>
int(0)
["visible"]=>
int(1)
["posthash"]=>
string(32) "469a9206a0c1cca37b227965ba94160c"
}
["post_update_data"]=>
array(0) {
}
["pid"]=>
int(0)
["thread_insert_data"]=>
array(13) {
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["prefix"]=>
int(0)
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["dateline"]=>
int(1290862232)
["lastpost"]=>
int(1290862232)
["lastposter"]=>
string(3) "shk"
["views"]=>
int(0)
["replies"]=>
int(0)
["visible"]=>
int(1)
["notes"]=>
string(0) ""
}
["thread_update_data"]=>
array(0) {
}
["tid"]=>
int(1447)
["data"]=>
&array(13) {
["fid"]=>
string(2) "19"
["subject"]=>
string(11) "Haq e Dosti"
["prefix"]=>
int(0)
["icon"]=>
int(0)
["uid"]=>
string(1) "6"
["username"]=>
string(3) "shk"
["message"]=>
string(62) "[img][/img]"
["ipaddress"]=>
string(14) "110.37.129.199"
["posthash"]=>
string(32) "469a9206a0c1cca37b227965ba94160c"
["savedraft"]=>
int(0)
["options"]=>
array(3) {
["signature"]=>
int(1)
["subscriptionmethod"]=>
string(7) "instant"
["disablesmilies"]=>
int(0)
}
["modoptions"]=>
NULL
["dateline"]=>
int(1290862232)
}
["is_validated"]=>
bool(true)
["errors"]=>
array(0) {
}
["admin_override"]=>
bool(false)
["method"]=>
string(6) "insert"
}
}
}
}
}


===========================================

perhaps I found the problem, it is perhaps are bug in the plugin..

Problem happen when I select "FACEBOOK When posting to a Page, post as yourself?" to "NO", and when plugin post status on firewall, it make it "page status", and on next post, plugin cannot clear that status to make a new status, and therefore return an error.

There is no problem when I select "FACEBOOK When posting to a Page, post as yourself?" to "YES", and let plugin post on wall as my profile rather then as a "page", because when plugin post something on wall as my personal profile, it do not set it "page status" and therefore it do not return any error.
i post as a 'page' all the time on my site, so that it working. the error cache you are showing indicates a duplicate post.

you need to disable the facebook option that reposts to twitter and instead setup mybbpublisher to post to twitter as well so mybbpublisher can publish and track statuses it posts.