BuddyBoss Home – Web Support Forums Themes Boss. theme Blank screen when logged out

Viewing 2 posts - 16 through 17 (of 17 total)
  • Question

    #42089

    Alyssa
    Participant
    @alyssa-buddyboss

    @klubhouse please send a link to this forums, your URL, and admin credentials to [email protected] and Varun will look into this further.

    Answers

    #42371
    @klubhouse

    Shall do, thank you. Also, should this be of use:
    From Pantheon support…

    I don’t know whether anyone is running the Boss theme, as we don’t have a record of all the enabled plugins and themes on the platform. I did perform a search in our helpdesk system to look for any other references to problems using this theme, and I couldn’t find any other users referencing this particular one. That isn’t to say the theme is guaranteed to work, but that we haven’t encountered this particular issue before in our records.

    The top two reasons why plugins and modules fail to work on the platform is the use of session_start, and code dependencies on cookies that may have been stripped by Varnish. This is why I have suggested looking for any cookies being set or read in that plugin. To fix this issue in the code, one would need to make sure the cookie names all started with the string “wordpress” or “wp” followed by alphanumeric characters, as we’ve got documented in the “approved list” for cookies that will be passed through Varnish:

    https://pantheon.io/docs/articles/sites/varnish/caching-advancedtopics/#pantheon’s-.vcl-file

    I’ve done a quick search for “cookie” in your site’s codebase, and have found reference to this bp-bboss-is-media-page cookie in the Boss plugin which doesn’t conform to the convention:

    bc.. /wp-content/plugins/buddyboss-media/assets/js/buddyboss-media.js

    if ( BBOSS_MEDIA.is_media_page ) {
    docCookies.setItem( “bp-bboss-is-media-page”, “yes”, “”, “/” );
    } else {
    docCookies.removeItem( “bp-bboss-is-media-page”, “/” );
    }

    p. Here is another reference to a switch_mode cookie being checked:

    /wp-content/themes/boss/buddyboss-inc/theme-functions.php:

    // Switch between mobile and desktop
    if(isset($_COOKIE[‘switch_mode’]) && (get_option( ‘boss_layout_switcher’ ) != ‘no’)){
    if($_COOKIE[‘switch_mode’] == ‘mobile’) {
    wp_enqueue_style( ‘boss-main-mobile’, get_template_directory_uri().’/css/main-mobile.css’, array( ‘fontawesome’), ‘1.1.6’, ‘all’ );
    $only_mobile = true;
    } else {
    wp_enqueue_style( ‘boss-main-desktop’, get_template_directory_uri().’/css/main-desktop.css’, array( ‘fontawesome’), ‘1.1.6’, ‘screen and (min-width: 481px)’ );
    wp_enqueue_style( ‘boss-main-mobile’, get_template_directory_uri().’/css/main-mobile.css’, array( ‘fontawesome’), ‘1.1.6’, ‘screen and (max-width: 480px)’ );
    }

    p. There may be other cookies in play. If all references to getting and setting these cookies were changed to conform with the naming convention, you may be able to get this plugin to work correctly, but again, we unfortunately can’t guarantee the operation of every plugin and theme on the platform.

Viewing 2 posts - 16 through 17 (of 17 total)
  • The question ‘Blank screen when logged out’ is closed to new replies.