0
Welcome Guest! Login
0 items Join Now

SOLVED Rokbox and Rokgallery Conflict

    • Steven's Avatar
    • Steven
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    SOLVED Rokbox and Rokgallery Conflict

    Posted 4 years 11 months ago
    • Hi,

      I have a wordpress 5.1.1 site with rokbox and rokgallery installed. There is a conflict when both plugins are activated at the same time.

      Rokbox Version 2.52
      RokCommon Version 3.2.6
      RokGallery Version 2.45
      PHP Version 7.3.4

      In the error log I read the following:

      PHP Warning: session_start(): Cannot start session when headers already sent in /home/accessi2/wp-content/plugins/wp_rokcommon/RokCommon/Session.php on line 82

      PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/accessi2/wp-includes/class.wp-styles.php:95) in /home/accessi2/wp-content/plugins/wp_rokcommon/RokCommon/Session.php on line 82

      I have replicated the same behaviour on an empty fresh wordpress installation with no other plugins installed other than the 3 mentioned.

      Thank you,

      Steven.-
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21565
    • Thanks: 3091
    • messin' with stuff

    Re: SOLVED Rokbox and Rokgallery Conflict

    Posted 4 years 11 months ago
    • Are you able to test on PHP 7.2 and see if the error is still present?

      If you're using a Gantry 5 theme I'd recommend using the built in Lightcase Atom which works nearly identically to the way RokBox works; which then may resolve your conflict.

      PHP Warnings are generally not service affecting. Unless your actively troubleshooting something it's best practice to restrict your PHP error log to critical events only so that non-service affecting errors don't fill up the log.
    • Last Edit: 4 years 11 months ago by Matt.
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Steven's Avatar
    • Steven
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    Re: SOLVED Rokbox and Rokgallery Conflict

    Posted 4 years 11 months ago
    • Hi Matt,

      I have tried on an empty wordpress, using the default 2019 theme, running on PHP 7.2 only with rokcommom, rokgallery and rokbox installed. Same issue.

      When rokbox is enabled, the rokbox album executes fine, however the rokgallery on the same page fails to load with the same error.

      <a data-rokbox data-rokbox-album="Product" data-rokbox-caption="Product" href="http://localhost/wp/wp-content/uploads/album/test02.jpg" data-rokbox-generate-thumbnail></a>
      <a data-rokbox data-rokbox-album="Product" data-rokbox-caption="Product" href="http://localhost/wp/wp-content/uploads/album/test03.jpg" data-rokbox-generate-thumbnail></a>
      <a data-rokbox data-rokbox-album="Product" data-rokbox-caption="Product" href="http://localhost/wp/wp-content/uploads/album/test04.jpg" data-rokbox-generate-thumbnail></a>
      <a data-rokbox data-rokbox-album="Product" data-rokbox-caption="Product" href="http://localhost/wp/wp-content/uploads/album/test05.jpg" data-rokbox-generate-thumbnail></a>

      Gallery error:

      Warning: session_start(): Cannot start session when headers already sent in D:\WWW\wp\wp-content\plugins\wp_rokcommon\RokCommon\Session.php

      When the rokbox plugin is disabled the rokgallery works fine on its own.

      Thanks,

      Steven.-

Time to create page: 0.050 seconds