wob
Forum Replies Created
-
Forum: Plugins
In reply to: [Tumblr Crosspostr] Set click through url of image to tumblr post urlThanks! But at that point there’s no tumblr id attached to the post, am I right? That happens first when the post is created the first time.
That’s kind of what I’m wondering here, if it’s possible to receive the tumblr post id and use that to build a click through link (i.e. https://mytumblr.tumblr.com/post/ <insert tumblr id here>). It’s pretty easy if you simply update an existing post, as the tumblr id is stored in a meta value, but on post creation it’s not attached until savepost is fired, yeah?
Forum: Plugins
In reply to: [Tumblr Crosspostr] Animated gifs looses animation upon postingThanks for looking into this Meitar! I too saw the restrictions, but didn’t examine it as careful as I should. I simply pulled a gif url from google (500px) and created a img element in a post and tried to crosspost. The animation died on me and I tried uploading the very same image (via url) to tumblr directly, and it worked. I noticed that the gif was 2.5mb but since it went through via the dashboard I figured it wasn’t the file size. When I saw your reply here I tried a gif with smaller file size and that went through perfectly. Maybe they handle uploads via the api differently, allowing larger files from their dashboard.
Anyway, it “solved” itself. Thanks alot!
Forum: Plugins
In reply to: [Tumblr Crosspostr] "Click here to connect to Tumblr" not workingOmg. Thought I’d tried everything. You know what solved it? Simply rebooting the Digital Ocean Droplet and it was working again (Still using the credentials from the local install though).
Hope it’ll be of some help for others facing this problem.
Forum: Plugins
In reply to: [Tumblr Crosspostr] "Click here to connect to Tumblr" not workingEnabling
define('WP_DEBUG_DISPLAY', true);
Gives me this:
Notice: Trying to get property of non-object in /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/lib/TumblrCrosspostrAPIClient.php on line 32 Call Stack: 0.0008 377556 1. {main}() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/index.php:0 0.0017 456416 2. require_once('/var/www/domain.com/releases/20140804104857/web/wp/wp-admin/admin.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/index.php:10 0.0020 474236 3. require_once('/var/www/domain.com/releases/20140804104857/web/wp/wp-load.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/admin.php:30 0.0023 477488 4. require_once('/var/www/domain.com/releases/20140804104857/web/wp-config.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-load.php:34 0.0148 1229488 5. require_once('/var/www/domain.com/releases/20140804104857/web/wp/wp-settings.php') /var/www/domain.com/releases/20140804104857/web/wp-config.php:9 0.3203 21855216 6. do_action() /var/www/domain.com/releases/20140804104857/web/wp/wp-settings.php:347 0.3492 21966912 7. call_user_func_array() /var/www/domain.com/releases/20140804104857/web/wp/wp-includes/plugin.php:429 0.3492 21966940 8. Tumblr_Crosspostr->setSyncSchedules() /var/www/domain.com/releases/20140804104857/web/wp/wp-includes/plugin.php:0 0.3497 21968600 9. Tumblr_Crosspostr_API_Client->getUserBlogs() /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/tumblr-crosspostr.php:1207 Notice: Trying to get property of non-object in /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/lib/TumblrCrosspostrAPIClient.php on line 32 Call Stack: 0.0008 377556 1. {main}() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/index.php:0 0.0017 456416 2. require_once('/var/www/domain.com/releases/20140804104857/web/wp/wp-admin/admin.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/index.php:10 0.0020 474236 3. require_once('/var/www/domain.com/releases/20140804104857/web/wp/wp-load.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/admin.php:30 0.0023 477488 4. require_once('/var/www/domain.com/releases/20140804104857/web/wp-config.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-load.php:34 0.0148 1229488 5. require_once('/var/www/domain.com/releases/20140804104857/web/wp/wp-settings.php') /var/www/domain.com/releases/20140804104857/web/wp-config.php:9 0.3203 21855216 6. do_action() /var/www/domain.com/releases/20140804104857/web/wp/wp-settings.php:347 0.3492 21966912 7. call_user_func_array() /var/www/domain.com/releases/20140804104857/web/wp/wp-includes/plugin.php:429 0.3492 21966940 8. Tumblr_Crosspostr->setSyncSchedules() /var/www/domain.com/releases/20140804104857/web/wp/wp-includes/plugin.php:0 0.3497 21968600 9. Tumblr_Crosspostr_API_Client->getUserBlogs() /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/tumblr-crosspostr.php:1207
But that shouldn’t be anything fatal, no?
Edit: Hm. If Tumblr Crosspostr is activated and WP_DEBUG_DISPLAY is set to true I can no longer upload images. I guess it’s because I’m not authed properly and that throws errors on post-new.php.
This appears in the Tumblr Crosspostr metabox:
Notice: Trying to get property of non-object in /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/lib/TumblrCrosspostrAPIClient.php on line 32 Call Stack: 0.0005 351256 1. {main}() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/post-new.php:0 0.6209 26538084 2. include('/var/www/domain.com/releases/20140804104857/web/wp/wp-admin/edit-form-advanced.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/post-new.php:65 0.6969 27473952 3. do_meta_boxes() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/edit-form-advanced.php:546 0.7095 27485732 4. call_user_func() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/includes/template.php:924 0.7095 27485764 5. Tumblr_Crosspostr->renderMetaBox() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/includes/template.php:0 0.7110 27487716 6. Tumblr_Crosspostr->tumblrBlogsSelectField() /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/tumblr-crosspostr.php:858 0.7110 27487908 7. Tumblr_Crosspostr_API_Client->getUserBlogs() /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/tumblr-crosspostr.php:1459 Notice: Trying to get property of non-object in /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/lib/TumblrCrosspostrAPIClient.php on line 32 Call Stack: 0.0005 351256 1. {main}() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/post-new.php:0 0.6209 26538084 2. include('/var/www/domain.com/releases/20140804104857/web/wp/wp-admin/edit-form-advanced.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/post-new.php:65 0.6969 27473952 3. do_meta_boxes() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/edit-form-advanced.php:546 0.7095 27485732 4. call_user_func() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/includes/template.php:924 0.7095 27485764 5. Tumblr_Crosspostr->renderMetaBox() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/includes/template.php:0 0.7110 27487716 6. Tumblr_Crosspostr->tumblrBlogsSelectField() /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/tumblr-crosspostr.php:858 0.7110 27487908 7. Tumblr_Crosspostr_API_Client->getUserBlogs() /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/tumblr-crosspostr.php:1459 Warning: Invalid argument supplied for foreach() in /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/tumblr-crosspostr.php on line 1459 Call Stack: 0.0005 351256 1. {main}() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/post-new.php:0 0.6209 26538084 2. include('/var/www/domain.com/releases/20140804104857/web/wp/wp-admin/edit-form-advanced.php') /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/post-new.php:65 0.6969 27473952 3. do_meta_boxes() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/edit-form-advanced.php:546 0.7095 27485732 4. call_user_func() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/includes/template.php:924 0.7095 27485764 5. Tumblr_Crosspostr->renderMetaBox() /var/www/domain.com/releases/20140804104857/web/wp/wp-admin/includes/template.php:0 0.7110 27487716 6. Tumblr_Crosspostr->tumblrBlogsSelectField() /var/www/domain.com/releases/20140804104857/web/app/plugins/tumblr-crosspostr/tumblr-crosspostr.php:858
Still not sure why uploads fail, as this isn’t anything fatal either..
Edit 2: Also tried running
curl -I https://www.tumblr.com/oauth/authorize?oauth_token=xxx
from the live server. It shows:HTTP/1.1 302 Moved Temporarily Server: nginx Date: Mon, 04 Aug 2014 11:04:32 GMT Content-Type: text/html Connection: keep-alive Set-Cookie: tmgioct=53df68c073aa830137052310; expires=Thu, 01-Aug-2024 11:04:32 GMT; path=/; httponly P3P: CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL" Location: / X-UA-Compatible: IE=Edge,chrome=1
So the server can access the tumblr servers..
Forum: Plugins
In reply to: [Tumblr Crosspostr] "Click here to connect to Tumblr" not workingHm, this is really strange, because I’ve set
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);
and there’s nothing showing up on the screen and a log is not generated..
What leads me to believe that this is not a cookie issue is because I tried authing with a computer that never touched tumblr or this particular wordpress site ever before..
Forum: Plugins
In reply to: [Tumblr Crosspostr] "Click here to connect to Tumblr" not workingThanks for your reply Meitar! I really appreciate it. I realize you’re busy doing other stuff, and that’s a real bummer with your laptop ?? If you’d be able to focus a bit on this I’d surely be able donate some money as a token of gratitude for this smallish gig I’m doing.
The debug output is simply:
object(stdClass)#276 (2) { ["meta"]=> object(stdClass)#279 (2) { ["status"]=> int(401) ["msg"]=> string(14) "Not Authorized" } ["response"]=> array(0) { } }
I’ve been toying around with a tumblr app of my own and I’ve been able to store cookies with the access tokens for later use, and that seems to have been working just serving them up for authentication, when needed. In my head it seems like it should work. I’m logged in to the very same Tumblr account when trying to authenticate with the live server as with the local one. Disconnecting and reconnecting is no problem with the local server.
Now I’ve also tried deleting all cache and saved data from previous sessions (entire wipe in the chrome settings). I’ve disabled all plugins.
What bugs me the most is that it worked before I started fiddling. I had to revoke my app and since then I cannot reinitiate. I’ve tried creating 4 new apps all together with the same result.
I wonder if there could be any server settings that’s changed that could cause this. Do you have any thoughts on that?
Forum: Plugins
In reply to: [Tumblr Crosspostr] "Click here to connect to Tumblr" not workingAs the connection between the local setup and tumblr could be initiated I decided to dig into the option table and found tumblr_crosspostr_access_token, tumblr_crosspostr_access_token_secret and tumblr_crosspostr_settings listed there. I copied the data from these three fields to my live server and now the settings page for Tumblr Crosspostr shows up as “connected to tumblr”. However if I try to post anything I get 401 error, not authorized.
Settings page looks a bit weird:
https://dl.dropboxusercontent.com/u/3618143/screenshots/Sk%C3%A4rmavbild%202014-08-04%20kl.%2000.41.18.pngMeitar: Any ideas?
Forum: Plugins
In reply to: [Tumblr Crosspostr] "Click here to connect to Tumblr" not workingIsn’t there some way of inducing the authorization process manually? Totally lost here and as always with time constraints.
The local and live server should be similar in any sense. What I can think about is that they’re a bit different in the way mod rewrites are setup. But that shouldn’t be the issue right? As the authorization process doesn’t need the hosting side, except when sending you back to the callback url. Right?
Forum: Plugins
In reply to: [Tumblr Crosspostr] "Click here to connect to Tumblr" not workingI’m getting this error now aswell.
I revoked my app and created a new one, disconnected and was gonna connect with new credentials, but nothing happens.
The funny thing is that it works on my local install, but on the live one it refuses.
I’ve tried using Firefox, Safari and Chrome (+ Incognito).
And also tried an entirely different computer.Not seeing anything associated with Tumblr Crosspostr in my apache error log.. No error log generated in the wp-content folder (wp_debug and wp_debug_log enabled).
Also tried downgrading from .14 to .13 with no luck.
Forum: Plugins
In reply to: [Attachments] Problem to get attachments of custom type postHad the same trouble. Think it should be added to the docs, for clarity!
Forum: Plugins
In reply to: [Tumblr Crosspostr] error 400Oh, alright! Thanks!
Forum: Plugins
In reply to: [Tumblr Crosspostr] error 400I’m getting 400 when trying to post photo posts, video is fine.
No clue as to why it does this, the only piece of content in the post is this:
<img src="https://xxx.dev/app/uploads/2014/05/Screen-Shot-2014-01-24-at-16.21.37-150x150.jpg">
Forum: Networking WordPress
In reply to: Trouble moving live site to localSo I copied everything from wp_1_posts to wp_posts and now it seems to work, except I get stuck in a loop while trying to log in to the main wp-admin. I can log in to sub blogs though.
Forum: Plugins
In reply to: [CMS Page Order] [Plugin: CMS Page Order] Add reorder functionality for postsAh, yeah, I’ve seen that, but I don’t know how I can specify more than just one post type. Could you show me please?
$post_types[] = ‘rotator, post’;
or
$post_types[] = ‘rotator’, ‘post’;Doesn’t work.
Forum: Plugins
In reply to: [CMS Page Order] [Plugin: CMS Page Order] Add reorder functionality for postsThat’s great Bill, thanks!
But how can I apply to CMS Page Order to multiple post types?Cheers