Title: [Plugin: Constant Contact for WordPress] Coding Mod request
Last modified: August 20, 2016

---

# [Plugin: Constant Contact for WordPress] Coding Mod request

 *  Resolved [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-constant-contact-for-wordpress-coding-mod-request/)
 * Hello,
    I have a very minor coding modification request. The BPS Pro plugin logs
   php errors and 2 php errors are being generated when someone is sent to the 403
   Forbidden template. This is due to a Session start and redirect issue with the
   403 template. Would you mind suppressing php errors for these 2 functions at 
   code lines 59-62 in config.php? Thanks.
 * // To store the object in a session.
    if(!session_id()) { session_start(); }
 * requested modification
 * // To store the object in a session.
    if(@!session_id()) { @session_start(); }
 * The php errors that are generated are:
 * [15-Dec-2011 15:57:21] PHP Warning: session_start() [[function.session-start](https://wordpress.org/support/topic/plugin-constant-contact-for-wordpress-coding-mod-request/function.session-start?output_format=md)]:
   Cannot send session cookie – headers already sent by (output started at /usr/
   www/users/xxxxx/xxxxx/wp-content/plugins/bulletproof-security/403.php:34) in /
   usr/www/users/xxxxx/xxxxx/wp-content/plugins/constant-contact-api/config.php 
   on line 61
 * [15-Dec-2011 15:57:21] PHP Warning: session_start() [[function.session-start](https://wordpress.org/support/topic/plugin-constant-contact-for-wordpress-coding-mod-request/function.session-start?output_format=md)]:
   Cannot send session cache limiter – headers already sent (output started at /
   usr/www/users/xxxxx/xxxxx/wp-content/plugins/bulletproof-security/403.php:34)
   in /usr/www/users/xxxxx/xxxxx/wp-content/plugins/constant-contact-api/config.
   php on line 61
 * [http://wordpress.org/extend/plugins/constant-contact-api/](http://wordpress.org/extend/plugins/constant-contact-api/)

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

 *  Thread Starter [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-constant-contact-for-wordpress-coding-mod-request/#post-2453591)
 * Please disregard this request as I have come up with a better solution on my 
   end. Thank you.
 *  [Alaskan](https://wordpress.org/support/users/alaskan/)
 * (@alaskan)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-constant-contact-for-wordpress-coding-mod-request/#post-2453594)
 * I’m getting these errors. Can you share your solution? I could hack my CC plugin,
   but I’d rather fix it from the source.
 * Thanks.
 *  Thread Starter [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-constant-contact-for-wordpress-coding-mod-request/#post-2453596)
 * In the specific case of BPS what i chose to do was to add this to the very top
   of the 403.php BlackHole template. So when a hacker is sent to the 403 template
   via .htaccess ErrorDocument /path-to-file/403.php then the 403.php template will
   no longer generate PHP Warning errors. This does not interfere with other plugins.
   If the user is a legit user and accidentally performed a 403 Forbidden action
   that sent them to the 403 template then when they correctly access the website’s
   pages, a form or plugin’s pages (frontend pages ONLY – this does not affect the
   backend) again a new session will be initialized correctly.
 * Note: session_cache_limiter must always come before session_start.
 * <?php session_cache_limiter(‘nocache’); ?>
    <?php session_start(); ?> <?php error_reporting(
   0); ?> <?php session_destroy(); ?>
 * I thought at first that this might be a fairly isolated issue, but discovered
   that this was a very common issue so it is better to handle this directly and
   permanently.

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

The topic ‘[Plugin: Constant Contact for WordPress] Coding Mod request’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/constant-contact-api_f6e5e6.svg)
 * [Constant Contact for WordPress](https://wordpress.org/plugins/constant-contact-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/constant-contact-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/constant-contact-api/)
 * [Active Topics](https://wordpress.org/support/plugin/constant-contact-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/constant-contact-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/constant-contact-api/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-constant-contact-for-wordpress-coding-mod-request/#post-2453596)
 * Status: resolved