Permissions Problem on IIS Server
-
Hello, We are serving WordPress sites on Windows Server 2019. We ran into a problem with replacing files. We received this error:
String(240) “The uploaded file could not be moved to C:/Shares/websites/[site name]/wp-content/uploads/C:/Shares/websites/[site name]/wp-content/uploads/DSP_OrgChart_DSPOnly.pdf. This is most likely an issue with permissions, or upload failed.”
Upload worked, and usually one replacement of the file worked, but the next try would result in the above error.
I also was receiving notices of a file-type change when the uploaded and replacement files were both PDFs.
Finally ‘Delete Permanently’ was removing the file from the Media Listing, but left the file in the Upload directory.
I reverted the plugin to version 3.6.3 and all these problems went away and it works great like it always has. Hope you can sort out this issue. Let me know if you need more information.
Thanks,
-
Hi @msarns,
Could you please send us your site information? It is located on Tools > Site Health > Info. You have a button there to copy it all ??
Thank you,
Sure, info follows:
`
### wp-core ###version: 6.0.2
site_language: en_US
user_language: en_US
timezone: America/New_York
permalink: /%postname%.html
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: closed
environment_type: production
user_count: 32
dotorg_communication: true### wp-paths-sizes ###
wordpress_path: C:\Shares\websites\research.ufl.edu
wordpress_size: 4.44 GB (4768555562 bytes)
uploads_path: C:\Shares\websites\research.ufl.edu/wp-content/uploads
uploads_size: 2.12 GB (2279286876 bytes)
themes_path: C:\Shares\websites\research.ufl.edu/wp-content/themes
themes_size: 15.55 MB (16310200 bytes)
plugins_path: C:\Shares\websites\research.ufl.edu/wp-content/plugins
plugins_size: 127.29 MB (133477550 bytes)
database_size: 100.01 MB (104863072 bytes)
total_size: 6.80 GB (7302493260 bytes)### wp-active-theme ###
name: LimoKing (limoking)
version: 1.3.4
author: Goodlayers
author_website: https://www.goodlayers.com
parent_theme: none
theme_features: core-block-patterns, widgets, woocommerce, widgets-block-editor, post-thumbnails, menus, title-tag, automatic-feed-links, post-formats, editor-style
theme_path: C:\Shares\websites\research.ufl.edu/wp-content/themes/limoking
auto_update: Disabled### wp-themes-inactive (1) ###
Twenty Twenty-Two: version: 1.2, author: the WordPress team, Auto-updates enabled
### wp-mu-plugins (1) ###
MU-Load: version: 0.5.0, author: res-grp-webmaster <[email protected]>
### wp-plugins-active (40) ###
.html on PAGES: version: 1.1, author: IntroSites, Auto-updates enabled
Accordion Shortcodes: version: 2.4.2, author: Phil Buchanan, Auto-updates enabled
Advanced Custom Fields PRO: version: 6.0.0, author: WP Engine, Auto-updates enabled
Advanced Editor Tools (previously TinyMCE Advanced): version: 5.6.0, author: Automattic, Auto-updates enabled
Advanced Export: version: 2.9, author: Ron Rennick, Auto-updates enabled
All in One SEO: version: 4.2.5.1, author: All in One SEO Team, Auto-updates enabled
Anchor Episodes Index: version: 1.2.4, author: JES Web Development, Auto-updates enabled
BackWPup: version: 3.10.0, author: Inpsyde GmbH, Auto-updates enabled
Breadcrumb NavXT: version: 7.1.0, author: John Havlik, Auto-updates enabled
Broken Link Checker: version: 1.11.18, author: WPMU DEV, Auto-updates enabled
Classic Widgets: version: 0.3, author: WordPress Contributors, Auto-updates enabled
CMS Tree Page View: version: 1.6.6, author: Jon Christopher, Auto-updates enabled
Connections Business Directory: version: 10.4.28, author: Steven A. Zahm, Auto-updates enabled
Enable Media Replace: version: 3.6.3, author: ShortPixel (latest version: 4.0.0), Auto-updates disabled
Exclude Pages from Navigation: version: 1.92, author: Simon Wheatley, Auto-updates enabled
Fixed Widget: version: 6.1.1, author: Thomas Maier, Max Bond, Auto-updates enabled
Font Awesome: version: 4.3.1, author: Font Awesome, Auto-updates enabled
GE RSS-Reader Widgets: version: 3.1, author: David Raison, Auto-updates enabled
Goodlayers Function: version: 1.0.1, author: Goodlayers, Auto-updates enabled
Google Analytics for WordPress by MonsterInsights: version: 8.9.0, author: MonsterInsights, Auto-updates enabled
Gravity Forms: version: 2.6.7, author: Gravity Forms, Auto-updates disabled
Gravity PDF: version: 6.4.7, author: Blue Liquid Designs, Auto-updates enabled
Limit Login Attempts Reloaded: version: 2.25.5, author: Limit Login Attempts Reloaded, Auto-updates enabled
Master Slider Pro: version: 3.6.1, author: averta, Auto-updates enabled
Members: version: 3.2.1, author: MemberPress, Auto-updates enabled
Nested Pages: version: 3.2.0, author: Kyle Phillips, Auto-updates enabled
Page2Cat: Category Pages & Posts Shortcodes: version: 3.3.1, author: SWERgroup, Auto-updates enabled
PDF Embedder: version: 4.6.4, author: WP PDF Embedder Team, Auto-updates enabled
POWr RSS Feed: version: 1.6.4, author: POWr.io, Auto-updates enabled
Print, PDF & Email by PrintFriendly: version: 5.2.5, author: Print, PDF, & Email by PrintFriendly, Auto-updates enabled
Quick Page/Post Redirect Plugin: version: 5.2.3, author: anadnet, Auto-updates enabled
Smash Balloon Instagram Feed: version: 6.0.7, author: Smash Balloon, Auto-updates enabled
TablePress: version: 1.14, author: Tobias B?thge, Auto-updates enabled
TablePress Extension: DataTables Column Filter: version: 1.0, author: Tobias B?thge, Auto-updates enabled
The Events Calendar: version: 6.0.1, author: The Events Calendar, Auto-updates enabled
Twitter: version: 2.0.5, author: Twitter, Auto-updates enabled
WordPress Importer: version: 0.7, author: wordpressdotorg, Auto-updates enabled
WP TFeed: version: 1.6.9, author: AccessPress Themes, Auto-updates enabled
Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast, Auto-updates enabled
Yoast SEO: version: 19.7.1, author: Team Yoast, Auto-updates enabled### wp-media ###
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1799
imagemagick_version: ImageMagick 7.0.7-11 Q16 x64 2017-11-23 https://www.imagemagick.org
imagick_version: 3.4.4
file_uploads: File uploads is turned off
post_max_size: 32M
upload_max_filesize: 32M
max_effective_size: 32 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 4 GB
imagick::RESOURCETYPE_DISK: 1.844674407371E+19
imagick::RESOURCETYPE_FILE: 1536
imagick::RESOURCETYPE_MAP: 4 GB
imagick::RESOURCETYPE_MEMORY: 2 GB
imagick::RESOURCETYPE_THREAD: 5
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPS, DPX, DXT1, DXT5, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FLIF, FPX, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: not available### wp-server ###
server_architecture: Windows NT 10.0 AMD64
httpd_software: Microsoft-IIS/10.0
php_version: 7.4.3 64bit
php_sapi: cgi-fcgi
max_input_variables: 1000
time_limit: 300
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: 60
upload_max_filesize: 32M
php_post_max_size: 32M
curl_version: 7.68.0 OpenSSL/1.1.1d
suhosin: false
imagick_availability: true
pretty_permalinks: true### wp-database ###
extension: mysqli
server_version: 5.7.18-log
client_version: mysqlnd 7.4.3
max_allowed_packet: 4194304
max_connections: 151### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: C:\Shares\websites\research.ufl.edu/wp-content
WP_PLUGIN_DIR: C:\Shares\websites\research.ufl.edu/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: true
SCRIPT_DEBUG: true
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
DB_CHARSET: utf8
DB_COLLATE: undefined### wp-filesystem ###
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable### aioseo (1) ###
noindexed: Search Page
@msarns perhaps I am out of the loop as I don’t lurk these forums often, but I feel there is a lot of valuable information for hackers in that health report and don’t think you should leave it there.
Regards
Hello,
We have included a fix for this situation in this version of the plugin:
https://shortpixel.com/downloads/enable-media-replace-4.0.1-DEV04.zip
Can you please check with this version, preferably on a test/development environment, and let us know if it works correctly?
Thank you!
Pedro,
That looks like it solved the issues. I ran several consecutive replacements of a PNG on our testserver, got no error messages, and content updated each time. Tried it with a PDF and it worked fine as well. Deleted items are removed correctly from the uploads folder. Looks fixed.
I will try it on our live site later today.
Thanks,
- The topic ‘Permissions Problem on IIS Server’ is closed to new replies.