Title: error in file class.Session.php
Last modified: June 12, 2021

---

# error in file class.Session.php

 *  Resolved [JIMARKO](https://wordpress.org/support/users/jimarko/)
 * (@jimarko)
 * [5 years ago](https://wordpress.org/support/topic/error-in-file-class-session-php/)
 * After installing the new version 3.1.28
    content file PHP error_log.txt
 * Cannot modify header information – headers already sent in /plugins/download-
   manager/libs/class.Session.php on line 24
 * WP: 5.7.2
    PLUGIN WPDM: 3.1.28
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-file-class-session-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [5 years ago](https://wordpress.org/support/topic/error-in-file-class-session-php/#post-14548480)
 * Probably any other plugin there is generating unexpected output. May you please
   try deactivating other plugins one after another and check which plugin is generating
   the output. Also, you may let me know which other plugins and the theme you are
   using there. I shall try to regenerate the issue on my side.
 *  Thread Starter [JIMARKO](https://wordpress.org/support/users/jimarko/)
 * (@jimarko)
 * [5 years ago](https://wordpress.org/support/topic/error-in-file-class-session-php/#post-14549177)
 * I tried disabling these main plugins:
    Broken Link Checker GA Google Analytics
   Email Subscribers & Newsletters GDPR Cookie Consent
 * and the condition is still the same.
 * Total number of plugins: 26
 *  Thread Starter [JIMARKO](https://wordpress.org/support/users/jimarko/)
 * (@jimarko)
 * [5 years ago](https://wordpress.org/support/topic/error-in-file-class-session-php/#post-14549227)
 * I commented in the line for cookies in the file class.Session.php.
    Line: 24 (
   or 27) /** setcookie(‘__wpdm_client’, $deviceID);*/
 * and the error message no longer appears.
 *  Plugin Contributor [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/error-in-file-class-session-php/#post-14550189)
 * Yes, I know, but `setcookie` function is throwing an error due to another plugin
   or active theme generating an unexpected output. However, in the next update,
   we shall bypass the setcookie function when the header is already sent.
 * However, you still need the find which plugin generating unexpected output, as
   that may cause conflict with other plugin’s functionality.
 *  Thread Starter [JIMARKO](https://wordpress.org/support/users/jimarko/)
 * (@jimarko)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/error-in-file-class-session-php/#post-14550235)
 * I run other websites where also use this plugin. There are fewer plugins, so 
   I’ll try to find out.
 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/error-in-file-class-session-php/#post-14550291)
 * Hi [@jimarko](https://wordpress.org/support/users/jimarko/)
    If the problem resolved,
   you can tell which plugin might be the culprit of this error by activating your
   additional plugins one by one. Looking forward to hearing from you soon. Thank
   you

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

The topic ‘error in file class.Session.php’ is closed to new replies.

 * ![](https://ps.w.org/download-manager/assets/icon-256x256.png?rev=1561688)
 * [Download Manager](https://wordpress.org/plugins/download-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/download-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/download-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-manager/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * Last activity: [4 years, 12 months ago](https://wordpress.org/support/topic/error-in-file-class-session-php/#post-14550291)
 * Status: resolved