WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin : Wordbooker] Bug reports (86 posts)

  1. Steve
    Member
    Posted 4 years ago #

    If people are having problems with my Wordbooker plugin rather than just voting saying its "broken" can you please post some information and I'll look into it.

    I know that it doesn't play well with some other Facebook plugins down to the fact that they are using old and obsolete versions of the Facebook API client libraries which don't support the methods this plugin uses. Unfortunately there isn't a lot I can do about that.

  2. Steben
    Member
    Posted 4 years ago #

    Plugin doesn't even activate. I get this error:

    Plugin could not be activated because it triggered a fatal error.
    
    Parse error: parse error, unexpected '{' in /export/vol7/httpd/htdocs/band/wp-content/plugins/wordbooker/wordbooker.php on line 140

    I'm stuck on a really crummy server running PHP4, so maybe that's it.

  3. Steve
    Member
    Posted 4 years ago #

    Unfortunately it needs a minimum of php5 - Facebook don't support php4 any more.

  4. pdxmph
    Member
    Posted 4 years ago #

    I use MarsEdit to work on my blog. I noticed that when I post an entry from there, WordBooker doesn't seem to pick it up and post it to Facebook. I went into my WordPress install proper, added a space to the end of the entry, overrode the "Force Re-Publish" setting and re-saved. Facebook picked it up right away.

    Is this just something that happens as a result of using blogging clients instead of doing things directly from the WordPress posing interface? Do you have any control over how the plugin behaves in that regard?

    For purposes of comparison: Twitter Tools used to behave the same way, but changed at some point and seems to pick up MarsEdit-posted entries just fine.

  5. Steve
    Member
    Posted 4 years ago #

    I tested it with a few XMLRPC clients under linux and Vista and it seemed to work fine.

    You have got "publish by default" checked?

  6. pdxmph
    Member
    Posted 4 years ago #

    Well, I thought I did earlier, but I disabled the plugin when it looked like it wouldn't work, then reenabled it and had to go through and reconfigure it as a result. I was careful to check "publish by default" this time. It worked on my next post. Must have missed that setting the first time.

    Thanks for the quick response!

  7. Steve
    Member
    Posted 4 years ago #

    Glad it worked

  8. ddeconin
    Member
    Posted 4 years ago #

    I tried enabling it on one blog and it worked, but on another one everything seems ok from a configuration standpoint , but it doesn't post anything with facebook. Is there a way to log/trace what/if wordbooker does something when I post a post ?

  9. Steve
    Member
    Posted 4 years ago #

    Are there any other facebook related plugins enabled for that blog? Is it dumping anything into its own error logs (which show when you go to the options page) or into the php error logs?

  10. jwurster
    Member
    Posted 4 years ago #

    I am having a problem with Wordbooker 1.6.1 in that it threw up the "Hey, you're not allowed in here." message whenever a non-admin user tried to login. And when I go to the Settings, I get the following error:

    Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Incorrect signature' in /home/sustaio8/public_html/wp-content/plugins/wordbooker/facebook-platform/php/facebookapi_php5_restlib.php:3112 Stack trace: #0 /home/sustaio8/public_html/wp-content/plugins/wordbooker/facebook-platform/php/facebookapi_php5_restlib.php(1794): FacebookRestClient->call_method('facebook.users....') #1 /home/sustaio8/public_html/wp-content/plugins/wordbooker/wordbooker_options.php(112): FacebookRestClient->users_getLoggedInUser() #2 /home/sustaio8/public_html/wp-includes/plugin.php(339): wordbook_option_manager('') #3 /home/sustaio8/public_html/wp-admin/admin.php(95): do_action('wordbook_option...', Array) #4 /home/sustaio8/public_html/wp-admin/options-general.php(10): require_once('/home/sustaio8/...') #5 {main} thrown in /home/sustaio8/public_html/wp-content/plugins/wordbooker/facebook-platform/php/facebookapi_php5_restlib.php on line 3112

    This is really a cool plugin but I just had to deactivate it to allow my users to be able to log in and post.

    Can you please help?
    Thank you, jim

  11. Steve
    Member
    Posted 4 years ago #

    The hey you're not allowed message is all changed in 1.7 - which sets some different levels for different users.

    The "Incorrect Signature" error is down to a failure in the power supply to the Facebook back end ( http://developers.facebook.com/live_status.php#msg_570)

    It should now be working again

  12. mglanznig
    Member
    Posted 4 years ago #

    When will 1.7 be around? I'd really like to try it out but can't right now, because my users have no access to the dashboard anymore with Wordbooker enabled. Looks like a really nice plugin though.
    Thanks, Mike

  13. jwurster
    Member
    Posted 4 years ago #

    As an interim fix, I just commented out the offending IF statement and all is well, especially for users other than admin. Looking forward to the new version.

  14. Steve
    Member
    Posted 4 years ago #

    1.7 should be out next week - I pushed another Beta out this morning.

    The security thing is going to be a big change - some people want to lock it down, some want it open, some want it very configurable and I suspect that its going to be something that needs a lot of looking at and work on.

    For example if someone doesn't have a FB profile associated with their account but the blog admin has set it up to post to say his account then should it still do it if the person posting the entry doesn't have wordbooker set up.

  15. mrobinson
    Member
    Posted 4 years ago #

    Hi All,

    Trying to activate Wordbooker 1.7.2 on WP 2.9.2. Just upgraded our server to PHP 5.2.12 because I thought our lame 4.something or other version was the problem. I'm getting this fatal error:

    Parse error: syntax error, unexpected '{' in \\boswinfs01\home\users\web\b469\ywh.ivyroomchicagocom\blog\wp-content\plugins\wordbooker\wordbooker.php on line 134

    Any ideas? Thanks,

    Matt

  16. Steve
    Member
    Posted 4 years ago #

    Matt, if you're getting that error then its still running on php 4.x (which doesn't understand the try { } catch { } logic )

  17. mrobinson
    Member
    Posted 4 years ago #

    Thanks, Steve. I'll look into it further.

  18. azonin
    Member
    Posted 4 years ago #

    Immediately after installing and activating the plugin, going to Settings->Wordbooker generates the following error:
    WordPress database error Duplicate column name 'facebook_id' for query
    ALTER TABLE wp_wordbook_userdata
    ADD facebook_id VARCHAR( 40 ) NOT NULL ,
    ADD name VARCHAR( 250 ) NOT NULL ,
    ADD status VARCHAR( 1024 ) default NULL ,
    ADD updated INT( 20 ) NOT NULL ,
    ADD url VARCHAR( 250 ) default NULL ,
    ADD pic VARCHAR( 250 ) default NULL ,
    ADD pages VARCHAR( 2048 ) default NULL,
    ADD auths_needed int(1) NOT NULL,
    ADD blog_id bigint(20) NOT NULL
    made by require_once, do_action, call_user_func_array, wordbooker_option_manager, wordbooker_option_notices, wordbooker_upgrade
    WordPress database error Multiple primary key defined for query ALTER TABLE wp_wordbook_userdata ADD PRIMARY KEY ( user_ID ) made by require_once, do_action, call_user_func_array, wordbooker_option_manager, wordbooker_option_notices, wordbooker_upgrade
    WordPress database error Duplicate key name 'facebook_idx' for query ALTER TABLE wp_wordbook_userdata ADD INDEX facebook_idx ( facebook_id ) made by require_once, do_action, call_user_func_array, wordbooker_option_manager, wordbooker_option_notices, wordbooker_upgrade

  19. Steve
    Member
    Posted 4 years ago #

    Sometimes it would seem that the schema version doesn't get saved on install so when you go to the options screen it thinks its doing an update - but it shouldn't be a fatal error.

  20. Steve
    Member
    Posted 4 years ago #

    I think I've found the bug and fixed it. 1.7.4 should fix that and a few other minor problems (like it crashing if it finds a totally blank Facebook status!)

  21. upwww
    Member
    Posted 4 years ago #

    Very frustrating. I can install and setup Wordbook with no problem but Wordbooker can't get past the "getting an infinite session from Facebook" part. This occurs both locally (WP2.8.5, WinXP, IIS, PHP5+) and remotely (WP2.8.5, Win2003, IIS, PHP5+). At the settings page I'm prompted to enter the session code; whatever I enter returns me to that page. Adding debug code seems to indicate that wordbooker_fbclient_getsession() throws an exception "100 - Invalid parameter" and so subsequently never writes the details to the database to allow me to get any further. The puzzling thing is, as I've said, installing Wordbook works and the code around this part looks identical. I've made sure that databases created in MySQL for each plugin are deleted between installs. I'm hoping that you might be able to shed some light on this because it's got me stumped. I'm familiar with (though not expert at) PHP, but not WordPress. I'm hoping after all this that the plugin does what I'm expecting which is that it will be able to post WordPress updates to a fan page wall, something I simply cannot get to work with any other thing I've tried.

  22. upwww
    Member
    Posted 4 years ago #

    And a follow-up: I seem to have got past the Invalid Parameter issue. Why? I haven't a clue. It's not as if I've changed any code; simply added more debug lines. Anyway, it now returns the value from wordbooker_fbclient_getsession() but cannot extract $secret from the response. $session_key it gets. $secret, however, is blank. Does this make a difference? I don't know but I do know that the wordbooker_set_userdata() function now fails to do anything. Debugging again and pasting the generated SQL into MySQL query browser returns:

    Field 'facebook_id' doesn't have a value

    And I can see that's true. The Insert query inserts user_ID , onetime_data , facebook_error , secret , session_key , blog_id but nothing else. facebook_id, I can see, is defined as NOT NULL in the db schema but there's no default value so it is null at insert time. Question: do you have default values in your schema? Is your MySQL configured to ignore nulls?

  23. Steve
    Member
    Posted 4 years ago #

    So the call:

    list($result, $error_code, $error_msg) = wordbooker_fbclient_getsession($fbclient, $token);

    is working OK?

    What happens if you do a var_dump($result); ? Does that show empty fields?

    If it does then that implies that the $fbclient->auth_getSession($token) call in wordbooker_fbclient_getsession is failing.

    You've not got any other facebook related plugins active have you?

  24. upwww
    Member
    Posted 4 years ago #

    Yes, that line's okay to a point. $result returns:

    array(3) { ["session_key"]=> string(34) "a1a1a1a1a1a1a1a1a1a1a1-111111111" ["uid"]=> string(9) "111111111" ["expires"]=> string(1) "0" }

    (*) values altered, obviously.

    As you can see, there's no $result['secret'] value though, which is picked up next in the code.

    The code gets past this point and then calls:

    wordbooker_set_userdata( $onetime_data,$facebook_error, $secret, $session_key);

    In here is where things next go wrong. The INSERT query generated fails; debugging the code to get the query it's trying to execute and then executing that query directly into MySQL Query Browser pulls up the problem in my last message. The database schema sets NO NULLs for most of the fields in the table and doesn't have any default values; subsequently, the insert query that's only populating six fields fails. This makes me wonder how the query ever works for anyone, yet clearly it does.

  25. Steve
    Member
    Posted 4 years ago #

    I checked my DB and realised that secret is empty (but its not null)

    If you look, all those values are serialised - so if they are not set they are set to "N:" which is what happens when you serialise a null field.

    Have you got strict mode turned on?

    According to :

    http://dev.mysql.com/doc/refman/5.0/en/data-type-defaults.html

    having Not NULL string defaulting to an empty string is acceptable.

    Try taking the null check off the various columns and see if it fixes it.

  26. BrewNinja
    Member
    Posted 4 years ago #

    Trying to get 1.7.5 to work here. When trying to enter the 1 time facebook code, I get the following error:

    WordPress database error: [Field 'facebook_id' doesn't have a default value]
    INSERT INTO wp_wordbook_userdata ( user_ID , onetime_data , facebook_error , secret , session_key , blog_id ) VALUES ( 1 , 'a:3:{s:11:"onetimecode";s:6:"L4474H";s:10:"error_code";i:100;s:9:"error_msg";s:17:"Invalid parameter";}' , 'N;' , 'N;' , 'N;' , 1 )

    I disabled the plugin and made sure the tables were deleted, then reactivated it so that it would recreate the tables. It did all that fine. Same error every time for me.

  27. Steve
    Member
    Posted 4 years ago #

    OK - I know what that is - its due to a MySQL setting which enforces nulls on unset fields (by default MySQL will allow you to have empty NOT NULL fields in a row if you don't attempt to put any data into them - and as you can see my insert isn't attempting to put anything into facebook_id at this stage.

    Do you have access to the database?

    If so can you issue the following command:

    ALTER TABLE wp_wordbook_userdata CHANGE onetime_data onetime_data LONGTEXT NULL ,
    CHANGE facebook_error facebook_error LONGTEXT  NULL ,
    CHANGE session_key session_key VARCHAR( 80 )  NULL ,
    CHANGE facebook_id facebook_id VARCHAR( 40 )  NULL ,
    CHANGE name name VARCHAR( 250 )  NULL ,
    CHANGE updated updated INT( 20 ) NULL ,
    CHANGE auths_needed auths_needed INT( 1 ) NULL ,
    CHANGE blog_id blog_id BIGINT( 20 ) NULL
  28. BrewNinja
    Member
    Posted 4 years ago #

    Worked like a charm! Thanks for the quick reply! Love the plugin btw! Just upgraded from an old version.

  29. Steve
    Member
    Posted 4 years ago #

    OK.

    I'll roll those changes up into the next release

  30. Iva
    Member
    Posted 4 years ago #

    Sadly, as of the latest version, synching comments back to the blog doesn't appear to be working. I have the same problem occurring on two different servers. :(

Topic Closed

This topic has been closed to new replies.

About this Topic