ColinD
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get_children does not get attached images for SOME of my postsHmm. I think I solved it for my case: I think I’ve misunderstood attachments. If you create a post and upload a NEW image via the media uploader tool that image is attached to that post and will be returned when you query get_children.
This introduces some wrinkles:
1. In the case where your new post re-uses an existing image in the media library it isn’t attached to this new post and isn’t returned in get_children($new_post->ID).2. In the case where you edit your post to remove the image from the content it doesn’t detach the image. So you still get the image when you query get_children($edited_post->ID).
If you edit your post and click the media button and then filter your media by ‘uploaded to this post’ you’ll see what is and isn’t directly attached to the post.
Forum: Fixing WordPress
In reply to: get_children does not get attached images for SOME of my postsAny progress jabbamonkey? I’m running into the same issue.
Forum: Plugins
In reply to: [JSON API] External controllers in a plugin (Error)You need to return a file path. By calling
plugins_url( 'hello.php' , __FILE__ )
You are returning a URLYou might try something like
plugin_dir_path( __FILE__ ) . 'hello.php'Or if you’re doing it from within a theme
get_stylesheet_directory() . 'hello.php'Forum: Networking WordPress
In reply to: Moved multisite, subblog image paths aren't workingI did do a bit of manual tinkering and I also used the BackupBuddy search & replace tool rather than the one you linked to but it too handles serialized php data.
My current hunch is back at the .htaccess level since if that were working as I think its supposed to, writing a fatal error into ms-files.php should give me a WSOD whenever there’s a request for /files/ and that’s not happening. But I’m barely literate in .htaccess.
Forum: Networking WordPress
In reply to: Moved multisite, subblog image paths aren't workingYes, AllowOverride is set to all. (MAMP Pro on a local machine; I did check the MAMP httpd.conf)
Other .htaccess directives work as expected.Forum: Networking WordPress
In reply to: Moved multisite, subblog image paths aren't workingI mean a nicely formatted WP 404. Sorry for the confusion.
Forum: Networking WordPress
In reply to: Moved multisite, subblog image paths aren't workingYeah, not hitting wp-includes/ms-files.php
If i edit it to have a fatal php error and request
http://www.example.com/subblog22/files/2012/10/FunnyImage.jpg
I just get a regular 404 but if the request were being redirected as I think this line is intended:
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
I should get a WSOD.Any suggestions on where to look next? I thought my .htaccess was working otherwise. Permalinks work, etc.
Thanks again for all your help.
Forum: Networking WordPress
In reply to: Moved multisite, subblog image paths aren't workingIt’s the default .htaccess:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]I did read those directions. I did fiddle with .htaccess and wp-config. Let me investigate what’s going on with ms-files.php. Thanks for the pointer.
Forum: Networking WordPress
In reply to: Sidebars from another blogThat didn’t do the trick either. I feel dirty and had to go take a shower afterwards but I hard coded it… 🙁
Forum: Networking WordPress
In reply to: Problem after updating from 3.2.1Actually, maybe I’ll ask, since perhaps you know: My custom child theme works on blog 1 (/) but I get the ‘no data received’ on the child sites. I am grabbing a menu and so forth from blog one as the primary nav of the theme. So that’s seems like the first candidate. Any other ideas?
Forum: Networking WordPress
In reply to: Problem after updating from 3.2.1Awesome! So I edited blog 2’s option and all the sub-sites started working (which doesn’t make any sense…) My theme is a child of the WooTheme Simplicity so I enabled that and everything seemed AOK. Then I enabled my custom theme and I get no data received. But that seems like a problem I can troubleshoot on my own. Thanks Mika!
Forum: Networking WordPress
In reply to: Problem after updating from 3.2.1I’ll try that and report back. However, the reason I have all the plugins and themes removed is because all (yes all 24) where giving me a white screen initially. And its not a typical WSOD; I can’t get any decent debug info about where this is failing even when I enable php error and log to a file. Enabling the WP_DEBUG flag isn’t helpful either.
But really appreciate your help. Thanks.
Forum: Networking WordPress
In reply to: Problem after updating from 3.2.1Twenty Thirteen
Forum: Plugins
In reply to: [Download Manager] Plugin interferes with post edit formThanks for the offer. I think I sorted it out. It did appear to be combination of plugins that weren’t working well together. Unfortunately, I’m not 100% sure what change really fixed it.
Forum: Plugins
In reply to: [Download Manager] Plugin interferes with post edit formI disabled autosave to work around this problem. But now I’ve discovered that the TinyMCE tool doesn’t work. It pops up and lets me add a file via the “quick add” etc. but then it inserts a shortcode to file 0 and the file is not actually added to the list of files on the download manager menu page.
I tried disabling all my plugins that think affect TinyMCE (NextGen, TinyMCE Advanced) but that didn’t change the behavior. Again, any advice on how best to troubleshoot this would be greatly appreciated.