Images disconnected from subsites
-
The URL given is only a sample post. None of the images in the subsites show up in the image library or the posts since a database update about 9 months ago. (I asked for help with other issues back then. The image library shows a bunch of grey boxes with the image info, even the option to “edit.” But there’s no real image to edit.
The images show up when the exact URL is typed into the browser. For instance, the missing image in the sample post shows up at https://ssnet.org/wp-content/blogs.dir/12/files/2013/05/International_Date_Line2.jpg That’s because the Network Admin settings for this site indicate that the fileupload_url should be
https://ssnet.org/public_html/wp-content/blogs.dir/12/filesBut WordPress looks for the file at https://sabbathissues.org/files/2013/05/International_Date_Line2.jpg
That is supposed to work because the upload_url_path is set to https://sabbathissues.org/files, but it doesn’t. For good measure, I’ve also tried uploading the image files to the following directories and specified them in the Network Admin settings for the site:
https://ssnet.org/public_html/wp-content/uploads/sites/12/files/2013/05/International_Date_Line2.jpg That URL renders the file URL on a black background! (That destination is currently not specified as the upload_url_path but specifying it as such generates precisely the same results.)I also uploaded the images into the https://ssnet.org/sabbathissues directory, and the URL https://ssnet.org/sabbathissues/files/2013/05/International_Date_Line2.jpg. And the URL renders just fine, but the blog page does not fetch the image
Another problem is this: While all the posts how up as they are supposed to on the public site, they do can not be “edited.” “Quick edit” works, but “edit” only renders a blank page.
Below is a copy of my .htaccess file.
# DIRECT ALL TRAFFIC TO SECURE SITE # RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # END REDIRECTION TO SECURE SITE # # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## <IfModule LiteSpeed> RewriteEngine on CacheLookup on RewriteRule .* - [E=Cache-Control:no-autoflush] RewriteRule \.litespeed_conf\.dat - [F,L] ### marker CACHE RESOURCE start ### RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600] ### marker CACHE RESOURCE end ### ### marker FAVICON start ### RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400] ### marker FAVICON end ### ### marker DROPQS start ### CacheKeyModify -qs:fbclid CacheKeyModify -qs:gclid CacheKeyModify -qs:utm* CacheKeyModify -qs:_ga ### marker DROPQS end ### </IfModule> ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END LSCACHE # BEGIN NON_LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## ### marker BROWSER CACHE start ### <IfModule mod_expires.c> ExpiresActive on ExpiresByType application/pdf A2592000 ExpiresByType image/x-icon A2592000 ExpiresByType image/vnd.microsoft.icon A2592000 ExpiresByType image/svg+xml A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000 ExpiresByType image/gif A2592000 ExpiresByType image/webp A2592000 ExpiresByType video/ogg A2592000 ExpiresByType audio/ogg A2592000 ExpiresByType video/mp4 A2592000 ExpiresByType video/webm A2592000 ExpiresByType text/css A2592000 ExpiresByType text/javascript A2592000 ExpiresByType application/javascript A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType application/x-font-ttf A2592000 ExpiresByType application/x-font-woff A2592000 ExpiresByType application/font-woff A2592000 ExpiresByType application/font-woff2 A2592000 ExpiresByType application/vnd.ms-fontobject A2592000 ExpiresByType font/ttf A2592000 ExpiresByType font/otf A2592000 ExpiresByType font/woff A2592000 ExpiresByType font/woff2 A2592000 </IfModule> ### marker BROWSER CACHE end ### ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END NON_LSCACHE # BEGIN WordPress Multisite RewriteEngine On RewriteBase / RewriteRule ^(.*/)?files/$ index.php [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-.*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] # END WordPress# # Google Analytics Integration - Added by cPanel. <IfModule mod_substitute.c> AddOutputFilterByType SUBSTITUTE text/html Substitute "s|(<script src='/google_analytics_auto.js'></script>)?</head>|<script src='/google_analytics_auto.js'></script></head>|i" </IfModule> # END Google Analytics Integration # Wordfence WAF <IfModule LiteSpeed> php_value auto_prepend_file '/home/ssnet/public_html/wordfence-waf.php' </IfModule> <IfModule lsapi_module> php_value auto_prepend_file '/home/ssnet/public_html/wordfence-waf.php' </IfModule> <Files ".user.ini"> <IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> </Files> # END Wordfence WAF # BEGIN LiteSpeed <IfModule Litespeed> SetEnv noabort 1 </IfModule> # END LiteSpeed RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^https://bewellandprosper.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://bewellandprosper.net$ [NC] RewriteCond %{HTTP_REFERER} !^https://sabbathissues.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://sabbathissues.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://ssnet.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://ssnet.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.bewellandprosper.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.bewellandprosper.net$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.sabbathissues.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.sabbathissues.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.ssnet.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.ssnet.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://bewellandprosper.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://bewellandprosper.net$ [NC] RewriteCond %{HTTP_REFERER} !^https://sabbathissues.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://sabbathissues.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://ssnet.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://ssnet.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.bewellandprosper.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.bewellandprosper.net$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.sabbathissues.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.sabbathissues.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.ssnet.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.ssnet.org$ [NC] # Rewrite rule causes jpg requests to fail # RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC] # SOFTACULOUS Block .htaccess and .htpasswd # SOFTACULOUS Block .htaccess and .htpasswd End # protect wpconfig.php <files wp-config.php> order allow,deny deny from all </files>
I need help fixing the disconnect between the existing image files and the image library and posts. I would also like to see editable posts.
Thanks much!
The page I need help with: [log in to see the link]
- The topic ‘Images disconnected from subsites’ is closed to new replies.