Cannot change save handler when headers already sent
-
Hi,
I use igbinary as session serialiser but the standard “files” as save handler.
And I’m repeatedly getting the above warning, here in full:
[16-May-2021 01:18:04] WARNING: [pool gesandtschaft.com] child 9021 said into stderr: "NOTICE: PHP message: PHP Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /var/www/vhosts/gesandtschaft.com/httpdocs/wp-content/plugins/awesome-support/vendor/ericmann/sessionz/php/Manager.php on line 133"
I looked at the code there, below a function comment stating “Invoking this function multiple times will reset the manager itself and purge any handlers already registered with the system”:
$manager->seedHandlerStack(); session_set_save_handler($manager);
Would be very grateful if you could clean this up soon. Thanks!
Tim
-
Hi @tim-reeves,
Yes, we plan to launch an update with a fix to this issue. You can check the code fix from the pull request we made on the session manager library:
– https://github.com/ericmann/wp-session-manager/pull/84/files
Regards.
Hi,
We launched an update to fix this so I will mark this as solved.
Any questions you have, let me kwnow.
Regards.
Hi Support,
sorry to say, that I’m still seeing this warning with 6.0.5:
[15-Jun-2021 00:49:31] WARNING: [pool gesandtschaft.com] child 21340 said into stderr: “PHP message: PHP Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /var/www/vhosts/gesandtschaft.com/httpdocs/wp-content/plugins/awesome-support/vendor/ericmann/sessionz/php/Manager.php on line 133”
Could you have another look at it please?
Thanks, Tim
I’m still seeing this: Cannot change save handler when headers already sent in /var/www/vhosts/gesandtschaft.com/httpdoc
s/wp-content/plugins/awesome-support/vendor/ericmann/sessionz/php/Manager.php on line 133″The base version of Awesome Support is still 6.0.5 (Auto-Updates active).
Would really appreciate this being resolved, my client wants to take his new website online soon.
Best,
Tim
Hi Support,
the days tick by… and I’m still seeing this, since the Version of Awesome Support is still 6.0.5. Maybe you have fixed it in your code – a release would be appreciated!
Tim Reeves
Hi @tim-reeves,
What is the PHP and WordPress versions you are using? This will help to the replication of the issue.
Best Regards.
Hi again,
Could you check if the plugin on your side has this change implemented? We sent a pull request that should have fixed this. I will investigate deeper.
Thanks.
Hi @tim-reeves,
Please backup your site and test this version, let me know if this fixes the issue:
– https://filemeto.com/#!/d?s=ufyrdX
Best Regards.
Hi @yeisonbp,
sorry it took me some time – very busy…
But now I have installed the new version and YES, the problem looks to be solved.
I noticed that the current version is 5 months old – when can we expect the next release?
Thanks,
Tim
Hi @tim-reeves,
No problem. Thanks for letting me know the issue is fixed. We are in a test round prior to the next release. It is planned to be released in up to a few weeks.
Marking as solved, but you can reply or create a new topic anytime.
I’m sorry to say that I’ve just noticed the error still happening:
[11-Nov-2021 11:46:57] WARNING: [pool gesandtschaft.com] child 9310 said into stderr: “PHP message: PHP Warning: sessio
n_set_save_handler(): Cannot change save handler when headers already sent in /var/www/vhosts/gesandtschaft.com/httpdocs
/wp-content/plugins/awesome-support/vendor/ericmann/sessionz/php/Manager.php on line 133”This is with version 6.0.6. The website in question is still being (sporadically) worked on, is in coming soon mode. This may explain that I don’t see the problem so much.
Here the WP-Report:
### wp-core ### version: 5.8.2 site_language: de_DE user_language: de_DE timezone: Europe/Berlin permalink: /%postname%/ https_status: true multisite: false user_registration: 1 blog_public: 1 default_comment_status: open environment_type: production user_count: 9 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /var/www/vhosts/gesandtschaft.com/httpdocs wordpress_size: loading... uploads_path: /var/www/vhosts/gesandtschaft.com/httpdocs/wp-content/uploads uploads_size: loading... themes_path: /var/www/vhosts/gesandtschaft.com/httpdocs/wp-content/themes themes_size: loading... plugins_path: /var/www/vhosts/gesandtschaft.com/httpdocs/wp-content/plugins plugins_size: loading... database_size: loading... total_size: loading... ### wp-active-theme ### name: Thrive Theme Builder (thrive-theme) version: 3.2.1 author: Thrive Themes author_website: (undefined) parent_theme: none theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, automatic-feed-links, title-tag, menus, html5, customize-selective-refresh-widgets, post-formats, tve-wc-mini-cart, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, widgets theme_path: /var/www/vhosts/gesandtschaft.com/httpdocs/wp-content/themes/thrive-theme auto_update: Aktiviert ### wp-themes-inactive (1) ### Twenty Twenty-One: version: 1.4, author: WordPress-Team, Automatische Aktualisierungen aktiviert ### wp-mu-plugins (1) ### aaa-wp-cerber.php: version: 1.0, author: Cerber Tech Inc. ### wp-plugins-active (40) ### Awesome Support: version: 6.0.6, author: Awesome Support Team, Automatische Aktualisierungen aktiviert Awesome Support: Canned Responses: version: 3.0.1, author: The Awesome Support Team, Automatische Aktualisierungen aktiviert Awesome Support: Private Credentials: version: 2.0.0, author: Awesome Support, Automatische Aktualisierungen aktiviert Awesome Support: Private Notes: version: 3.1.1, author: The Awesome Support Team (latest version: 3.2), Automatische Aktualisierungen deaktiviert Email Encoder - Protect Email Addresses: version: 2.1.2, author: Ironikus, Automatische Aktualisierungen aktiviert Event Tickets: version: 5.2.0.1, author: The Events Calendar, Automatische Aktualisierungen aktiviert Event Tickets Plus: version: 5.3.0, author: The Events Calendar, Automatische Aktualisierungen aktiviert Germanized for WooCommerce: version: 3.6.3, author: vendidero, Automatische Aktualisierungen aktiviert Gravity Forms: version: 2.5.14, author: Gravity Forms, Automatische Aktualisierungen aktiviert Imsanity: version: 2.7.2, author: Exactly WWW, Automatische Aktualisierungen aktiviert Jetpack CRM: version: 4.5.0, author: Automattic, Automatische Aktualisierungen aktiviert Jetpack CRM Extension: Awesome Support Connector: version: 2.6.1, author: Jetpack, Automatische Aktualisierungen aktiviert Jetpack CRM Extension: CSV Importer PRO: version: 2.1.1, author: Jetpack, Automatische Aktualisierungen aktiviert Jetpack CRM Extension: Funnels: version: 1.3.1, author: Jetpack, Automatische Aktualisierungen aktiviert Jetpack CRM Extension: Gravity Forms: version: 2.8, author: Jetpack, Automatische Aktualisierungen aktiviert Jetpack CRM Extension: System Emails Pro: version: 1.3.1, author: Jetpack, Automatische Aktualisierungen aktiviert Jetpack CRM Extension: Woo Sync: version: 2.12, author: Jetpack, Automatische Aktualisierungen aktiviert Manage Notification E-mails: version: 1.8.0, author: Virgial Berveling, Automatische Aktualisierungen aktiviert Robin image optimizer: version: 1.5.6, author: Creative Motion <info@cm-wp.com>, Automatische Aktualisierungen aktiviert SEOPress: version: 5.2.0, author: SEOPress, Automatische Aktualisierungen aktiviert SEOPress PRO: version: 5.2.0, author: SEOPress, Automatische Aktualisierungen aktiviert SUMO Subscriptions: version: 12.6, author: Fantastic Plugins, Automatische Aktualisierungen aktiviert The Events Calendar: version: 5.10.1, author: The Events Calendar, Automatische Aktualisierungen aktiviert The Events Calendar: Virtual Events: version: 1.7.1, author: The Events Calendar, Automatische Aktualisierungen aktiviert The Events Calendar PRO: version: 5.9.2.1, author: The Events Calendar, Automatische Aktualisierungen aktiviert Thrive Apprentice: version: 3.2.1, author: <a href="https://thrivethemes.com">Thrive Themes</a>, Automatische Aktualisierungen aktiviert Thrive Architect: version: 3.4, author: <a href="http://www.thrivethemes.com">Thrive Themes</a>, Automatische Aktualisierungen aktiviert Thrive Automator: version: 0.5, author: <a href="https://thrivethemes.com">Thrive Themes</a>, Automatische Aktualisierungen aktiviert Thrive Comments: version: 2.2, author: <a href="https://thrivethemes.com">Thrive Themes</a>, Automatische Aktualisierungen aktiviert Thrive Leads: version: 3.2, author: <a href="https://thrivethemes.com">Thrive Themes</a>, Automatische Aktualisierungen aktiviert Thrive Ovation: version: 3.2, author: <a href="https://thrivethemes.com">Thrive Themes</a>, Automatische Aktualisierungen aktiviert Thrive Product Manager: version: 1.2.7, author: Thrive Themes, Automatische Aktualisierungen aktiviert Thrive Quiz Builder: version: 3.2, author: <a href="https://thrivethemes.com">Thrive Themes</a>, Automatische Aktualisierungen aktiviert Thrive Ultimatum: version: 3.2.1, author: <a href="https://thrivethemes.com">Thrive Themes</a>, Automatische Aktualisierungen aktiviert Webcraftic Clearfy – WordPress optimization plugin: version: 1.9.6, author: Creative Motion <info@cm-wp.com>, Automatische Aktualisierungen aktiviert WooCommerce: version: 5.9.0, author: Automattic, Automatische Aktualisierungen aktiviert WooCommerce Memberships: version: 1.22.0, author: SkyVerge, Automatische Aktualisierungen aktiviert WooCommerce Multi Currency Premium: version: 2.1.11, author: VillaTheme (latest version: 2.1.22), Automatische Aktualisierungen aktiviert WooCommerce Shipping & Tax: version: 1.25.19, author: WooCommerce, Automatische Aktualisierungen aktiviert WP Cerber Security, Anti-spam & Malware Scan: version: 8.9.3, author: Cerber Tech Inc., Automatische Aktualisierungen aktiviert ### wp-plugins-inactive (4) ### Optimize Database after Deleting Revisions: version: 5.0.110, author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands, Automatische Aktualisierungen aktiviert SUMO Payment Plans: version: 8.4, author: Fantastic Plugins, Automatische Aktualisierungen aktiviert W3 Total Cache: version: 2.1.9, author: BoldGrid, Automatische Aktualisierungen aktiviert WooCommerce Subscriptions: version: 3.1.1, author: WooCommerce, Automatische Aktualisierungen aktiviert ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1690 imagemagick_version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org imagick_version: 3.5.1 file_uploads: File uploads is turned off post_max_size: 513M upload_max_filesize: 513M max_effective_size: 513 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 122 MB imagick::RESOURCETYPE_DISK: 1073741824 imagick::RESOURCETYPE_FILE: 6144 imagick::RESOURCETYPE_MAP: 512 MB imagick::RESOURCETYPE_MEMORY: 256 MB imagick::RESOURCETYPE_THREAD: 1 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, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, 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, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV gd_version: bundled (2.1.0 compatible) gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: 9.27 ### wp-server ### server_architecture: Linux 4.19.0-9-amd64 x86_64 httpd_software: nginx/1.20.1 php_version: 7.3.32 64bit php_sapi: fpm-fcgi max_input_variables: 4000 time_limit: 30 memory_limit: 512M max_input_time: 60 upload_max_filesize: 513M php_post_max_size: 513M curl_version: 7.64.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: false ### wp-database ### extension: mysqli server_version: 10.3.31-MariaDB-0+deb10u1-log client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /var/www/vhosts/gesandtschaft.com/httpdocs/wp-content WP_PLUGIN_DIR: /var/www/vhosts/gesandtschaft.com/httpdocs/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 512M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable
Hi @tim-reeves,
Thanks for the details. I sent this to the development area and let you know any news as soon as I have it.
- The topic ‘Cannot change save handler when headers already sent’ is closed to new replies.