progers
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesI deleted the extra returns at the end of my wp-config.php file and also removed the ob_clean(); line of code from wp-includes/ms-files.php to see if this would fix the original problem without modifying WordPress core files.
I’m sorry to report that it does not fix the original problem. I went back in and added ob_clean();
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesI have 2 lines of code and 2 lines of returns:
105: /** Sets up WordPress vars and included files. */ 106: require_once(ABSPATH . 'wp-settings.php'); 107: 108:
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesI read that section as well and double-checked my wp-config.php. I found that it doesn’t even have an ending ?> tag. I’m not sure why that is, it doesn’t seem correct syntactically. I downloaded the latest version of WordPress and even the wp-config-sample.php also has it set up this way.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesDoing some more reading in the forums and I noticed in this thread:
oliverobrien suggested adding ob_clean() before the readfile in ms-files.php:
// If we made it this far, just serve the file ob_clean(); readfile( $file ); ?>
This fixed the problem with the images not displaying!
I guess this will work for now but I would really like to figure out the original problem so I don’t have to modify WordPress core files.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesNo, there is only one base definition. I copied this in from the Network Setup under Settings on Network Admin.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesdefine('WP_ALLOW_MULTISITE', true); define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', true ); $base = '/'; define( 'DOMAIN_CURRENT_SITE', 'www.playcreativeinc.com' ); define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 );
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesI installed WordPress via their one-click custom installer. Also I did remove the option to include all the free themes that normally come with the installation.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesRenamed plugins to plugins-old and now the inactive ones don’t display listed under plugins. I tried logging in again to view the media library and the images still don’t display correctly.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesI don’t have any plugins currently activated, they are all inactive.
Does the main site even use ms-files.php? Or is that only for subsites? The reason I ask is because in the media library it uses the uploads directory rather than the blogs.dir directory for images.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesHere is an image that works on the main site:
https://www.playcreativeinc.com/wp-content/uploads/2012/02/lincoln_footer_3.jpg
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesI have tested the main site’s ability to display uploaded images via the media gallery and that works correctly.
Maybe someone else knows a way to debug the ms-files.php code by walking through the request and seeing where things go wrong.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesI will try to explain the situation better to them.
Is there a way that I can test ms-files.php to determine what the actual problem is? Right now all I can do is assume that ms-files.php works, and that somehow the server is not set up correctly.
And no there are no errors in my error.log file.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesDreamhost says that there’s nothing in general that should cause one domain to not load resources from another domain or subdomain. They also say that it can mean a number of different things, so they would really need a specific example of what you are looking for.
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesI’m not sure about that, how do I check for that?
Forum: Networking WordPress
In reply to: Multisite images cannot be displayed in subsitesBoth .htaccess and httpd.conf do not contain any hotlink protection. Is there somewhere else this could be checked?
I think the image itself is okay, when I use the directory structure to view the image it displays just fine:
https://lincoln.playcreativeinc.com/wp-content/blogs.dir/3/files/2012/02/lincoln_footer_1.jpg