Title: PHP deprecated $http_response_header
Last modified: December 23, 2025

---

# PHP deprecated $http_response_header

 *  Resolved [vee](https://wordpress.org/support/users/okvee/)
 * (@okvee)
 * [5 months ago](https://wordpress.org/support/topic/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 5 months ago by [vee](https://wordpress.org/support/users/okvee/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Damilare](https://wordpress.org/support/users/deabiodun/)
 * (@deabiodun)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/php-deprecated-http_response_header/#post-18766230)
 * Hi [@okvee](https://wordpress.org/support/users/okvee/)!
   What version of WPO 
   do you have installed?
 *  Thread Starter [vee](https://wordpress.org/support/users/okvee/)
 * (@okvee)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/php-deprecated-http_response_header/#post-18766231)
 * v 4.4.0
 *  Plugin Support [Damilare](https://wordpress.org/support/users/deabiodun/)
 * (@deabiodun)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/php-deprecated-http_response_header/#post-18766990)
 * 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.
 *  Thread Starter [vee](https://wordpress.org/support/users/okvee/)
 * (@okvee)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/php-deprecated-http_response_header/#post-18767101)
 * > WP-Optimize information
   > Report generation time: 2025-12-25 09:49:18 (Asia/Bangkok)
   > Cache size: 0 B (
   > 0 files)Minify size: Not availableLogs: – cache-82111a9a15676cb2eeb1.log: 6
   > KBWebP redirection rules: Redirection is disabledPlugin settings: {“epoch_date”:
   > 1766656159516,“local_date”: “12/25/2025, 4:49:19 PM”,“network_site_url”: “[https://domain.tld&#8221](https://domain.tld&#8221);,“
   > 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).
   >     ```wp-block-code
   >     RewriteEngine On
   >     ```
   > 
   > Redirect www to non-www
   >     ```wp-block-code
   >     RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
   >     RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
   >     ```
   > 
   > Redirect http:// to https://
   >     ```wp-block-code
   >     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.
   >     ```wp-block-code
   >     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”} WordPress
   > Version: 7.0-alpha-61406
   > Site language: en_USUser Language: en_USTimezone: 
   > Asia/BangkokHome URL: [https://domain.tld](https://domain.tld)Site URL: [https://domain.tld](https://domain.tld)
   > Permalink structure: /%year%/%monthnum%/%postname%/Is this site using HTTPS?:
   > YesIs this a multisite?: NoCan anyone register on this site?: NoIs this site
   > discouraging search engines?: NoDefault comment status: ClosedEnvironment type:
   > developmentUser count: 1Communication with WordPress.org: WordPress.org is 
   > reachable Directories and Sizes
   > WordPress directory location: D:***\***\public_html
   > WordPress directory size:
   > 58.63 MBUploads directory location: D:***\***\public_html/wp-content/uploadsUploads
   > directory size: 263.38 MBThemes directory location: D:***\***\public_html/wp-
   > content/themesThemes directory size: 9.06 MBPlugins directory location: D:***\***\
   > public_html/wp-content/pluginsPlugins directory size: 32.89 MBFonts directory
   > location: D:***\***\public_html/wp-content/uploads/fontsFonts directory size:
   > 495.20 KBDatabase size: 7.17 MBTotal installation size: 371.61 MB Drop-ins
   > db.php: Custom database class. Active Theme
   > Name: Twenty Twenty-Five (twentytwentyfive)
   > Version: 1.4Author: the WordPress
   > teamAuthor website: [https://wordpress.org](https://wordpress.org)Parent theme:
   > NoneTheme features: core-block-patterns, post-thumbnails, responsive-embeds,
   > editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates,
   > post-formats, editor-styleTheme directory location: D:***\***\public_html/wp-
   > content/themes/twentytwentyfiveAuto-updates: Enabled Parent Theme Inactive 
   > Themes
   > Twenty Eleven (twentyeleven): Version 5.0 by the WordPress team | Auto-updates
   > disabled
   > Twenty Fifteen (twentyfifteen): Version 4.1 by the WordPress team 
   > | Auto-updates disabledTwenty Fourteen (twentyfourteen): Version 4.4 by the
   > WordPress team | Auto-updates disabledTwenty Nineteen (twentynineteen): Version
   > 3.2 by the WordPress team | Auto-updates disabledTwenty Seventeen (twentyseventeen):
   > Version 4.0 by the WordPress team | Auto-updates disabledTwenty Sixteen (twentysixteen):
   > Version 3.7 by the WordPress team | Auto-updates disabledTwenty Ten (twentyten):
   > Version 4.5 by the WordPress team | Auto-updates disabledTwenty Thirteen (twentythirteen):
   > Version 4.5 by the WordPress team | Auto-updates disabledTwenty Twelve (twentytwelve):
   > Version 4.7 by the WordPress team | Auto-updates disabledTwenty Twenty (twentytwenty):
   > Version 3.0 by the WordPress team | Auto-updates disabledTwenty Twenty-Four(
   > twentytwentyfour): Version 1.4 by the WordPress team | Auto-updates disabledTwenty
   > Twenty-One (twentytwentyone): Version 2.7 by the WordPress team | Auto-updates
   > disabledTwenty Twenty-Three (twentytwentythree): Version 1.6 by the WordPress
   > team | Auto-updates disabledTwenty Twenty-Two (twentytwentytwo): Version 2.1
   > by the WordPress team | Auto-updates disabled Must Use Plugins Active Plugins
   > Debug Bar: Version 1.1.7 by wordpressdotorg | Auto-updates enabled
   > Debug Bar
   > Actions and Filters Addon: Version 1.5.5 by Subharanjan | Auto-updates enabledDisable
   > Theme and Plugin Auto-Update Emails: Version 2.0.5 by KZeni | Auto-updates 
   > enabledQuery Monitor: Version 3.20.2 by John Blackbourn | Auto-updates enabledRundiz.
   > com Network Links: Version 1.0.3 by Vee Winch | Auto-updates enabledRundiz 
   > Cookie Notice: Version 0.2.9 by Vee Winch | Auto-updates enabledRundiz Media
   > tools: Version 0.0.11 by Vee Winch | Auto-updates enabledRundiz WordPress Backupper:
   > Version 1.4.6 by Vee Winch | Auto-updates enabledRundiz WordPress plugin server
   > updater: Version 0.12 by Vee Winch | Auto-updates enabledRundiz YouTube Embedded:
   > Version 2.0.24 by Vee Winch | Auto-updates enableddomain.tld plugin: Version
   > 0.0.1 by Vee Winch | Auto-updates disabledWordPress Beta Tester: Version 4.0.0
   > by WordPress Upgrade/Install Team | Auto-updates enabledWP-Optimize – Clean,
   > Compress, Cache: Version 4.4.0 by TeamUpdraft, DavidAnderson | Auto-updates
   > enabled Inactive Plugins
   > Akismet 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
   > enabledWP Fastest Cache: Version 1.4.4 by Emre Vona | Auto-updates enabledWP
   > Mail SMTP: Version 4.7.1 by WP Mail SMTP | Auto-updates enabledYoast SEO: Version
   > 26.6 by Team Yoast | Auto-updates enabled Media Handling
   > Active editor: WP_Image_Editor_Imagick
   > ImageMagick version number: 1809ImageMagick
   > version string: ImageMagick 7.1.1-46 Q16 x64 8209e84:20250318 [https://imagemagick.org](https://imagemagick.org)
   > Imagick version: 3.8.1File uploads: EnabledMax size of post data allowed: 15MMax
   > size of an uploaded file: 10MMax effective file size: 10 MBMax simultaneous
   > file uploads: 20Imagick 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, YUVImage format transforms:
   > image/heic → image/jpeg, image/heif → image/jpeg, image/heic-sequence → image/
   > jpeg, image/heif-sequence → image/jpegGD version: bundled (2.1.0 compatible)
   > GD supported file formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPMGhostscript 
   > version: Not available Server
   > Server architecture: Windows NT 10.0 AMD64
   > Web server: Apache/2.4.46 (Win64)
   > OpenSSL/1.1.1i mod_fcgid/2.3.10-devPHP version: 8.5.0 (Supports 64bit values)
   > PHP SAPI: cgi-fcgiPHP max input variables: 1000PHP time limit: 180PHP memory
   > limit: 64MMax input time: 60Upload max filesize: 10MPHP post max size: 15McURL
   > version: 8.12.1 OpenSSL/3.5.4Is SUHOSIN installed?: NoIs the Imagick library
   > available?: YesAre 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:00Current UTC time: Thursday, 25-Dec-25 09:49:19 UTCCurrent
   > Server time: 2025-12-25T16:49:17+07:00 Database
   > Database Extension: mysqli
   > Server version: 11.3.2-MariaDBClient version: mysqlnd
   > 8.5.0Database username: userDatabase host: localhostDatabase name: ***Table
   > prefix: wp_Database charset: utf8mb4Database collation: utf8mb4_unicode_520_ciMax
   > allowed packet size: 16777216Max connections number: 151 WordPress Constants
   > ABSPATH: D:***\***\public_html/
   > WP_HOME: UndefinedWP_SITEURL: UndefinedWP_CONTENT_DIR:
   > D:***\***\public_html/wp-contentWP_PLUGIN_DIR: D:***\***\public_html/wp-content/
   > pluginsWP_MEMORY_LIMIT: 64MWP_MAX_MEMORY_LIMIT: 256MWP_DEBUG: EnabledWP_DEBUG_DISPLAY:
   > EnabledWP_DEBUG_LOG: EnabledSCRIPT_DEBUG: DisabledWP_CACHE: DisabledCONCATENATE_SCRIPTS:
   > UndefinedCOMPRESS_SCRIPTS: UndefinedCOMPRESS_CSS: UndefinedWP_ENVIRONMENT_TYPE:
   > developmentWP_DEVELOPMENT_MODE: DisabledDB_CHARSET: utf8mb4DB_COLLATE: Empty
   > valueEMPTY_TRASH_DAYS: 30 Filesystem Permissions
   > The main WordPress directory: Writable
   > The wp-content directory: WritableThe
   > uploads directory: WritableThe plugins directory: WritableThe themes directory:
   > WritableThe fonts directory: Writable
 *  Plugin Support [Damilare](https://wordpress.org/support/users/deabiodun/)
 * (@deabiodun)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/php-deprecated-http_response_header/#post-18767620)
 * Thanks for the report, [@okvee](https://wordpress.org/support/users/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.
 *  Plugin Support [Damilare](https://wordpress.org/support/users/deabiodun/)
 * (@deabiodun)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/php-deprecated-http_response_header/#post-18772388)
 * Hi [@okvee](https://wordpress.org/support/users/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.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-deprecated-http_response_header%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Damilare](https://wordpress.org/support/users/deabiodun/)
 * Last activity: [4 months, 3 weeks ago](https://wordpress.org/support/topic/php-deprecated-http_response_header/#post-18772388)
 * Status: resolved