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.
Thank you for the report!
The issue is fixed with version 1.2.1.
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:
Please find the solution here:
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
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.
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.
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 🙂
Bravo!!!A genuine breakthrough!!
It works Perfect!
Great support! Thanks a lot!!
- The topic ‘fatal error in gc-message-bar-admin-renderer.php’ is closed to new replies.