Viewing 7 replies - 16 through 22 (of 22 total)
  • Getting some errors
    I’m also using this plugin
    http://wordpress.org/extend/plugins/the-events-calendar/

    getting these errors in the application on facebook

    Warning: include(mysite.com/wp-content/plugins/wpbook/theme/header.php) [function.include]: failed to open stream: No such file or directory in mysite.com/wp-content/plugins/the-events-calendar/views/single.php on line 3

    Warning: include() [function.include]: Failed opening ‘mysite.com/wp-content/plugins/wpbook/theme/header.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in mysite.com/wp-content/plugins/the-events-calendar/views/single.php on line 3

    B.

    (@bandonrandon)

    chp2009,

    I belive your problems are unrealted to the comment issue. In the future please start a new thread.

    My guess is that the event plugin is also trying to overwrite the theme i would suggest that if you can disable the plugin for the facebook page do so.

    You can surround the plugin hook in this code if you’d like

    if (isset($_SERVER["HTTP_USER_AGENT"])) {
    		$is_facebook = "false";
    	}
    
    	if (isset($_GET['fb_sig_in_iframe']) || isset($_GET['fb_force_mode'])) {  // this just checks a simple thing
    		$is_facebook= "true";
    	}
    
    if ($is_facebook == "false") { PLUGIN HOOK CODE }

    either that or move files so that WPBook is able to find the event calender files as part of its theme.

    BandonRandon – thanks (as always) for your help. A few troubleshooting issues:

    1. With your test blog (which is not working), which is in a subfolder, what is the canvas callback url? (The setting in the FB app which tells it what to call)

    2. Also, in that same blog, what do you have set in the WordPress side for Settings->General->Blog address and Settings->General->WordPress address?

    3. Finally, are any other settings different between the two (requiring email address from comment authors for example? allowing anonymous comments?)

    The point of the callback handler is to make it possible to have WordPress installed in a subdirectory, to move or rename the wp-content directory – basically to eliminate all assumptions about relative paths between the plugin directory and the wp-includes.

    Doing it the old way required “guessing” about the path from where the comment handling form is to where the core wordpress classes are and calling them as an include – which is a bad practice.

    B.

    (@bandonrandon)

    Hey John,

    Sorry i didn’t get back to you in time. It looks like the 1.5.1 release fixed this problem for me. Hopefully others will report the issue fixed as well.

    Just wondering, where was the problem and what did you do to fix it?

    I have a repeated error while pasting to facebook.

    Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Session key invalid or no longer valid' in /home/sdgonlin/public_html/yellowsub/wp-content/plugins/wpbook/client/facebookapi_php5_restlib.php:3065 Stack trace: #0 /home/sdgonlin/public_html/yellowsub/wp-content/plugins/wpbook/client/facebookapi_php5_restlib.php(1025): FacebookRestClient->call_method('facebook.fql.qu...', Array) #1 /home/sdgonlin/public_html/yellowsub/wp-content/plugins/wpbook/wpbook.php(907): FacebookRestClient->fql_query('SELECT name, pa...') #2 /home/sdgonlin/public_html/yellowsub/wp-includes/plugin.php(339): wp_update_profile_boxes(Object(stdClass)) #3 /home/sdgonlin/public_html/yellowsub/wp-includes/post.php(2122): do_action() #4 /home/sdgonlin/public_html/yellowsub/wp-includes/post.php(1806): wp_transition_post_status('wp_update_profi...', Array) #5 /home/sdgonlin/public_html/yellowsub/wp-includes/post.php(1866): wp_insert_post() #6 /home/sdgonlin/public_html/yellowsub/wp-admin/includes/post.php(192): wp_update_post() #7 /hom in /home/sdgonlin/public_html/yellowsub/wp-content/plugins/wpbook/client/facebookapi_php5_restlib.php on line 3065

    I wonder if anyone had it before and what is the fix. Thanks a lot.

    admin-1 – what do you mean while pasting to facebook?

    Do you mean you get this error while publishing a new post?

    Please start a new thread as your issues seem to be different than those in this thread.

    BandonRandon – I just updated the target url for the form submission in theme/comments.php – the form action at line 79.

    It was pointing to the blog installation home url – I just added /index.php? to that call so that it gets routed appropriately by the WordPress query routing.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘[Plugin: WPBook] problems with posting comments from facebook’ is closed to new replies.