-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "File Un-Attach" plugin from cjet theme #118
Comments
|
Both staging and prod for Learn.
…On Fri, Nov 15, 2019, 8:51 PM Ben Keith ***@***.***> wrote:
- update plugins on localhost to match staging — @MirandaEcho
<https://github.com/MirandaEcho> is this affecting just learn.inn.org
or also the Learn staging site?
- investigate whether
https://inn.org/wp-content/uploads/2019/07/noun_guide_2362366-336x336.png
exists under a different subdomain
[image: Screen Shot 2019-11-15 at 21 45 24]
<https://user-images.githubusercontent.com/1754187/68986810-4d15ab80-07f1-11ea-8469-01008d006d7b.png>
[image: Screen Shot 2019-11-15 at 21 46 10]
<https://user-images.githubusercontent.com/1754187/68986814-5ef74e80-07f1-11ea-8ac2-860a8def2372.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#118?email_source=notifications&email_token=ALQHBQJQDCI3HAG7K7IUOTTQT5N35A5CNFSM4JLX4PR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEHHVLI#issuecomment-554597037>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQHBQJ26V3FIV5BSDMSSYDQT5N35ANCNFSM4JLX4PRQ>
.
|
Further adventures of find-the-file, thanks to a
so my local dev site doesn't have a db that matches the staging site's DB. |
After resetting localhost from inndev staging:
so, uh, it looks like http://learn-inn-org.inndev.staging.wpengine.com/ is using a DB from inndevlearn.wpengine.com |
After resetting localhost from inndev live, here's that same thumbnail:
It shows up in the learn.inn.org media library, and So we need a different image.
|
Found a must-use plugin on inn.org that wasn't on my localhost: <?php
/*
Plugin Name: Change Uploads Paths
Plugin URI: http://investigativenewsnetwork.org
Description: Use the main uploads folder for all blogs
Author: Adam Schweigert
Version: 0.1
*/
add_filter('upload_dir', 'ms_global_upload_dir');
function ms_global_upload_dir($uploads)
{
$ms_dir = '/sites/' . get_current_blog_id();
$uploads['path'] = str_replace($ms_dir, "", $uploads['path']);
$uploads['url'] = str_replace($ms_dir, "", $uploads['url']);
$uploads['basedir'] = str_replace($ms_dir, "", $uploads['basedir']);
$uploads['baseurl'] = str_replace($ms_dir, "", $uploads['baseurl']);
return $uploads;
} This explains where |
These image files do not exist on prod at any image size. |
These image files do not exist on the learninndev site, used for staging Learn. @MirandaEcho I don't think this is a problem with the "File Un-Attach" plugin. I think these images are legitimately not present on the servers that are trying to use them. New questions:
|
|
I can't reproduce the issue where images can't be uploaded or added, or the media gallery not being visible to users. The media gallery remains visible to my super-admin user, and I can upload images. With the plugin active, note the weird formatting of the "close" button: With the plugin removed, note the changed appearance of the "close" button: So the plugin is doing something here. The next steps would be to create a user whose permissions match the affected users' permissions, and try from there. @MirandaEcho do we just want to go ahead and remove the plugin rather than verifying that removing the plugin solves the problem? |
https://wordpress.org/plugins/file-un-attach/
https://github.com/INN/umbrella-inndev/tree/master/wp-content/themes/cjet/lib/file-un-attach
This is what's causing the image problems on learn.inn.org
The text was updated successfully, but these errors were encountered: