When trying to open the theme editor from under worpdress, a message appears
-
GET wp-admin/theme-editor.php 500 (Internal Server Error)
Sorry, that file cannot be edited.
Server local , openserver latest version- This topic was modified 5 months ago by rstrah.
-
` wp-core
version: 6.5.5
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true wp-paths-sizes
wordpress_path: C:\OSPanel\home\local\public
wordpress_size: 197.99 MB (207611178 bytes)
uploads_path: C:\OSPanel\home\local\public/wp-content/uploads
uploads_size: 102.23 MB (107199482 bytes)
themes_path: C:\OSPanel\home\local\public/wp-content/themes
themes_size: 49.03 MB (51409478 bytes)
plugins_path: C:\OSPanel\home\local\public/wp-content/plugins
plugins_size: 46.55 MB (48808645 bytes)
database_size: 4.89 MB (5128192 bytes)
total_size: 400.69 MB (420156975 bytes) wp-active-theme
name: themeitmedical (themeitmedical)
version: 1.0
author: Roma Strah
author_website: https://t.me/rstrah
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, widgets-block-editor
theme_path: C:\OSPanel\home\public/wp-content/themes/themeitmedical
auto_update: Disabled wp-plugins-active (11)
Akismet Anti-spam: Spam Protection: version: 5.3.2, author: Automattic - Anti-spam Team, Auto-updates disabled
Carbon Fields: version: 3.6.3, author: htmlburger, Auto-updates disabled
Classic Editor: version: 1.6.3, author: WordPress Contributors, Auto-updates disabled
Contact Form 7: version: 5.9.6, author: Takayuki Miyoshi, Auto-updates disabled
Drag and Drop Multiple File Upload - Contact Form 7: version: 1.3.8.1, author: Glen Don L. Mongaya, Auto-updates disabled
Duplicator: version: 1.5.9, author: Duplicator, Auto-updates disabled
Post SMTP: version: 2.9.4, author: Post SMTP, Auto-updates disabled
Rank Math SEO with AI SEO Tools: version: 1.0.221, author: Rank Math, Auto-updates disabled
User Role Editor: version: 4.64.2, author: Vladimir Garagulya, Auto-updates disabled
What The File: version: 1.6.0, author: Never5, Auto-updates disabled
WordPress Importer: version: 0.8.2, author: wordpressdotorg, Auto-updates disabled wp-media
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1808
imagemagick_version: ImageMagick 7.1.0-13 Q16 x64 2021-11-10 https://imagemagick.org
imagick_version: 3.7.0-dev
file_uploads: 1
post_max_size: 256M
upload_max_filesize: 256M
max_effective_size: 256 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 28 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 1536
imagick::RESOURCETYPE_MAP: 28 GB
imagick::RESOURCETYPE_MEMORY: 14 GB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DJVU, DNG, DOT, DPS, DPX, DXT1, DXT5, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLIF, FLV, FPX, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, 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, JXL, K25, KDC, KERNEL, 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, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, YAML, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: not available wp-server
server_architecture: Windows NT 10.0 AMD64
httpd_software: Apache
php_version: 8.1.28 64bit
php_sapi: apache2handler
max_input_variables: 10000
time_limit: 300
memory_limit: 1024M
max_input_time: -1
upload_max_filesize: 256M
php_post_max_size: 256M
curl_version: 8.7.1 OpenSSL/3.1.5 (Schannel)
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: false
current: 2024-06-25T07:19:16+00:00
utc-time: Tuesday, 25-Jun-24 07:19:16 UTC
server-time: 2024-06-25T07:19:11+00:00 wp-database
extension: mysqli
server_version: 8.2.0
client_version: mysqlnd 8.1.28
max_allowed_packet: 67108864
max_connections: 128 wp-constants
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: C:\OSPanel\home\itmedical.com.local\public/wp-content
WP_PLUGIN_DIR: C:\OSPanel\home\itmedical.com.local\public/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 1024M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined wp-filesystem
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writableon rollback to 6.5.4 everything ok
Yep same issue after latest update
Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your Dashboard, try deactivating all plugins. If you don’t have access to your Dashboard, try manually resetting your plugins (no Dashboard access required). If that resolves the problem, reactivate each one individually until you find the cause.
If that does not resolve the problem, try switching to the Twenty Twenty-Three theme to rule out a theme-specific problem. If you don’t have access to your Dashboard, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific problem.
If that does not resolve the problem, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, ensure that you have set your SFTP or FTP client to view invisible files.
If you couldn’t resolve the problem by resetting your plugins and theme or renaming your .htaccess file, we might be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that specific time. If you don’t have access to your server error log, ask your hosting provider to look for you.
We only need the error log entries within a minute or two of generating the error. Sending the entire error log would be unhelpful.
same message “Sorry, that file cannot be edited.”
Ok, please follow the steps in my reply above.
@macmanx answer doesn’t solve the problem.
After the last update of WP Core, the theme editor does not work, the error appears: “Sorry, that file cannot be edited.”
We do comment “$file = wp_normalize_path( $file );” in the wp-includes/functions.php file it works again with the same configuration (active plugins, active theme, etc.).It will probably only happen on a Windows server.
- This reply was modified 4 months, 4 weeks ago by ntavares.
reporting the same issue on windows server. tried everything disabled plugin change theme, I even removed plugins and left wordpress theme. How do i revert back?
Ok, please report this following the steps at https://make.www.ads-software.com/core/handbook/testing/reporting-bugs/
- You must be logged in to reply to this topic.