PHP deprecated $http_response_header
-
On access page wp-admin/upload.php, wp-admin/admin.php?page=WP-Optimize, or any wp optimize admin pages
Deprecated: The predefined locally scoped $http_response_header variable is deprecated, call http_get_last_response_headers() instead in wp-optimize\includes\class-re-smush-it-task.php on line 139, 173, 174
-
This topic was modified 3 months, 3 weeks ago by
vee.
-
This topic was modified 3 months, 3 weeks ago by
-
Hi @okvee!
What version of WPO do you have installed?v 4.4.0
Please confirm your PHP and WordPress version so that I can try replicating this issue.
If possible, share your site status report at WPO > Settings > System status > Download report. You can encode any sensitive information there by replacing parts it with something like “***“.Regards.
WP-Optimize information
Report generation time: 2025-12-25 09:49:18 (Asia/Bangkok)
Cache size: 0 B (0 files)
Minify size: Not available
Logs: – cache-82111a9a15676cb2eeb1.log: 6 KB
WebP redirection rules: Redirection is disabled
Plugin settings: {
“epoch_date”: 1766656159516,
“local_date”: “12/25/2025, 4:49:19 PM”,
“network_site_url”: “https://domain.tld”,
“data”: {
“cache_settings”: {
“enable_page_caching”: 0,
“auto_preload_purged_contents”: 1,
“enable_mobile_caching”: 0,
“enable_user_caching”: 0,
“page_cache_length_value”: “24”,
“page_cache_length_unit”: “hours”,
“enable_schedule_preload”: 0,
“preload_schedule_type”: “wpo_use_cache_lifespan”,
“cache_exception_urls”: [
“”
],
“cache_ignore_query_variables”: [
“”
],
“cache_exception_cookies”: [
“”
],
“cache_exception_conditional_tags”: [
“”
],
“cache_exception_browser_agents”: [
“”
]
},
“minify_settings”: {
“html_minification”: “true”,
“enable_js”: “true”,
“enable_css”: “true”,
“enabled”: “false”,
“enable_js_minification”: “true”,
“enable_merging_of_js”: “true”,
“exclude_js”: “”,
“enable_defer_js”: “individual”,
“async_js”: “”,
“defer_js_type”: “defer”,
“defer_jquery”: “true”,
“exclude_delay_js”: “”,
“enable_js_trycatch”: “false”,
“exclude_js_from_page_speed_tools”: “false”,
“enable_delay_js”: “false”,
“enable_preload_js”: “false”,
“enable_css_minification”: “true”,
“enable_merging_of_css”: “true”,
“exclude_css”: “”,
“async_css”: “”,
“enable_unused_css”: “false”,
“inline_css”: “false”,
“remove_print_mediatypes”: “false”,
“exclude_css_from_page_speed_tools”: “false”,
“enable_display_swap”: “true”,
“gfonts_method”: “inherit”,
“fawesome_method”: “inherit”,
“disable_google_fonts_processing”: “false”,
“remove_googlefonts”: “false”,
“enable_analytics”: “false”,
“merge_inline_extra_css_js”: “true”,
“emoji_removal”: “true”,
“default_protocol”: “dynamic”,
“disable_when_logged_in”: “false”,
“clean_header_one”: “false”,
“cache_lifespan”: “30”,
“minify_advanced_tab”: “1”,
“debug”: “false”,
“edit_default_exclutions”: “false”
},
“smush_settings”: {
“compression_server”: “resmushit”,
“image_quality”: 92,
“lossy_compression”: false,
“back_up_original”: false,
“back_up_delete_after”: true,
“back_up_delete_after_days”: “50”,
“preserve_exif”: false,
“autosmush”: false,
“show_smush_metabox”: true,
“webp_conversion”: false
},
“database_settings”: “retention-period=2&revisions-retention-count=2&enable-schedule=true&schedule_type=wpo_weekly&wp-optimize-auto%5Boptimize%5D=true&wp-optimize-auto%5Brevisions%5D=true&wp-optimize-auto%5Bdrafts%5D=true&wp-optimize-auto%5Bspams%5D=true&wp-optimize-auto%5Btransient%5D=true&_wpnonce_db_settings=55026c41ee&_wp_http_referer=%2Fwp-admin%2Fadmin.php%3Fpage%3Dwpo_settings&_wpnonce=55026c41ee&_wp_http_referer=%2Fwp-admin%2Fadmin.php%3Fpage%3Dwpo_settings&enable-retention=0&enable-revisions-retention=0&enable-auto-backup-scheduled=0&wp-optimize-auto[trash]=0&wp-optimize-auto[unapproved]=0&wp-optimize-auto[usermeta]=0&404_detector=0&enable-admin-bar=0&enable_cache_in_admin_bar=0”
}
}
Cache settings: {
“enable_page_caching”: false,
“page_cache_length_value”: 24,
“page_cache_length_unit”: “hours”,
“page_cache_length”: 86400,
“cache_exception_conditional_tags”: [],
“cache_exception_urls”: [],
“cache_ignore_query_variables”: [],
“cache_exception_cookies”: [],
“cache_exception_browser_agents”: [],
“enable_sitemap_preload”: false,
“enable_schedule_preload”: false,
“preload_schedule_type”: “”,
“enable_mobile_caching”: false,
“enable_user_caching”: false,
“site_url”: “https:\/\/domain.tld\/”,
“enable_cache_per_country”: false,
“enable_cache_aelia_currency”: false,
“permalink_structure”: “\/%year%\/%monthnum%\/%postname%\/”,
“uploads”: “\/\/\/\/\/public_html\/wp-content\/uploads”,
“gmt_offset”: 7,
“timezone_string”: “Asia\/Bangkok”,
“date_format”: “F j, Y”,
“time_format”: “g:i a”,
“use_webp_images”: false,
“show_avatars”: 0,
“host_gravatars_locally”: 0,
“auto_preload_purged_contents”: true,
“enable_rest_caching”: false,
“wpo_cache_cookies”: [],
“wpo_cache_query_variables”: []
}
Webroot .htaccess: # Rewrite www & http (unsafe protocol).RewriteEngine OnRedirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L]Redirect http:// to https://
RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]END Rewrite www & http (unsafe protocol). BEGIN WordPress The directives (lines) between “BEGIN WordPress” and “END WordPress” are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten.
RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]END WordPress
Uploads .htaccess: Not found or not readable
Folder permissions: {
“uploads”: “777”,
“uploads\/2021”: “777”,
“uploads\/2022”: “777”,
“uploads\/2023”: “777”,
“uploads\/2024”: “777”,
“uploads\/2025”: “777”,
“uploads\/fonts”: “777”,
“uploads\/wpo”: “777”
} WordPressVersion: 7.0-alpha-61406
Site language: en_US
User Language: en_US
Timezone: Asia/Bangkok
Home URL: https://domain.tld
Site URL: https://domain.tld
Permalink structure: /%year%/%monthnum%/%postname%/
Is this site using HTTPS?: Yes
Is this a multisite?: No
Can anyone register on this site?: No
Is this site discouraging search engines?: No
Default comment status: Closed
Environment type: development
User count: 1
Communication with WordPress.org: WordPress.org is reachable Directories and SizesWordPress directory location: D:**\public_html
WordPress directory size: 58.63 MB
Uploads directory location: D:**\public_html/wp-content/uploads
Uploads directory size: 263.38 MB
Themes directory location: D:**\public_html/wp-content/themes
Themes directory size: 9.06 MB
Plugins directory location: D:**\public_html/wp-content/plugins
Plugins directory size: 32.89 MB
Fonts directory location: D:**\public_html/wp-content/uploads/fonts
Fonts directory size: 495.20 KB
Database size: 7.17 MB
Total installation size: 371.61 MB Drop-insdb.php: Custom database class. Active Theme
Name: Twenty Twenty-Five (twentytwentyfive)
Version: 1.4
Author: the WordPress team
Author website: https://wordpress.org
Parent theme: None
Theme features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates, post-formats, editor-style
Theme directory location: D:**\public_html/wp-content/themes/twentytwentyfive
Auto-updates: Enabled Parent Theme Inactive ThemesTwenty Eleven (twentyeleven): Version 5.0 by the WordPress team | Auto-updates disabled
Twenty Fifteen (twentyfifteen): Version 4.1 by the WordPress team | Auto-updates disabled
Twenty Fourteen (twentyfourteen): Version 4.4 by the WordPress team | Auto-updates disabled
Twenty Nineteen (twentynineteen): Version 3.2 by the WordPress team | Auto-updates disabled
Twenty Seventeen (twentyseventeen): Version 4.0 by the WordPress team | Auto-updates disabled
Twenty Sixteen (twentysixteen): Version 3.7 by the WordPress team | Auto-updates disabled
Twenty Ten (twentyten): Version 4.5 by the WordPress team | Auto-updates disabled
Twenty Thirteen (twentythirteen): Version 4.5 by the WordPress team | Auto-updates disabled
Twenty Twelve (twentytwelve): Version 4.7 by the WordPress team | Auto-updates disabled
Twenty Twenty (twentytwenty): Version 3.0 by the WordPress team | Auto-updates disabled
Twenty Twenty-Four (twentytwentyfour): Version 1.4 by the WordPress team | Auto-updates disabled
Twenty Twenty-One (twentytwentyone): Version 2.7 by the WordPress team | Auto-updates disabled
Twenty Twenty-Three (twentytwentythree): Version 1.6 by the WordPress team | Auto-updates disabled
Twenty Twenty-Two (twentytwentytwo): Version 2.1 by the WordPress team | Auto-updates disabled Must Use Plugins Active PluginsDebug Bar: Version 1.1.7 by wordpressdotorg | Auto-updates enabled
Debug Bar Actions and Filters Addon: Version 1.5.5 by Subharanjan | Auto-updates enabled
Disable Theme and Plugin Auto-Update Emails: Version 2.0.5 by KZeni | Auto-updates enabled
Query Monitor: Version 3.20.2 by John Blackbourn | Auto-updates enabled
Rundiz.com Network Links: Version 1.0.3 by Vee Winch | Auto-updates enabled
Rundiz Cookie Notice: Version 0.2.9 by Vee Winch | Auto-updates enabled
Rundiz Media tools: Version 0.0.11 by Vee Winch | Auto-updates enabled
Rundiz WordPress Backupper: Version 1.4.6 by Vee Winch | Auto-updates enabled
Rundiz WordPress plugin server updater: Version 0.12 by Vee Winch | Auto-updates enabled
Rundiz YouTube Embedded: Version 2.0.24 by Vee Winch | Auto-updates enabled
domain.tld plugin: Version 0.0.1 by Vee Winch | Auto-updates disabled
WordPress Beta Tester: Version 4.0.0 by WordPress Upgrade/Install Team | Auto-updates enabled
WP-Optimize – Clean, Compress, Cache: Version 4.4.0 by TeamUpdraft, DavidAnderson | Auto-updates enabled Inactive PluginsAkismet Anti-spam: Spam Protection: Version 5.6 by Automattic – Anti-spam Team | Auto-updates enabled
Rundiz OAuth: Version 1.6.4 by Vee Winch | Auto-updates enabled
WP Fastest Cache: Version 1.4.4 by Emre Vona | Auto-updates enabled
WP Mail SMTP: Version 4.7.1 by WP Mail SMTP | Auto-updates enabled
Yoast SEO: Version 26.6 by Team Yoast | Auto-updates enabled Media HandlingActive editor: WP_Image_Editor_Imagick
ImageMagick version number: 1809
ImageMagick version string: ImageMagick 7.1.1-46 Q16 x64 8209e84:20250318 https://imagemagick.org
Imagick version: 3.8.1
File uploads: Enabled
Max size of post data allowed: 15M
Max size of an uploaded file: 10M
Max effective file size: 10 MB
Max simultaneous file uploads: 20
Imagick Resource Limits: {
“area”: “64 GB”,
“disk”: 9.223372036854776e+18,
“file”: 1536,
“map”: “32 GB”,
“memory”: “16 GB”,
“thread”: 1,
“time”: 0
}
ImageMagick supported file formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVCI, AVI, AVIF, AVS, BAYER, BAYERA, 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, DPS, DPX, DXT1, DXT5, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FFF, FILE, FITS, FL32, FLIF, FLV, FPX, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, 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, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MDC, MEF, MIFF, MKV, MNG, MONO, MOS, MOV, MP4, MPC, MPEG, MPG, MPO, 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, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, RWL, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, SRW, STEGANO, STI, STRIMG, 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
Image format transforms: image/heic → image/jpeg, image/heif → image/jpeg, image/heic-sequence → image/jpeg, image/heif-sequence → image/jpeg
GD version: bundled (2.1.0 compatible)
GD supported file formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
Ghostscript version: Not available ServerServer architecture: Windows NT 10.0 AMD64
Web server: Apache/2.4.46 (Win64) OpenSSL/1.1.1i mod_fcgid/2.3.10-dev
PHP version: 8.5.0 (Supports 64bit values)
PHP SAPI: cgi-fcgi
PHP max input variables: 1000
PHP time limit: 180
PHP memory limit: 64M
Max input time: 60
Upload max filesize: 10M
PHP post max size: 15M
cURL version: 8.12.1 OpenSSL/3.5.4
Is SUHOSIN installed?: No
Is the Imagick library available?: Yes
Are pretty permalinks supported?: Yes
.htaccess rules: Custom rules have been added to your .htaccess file.
robots.txt: Your site is using the dynamic robots.txt file which is generated by WordPress.
Current time: 2025-12-25T09:49:19+00:00
Current UTC time: Thursday, 25-Dec-25 09:49:19 UTC
Current Server time: 2025-12-25T16:49:17+07:00 DatabaseDatabase Extension: mysqli
Server version: 11.3.2-MariaDB
Client version: mysqlnd 8.5.0
Database username: user
Database host: localhost
Database name: ***
Table prefix: wp_
Database charset: utf8mb4
Database collation: utf8mb4_unicode_520_ci
Max allowed packet size: 16777216
Max connections number: 151 WordPress ConstantsABSPATH: D:**\public_html/
WP_HOME: Undefined
WP_SITEURL: Undefined
WP_CONTENT_DIR: D:**\public_html/wp-content
WP_PLUGIN_DIR: D:**\public_html/wp-content/plugins
WP_MEMORY_LIMIT: 64M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: Enabled
WP_DEBUG_DISPLAY: Enabled
WP_DEBUG_LOG: Enabled
SCRIPT_DEBUG: Disabled
WP_CACHE: Disabled
CONCATENATE_SCRIPTS: Undefined
COMPRESS_SCRIPTS: Undefined
COMPRESS_CSS: Undefined
WP_ENVIRONMENT_TYPE: development
WP_DEVELOPMENT_MODE: Disabled
DB_CHARSET: utf8mb4
DB_COLLATE: Empty value
EMPTY_TRASH_DAYS: 30 Filesystem PermissionsThe main WordPress directory: Writable
The wp-content directory: Writable
The uploads directory: Writable
The plugins directory: Writable
The themes directory: Writable
The fonts directory: WritableThanks for the report, @okvee.
I’ll set up a similar environment to investigate this issue.If necessary, I’ll also engage our development team to resolve this.
Expect to hear from us soon.Regards.
Hi @okvee!
Our development team have been duly informed of the deprecation notice relating to PHP v8.5, and necessary fixes will be made against one of our upcoming releases.Regards.
You must be logged in to reply to this topic.