Title: PH warning
Last modified: March 19, 2020

---

# PH warning

 *  [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/ph-warning/)
 * Hello,
 * I’m getting this warning recently. maybe since last update:
 * > Warning: session_start(): Cannot start session when headers already sent in/…/
   > wp-content/plugins/visual-portfolio/classes/class-get-portfolio.php on line
   > 25
 * Any clues?

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

 *  [jasujs](https://wordpress.org/support/users/jasujs/)
 * (@jasujs)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/ph-warning/#post-12563232)
 * Just an idea, not sure if it will work.
 * You can add
 *     ```
       function vpf_session_start() {
           if ( ! is_admin() && ! session_id() ) {
               ob_start(); // this line
               session_start();
           }
       }
       ```
   
 * at line 25 of this file (through child theme)
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/ph-warning/#post-12569060)
 * Hey [@dsl225](https://wordpress.org/support/users/dsl225/).
 * This line added in the plugin a long time ago. Maybe it is conflicted with 3rd-
   party plugins? I can test it, but I need to know with which plugin it is conflicted.
 * Regards, nK.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/ph-warning/#post-12569497)
 * [@nko](https://wordpress.org/support/users/nko/) thanks, will try to identify
   the plugin by de-activating one by one and will let you know.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/ph-warning/#post-12569570)
 * [@nko](https://wordpress.org/support/users/nko/) I checked with plugins but can’t
   find any conflict at this point, sorry.
 * This site is a clone of another one which doesn’t get such warnings.
    I installed
   some new plugins at this one that gets the warning and de-activated all new ones,
   one by one, and still getting the warning.
 * In that case, might be related to the server as they are different hosts with
   different configs.

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

The topic ‘PH warning’ is closed to new replies.

 * ![](https://ps.w.org/visual-portfolio/assets/icon-256x256.png?rev=2389881)
 * [Visual Portfolio, Photo Gallery & Post Grid](https://wordpress.org/plugins/visual-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-portfolio/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [John](https://wordpress.org/support/users/dsl225/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/ph-warning/#post-12569570)
 * Status: not resolved