Forums Forums Search & Filter Pro Admin bar not working on custom role, only on results.php using Beaver Themer

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #180753

    Hello!
    I am experiencing a strange problem.
    We are using S&F Pro for displaying a CPT. The CPT is using custom roles that I’ve added using Pods and it is making use of a custom capability.
    The active page is displayed using a Beaver Themer layout, as we need different Search and filter objects depending on the current user role.

    When logging in as our custom admin, the admin bar is not showing and we also get a fatal error cannot redeclare function. This ONLY happens with the custom role, not on the administrator or our other custom roles. I am not sure what to do, but as the admin bar works when S & F Pro is deactivated I am reaching out to you first.

    Regards,

    Anonymous
    #180754
    This reply has been marked as private.
    Trevor
    #180758
    This reply has been marked as private.
    Anonymous
    #180779
    This reply has been marked as private.
    Trevor
    #180805

    In the results.php template file, what happens if you comment out or remove lines 162 to 165:

    function shorten_image_title( $title, $settings ){
    
    	return substr( $title, 0, (int)$settings['archive_title_length'] );
    }

    OR, change the function name (also twice in the code above), to sf_shorten_image_title?

    If this function is used also by your theme, that may be the conflict.

    Anonymous
    #180811
    This reply has been marked as private.
    Anonymous
    #180813

    If I remove the function it seems to be working though, but I still don’t understand why it is only crashing on this MDB admin-user.

    Anonymous
    #180819

    Ah visit the site again, do you see that it is loaded twice? 🙂
    Must be Beaver Themer then I guess?

    Trevor
    #180823
    This reply has been marked as private.
    Anonymous
    #180825
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 12 total)