WordPress.org

Ready to get started?Download WordPress

Forums

GC Message Bar
[resolved] fatal error in gc-message-bar-admin-renderer.php (11 posts)

  1. draco678
    Member
    Posted 1 year ago #

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in C:\xampp\htdocs\wordpress\wp-content\plugins\gc-message-bar\src\class-gc-message-bar-admin-renderer.php on line 261

    wordpress multisite activated. Tried activating plugin via network admin, site admin and both after disabling all other plugins. The same error comes up.
    Thnx for suggestions.

  2. GetConversion
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for the report!
    The issue is fixed with version 1.2.1.

  3. draco678
    Member
    Posted 1 year ago #

    thanx. Have rated and reviewed your plugin. Good Luck.

  4. draco678
    Member
    Posted 1 year ago #

    After opening and collapsing the gc-message box using the arrow below, a custom .js file(that makes my menubar stick to the top) stops functioning at that point. For eg. if the menu has stuck to the top, it doesnt release. And on an unscrolled page, it doesnt stick to the top. Can you check it out? Here is the link to the code:
    http://pastebin.com/hNXjeuzs

    `

  5. GetConversion
    Member
    Plugin Author

    Posted 1 year ago #

    We are on it!

  6. GetConversion
    Member
    Plugin Author

    Posted 1 year ago #

  7. draco678
    Member
    Posted 1 year ago #

    Hi,
    Placing the script in the header.php in head section didnt work out. So, I tried this:
    1. Added the contents of script to stickyheadergcm.js
    2. Added this code
    http://pastebin.com/nDnppYKW
    to functions.php
    3. Added the css and body sections as you mentioned.

    Although there is no change in what I described before, there is a curious effect.
    If I let the default state of gcmbar to open, load the page and minimize the bar: the navigation bar gets stuck.
    If I then reload the page with the gcmbar in a closed position (no changes in default state) and then open the bar, the navigation bar is not affected. It shows expected sticky behaviour.
    Conclusion:
    It is just the collapsing of gcmbar and not the opening, that is causing this glitch.

    And one more thing: Default state closed, still loads the bar in an open position.

    I used mozilla for admin login and chrome/mozilla to test the front end.

  8. draco678
    Member
    Posted 1 year ago #

    I think something happens when the arrow jumps out (after collapsing the gcmbar) that disturbs the javascript (?) loaded for the sticky navigation bar. (Sorry, I am not a programmer, just a super user :))

  9. GetConversion
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for your report!
    Some modifications come with the version 1.2.2 that works together with the sticky script (released at GetConversion Forum).
    Custom sticky header together with GC Message Bar
    Please try again.
    Don't worry draco678 we are here to help :)

  10. draco678
    Member
    Posted 1 year ago #

    Bravo!!!A genuine breakthrough!!
    It works Perfect!
    Great support! Thanks a lot!!

  11. GetConversion
    Member
    Plugin Author

    Posted 1 year ago #

    You are welcome!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic