wsitch
Forum Replies Created
-
Forum: Plugins
In reply to: [WPBook Lite] Multisite WPBook Lite not storing access tokenOk, after some poking around I found what looks like the problem.
Line 640 of wpbook-lite.php calls wp_remote_request. It never returns, anything after this line doesn’t get executed on my system.
I added “echo $token_url;” into a new line just before the wp_remote_request call, and I see this:
https://graph.facebook.com/oauth/access_token?client_id=2205(id)875&redirect_uri=http://will.sitch.org/%3Fwpbook=oauth&client_secret=a48b1a(secret)be0&code=AQBJ9dsdhG(code)W1Q7XSCzE4It looks right, but there’s no error message, code just isn’t evaluated after this line.
From the website I see the page of my multisite blog that I’m trying to match to my facebook account with the URL encoded as follows:
http://will.sitch.org/?wpbook=oauth&code=AQBJ9dsdhG(code)W1Q7XSCzE4#_=_I don’t know what those last four characters are. I don’t know why wp_remote_response is failing without throwing an error. Could this be related to some Curl failure?
I’d really like some help here!
Thanks,
WillHi Otto,
Yes, you’re right, options.php exists, but something strange is happening:
When I click the “Grant SFC Permissions” button a second browser window opens and asks me for permission to connect to the facebook account. When I click ok that window closes. The main window then displays the blog’s “page not found” page, while the URL has a legitimate options.php page address in it.
I assume that the URL being passed back from facebook (perhaps the link containing the token) is somehow mangled. I’m not sure how to troubleshoot this, I don’t have easy access to my ISPs logfile.
Thoughts?
I found what could be a problem in sfc-base.php, line 186, where the post form redirects to, which is set to “options.php”. This causes the “Page not found” to be shown.
Adjusting this to “/wp-admin/options-general.php?page=sfc” eliminates the “Page not found” issue when I click the “Grant SFC Permissions” button, but the tokens still aren’t being captured.
To be more clear about the small window that pops up: I’ve already given permissions for my facebook account to be linked to my facebook app, so it’s not going through the process of asking me if I’m sure I want to grant permission (and to whom I want the postings to be shared with).
I think there’s an issue with the token being saved, perhaps based on the multisite nature of my install.
I’d love some help. I’m available to troubleshoot directly.
Thanks,
WillForum: Plugins
In reply to: [Wordbooker] [Plugin: Wordbooker] Problem with WPG2 imagesOkay I wrote some .htaccess rules to map:
http://will.sitch.org/gallery2/view/2296
to:
http://will.sitch.org/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=2296&g2_serialNumber=2
The .htaccess doesn’t rewrite the URL the browser thinks it’s viewing, so it seems pretty foolproof. I tried adding the following code to your strip_images function but it didn’t work:
if (stripos($var['src'],'main.php?g2_view=core.DownloadItem&g2_itemId=')) { $var['src'] = str_ireplace("main.php?g2_view=core.DownloadItem&g2_itemId=","view/"); $var['src'] = str_ireplace("&g2_serialNumber=1",""); }This seems like a total hack. Are you sure the facebook stream attachment is really ignoring the GET elements of the URL for the image media? That seems wack.
Thanks for all your help.
Will
Forum: Plugins
In reply to: [Wordbooker] [Plugin: Wordbooker] Problem with WPG2 imagesHi Steve,
The code you have (from Wordbook) currently does this. It converts:
<wpg2>2296</wpg2>to:
http://will.sitch.org/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=2296The problem is that the fb stream attachment, when set to attach “image” media, doesn’t seem to want to accept the GET content of the URL. At least, that’s what I think is happening. I can’t read what FB accepted and there’s no error code thrown.
Ideas? I’m fresh out.
Will
Forum: Plugins
In reply to: [Wordbooker] [Plugin: Wordbooker] Problem with WPG2 imagesOkay, the stupid facebook stream attachment isn’t accepting media URLs with parameters.
will.sitch.org/gallery2/blah.jpg works
will.sitch.org/gallery2/?img=blah.jpg doesn’tThis sucks.
Forum: Plugins
In reply to: [Wordbooker] [Plugin: Wordbooker] Problem with WPG2 imagesHi Steve,
Yep, I’m figuring that out too. I put in some debug code and get the following:
JSON attachment : {"name":"test2","href":"http://will.sitch.org/blog-archive/2010/10/test2","description":"test2 3975 test3","media":[{"type":"image","src":"http://will.sitch.org/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=3977&g2_seriI’m assuming it’s being truncated by the diagnostics display, which BTW is a fantastic feature. Makes debugging a hell of a lot easier!
The URL in the img src looks correct. Is there any way to read back what facebook accepted as the post and display that as a debug line?
Thanks,
WillForum: Plugins
In reply to: [Wordbooker] [Plugin: Wordbooker] Problem with WPG2 imagesSo I see two issues:
1. The image URL is reported correctly in the debug section:
http://will.sitch.org/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=2296&g2_serialNumber=2But the image doesn’t show up in the facebook post.
2. The image tag number IS showing up in the facebook post (the text of which is:
test1 3975 test2In wordbooker.php, it looks like one possibility could be the json_encode of the $attachment block:
$result = $fbclient->stream_publish($message,json_encode($attachment), json_encode($action_links)); wordbooker_debugger("Publish to Personal wall result : ",$result,$post->ID) ;I get the result:
2010-10-11 13:53:51 Publish to Personal wall result : ( 543335236_10150269320925237 )Does the json_encode allow URLs with embedded variables? It should. I dunno, I’m grasping at straws here.
Thanks,
WillForum: Installing WordPress
In reply to: “no posts found” on new installHi Bill,
If only it was something so silly. I’ve disabled, enabled, deleted, re-installed all plugins. I’ve tried doing WP re-installs with plugins enabled and disabled.
I’ve repaired and optimized all databases on the server. No dice.
Other ideas?
Will
Forum: Fixing WordPress
In reply to: No posts found in 2.7I have a similar problem, but a database repair doesn’t fix it.
Other thread:
http://ww.wp.xz.cn/support/topic/344686?replies=7Forum: Fixing WordPress
In reply to: I can’t see my posts!I also have this problem.
Other thread:
http://ww.wp.xz.cn/support/topic/344686?replies=7Forum: Installing WordPress
In reply to: “no posts found” on new installHi guys,
I have the same problem. I’ve been using WP since 2.1 or something like that. I see the problem in any version after 2.7, but NOT in 2.7. I don’t want to run the older version due to security concerns.
I see the following when I click “edit posts” when I’m logged in as admin:
Edit Posts Add New
* All (56) |
* Published (56)
No posts foundThere’s another problem as well: when I click “add new post”, the page comes up but without any submit/preview buttons!
I’ve done a lot of searching on this issue and others have said it might have to do with AJAX. Yes, of course I’ve uninstalled and done a complete reinstall (including themes). Yes, I’ve disabled all plugins. I’ve checked everything I can think of.
Any ideas? I’m really at the end of my rope on this one.
Will
[email protected]