Evn:php 7.1
Fatal error: Uncaught Error: Call to undefined method RainbowHilite\Core\Core::build_assets() in H:\wwwroot\wordpress\wp-content\plugins\wp-rainbow-hilite\include\RainbowHilite\Core\Core.php:176 Stack trace: #0 H:\wwwroot\wordpress\wp-includes\class-wp-hook.php(286): RainbowHilite\Core\Core::activate(”) #1 H:\wwwroot\wordpress\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 H:\wwwroot\wordpress\wp-includes\plugin.php(466): WP_Hook->do_action(Array) #3 H:\wwwroot\wordpress\wp-admin\plugins.php(177): do_action(‘activate_wp-rai…’) #4 {main} thrown in H:\wwwroot\wordpress\wp-content\plugins\wp-rainbow-hilite\include\RainbowHilite\Core\Core.php on line 176
]]>Gutenberg has trouble with the PHP metaboxes when the browser is in Quirks mode. See this thread here: https://github.com/WordPress/gutenberg/issues/11378
My site was having that problem because WP Rainbox Hilite was forcing my browser into Quirks Mode because of some scripts being loaded BEFORE the <DOCTYPE>
declaration. I didn’t dig through the code, but here are the scripts that were being output while the plugin was active:
<script src="/cdn-cgi/apps/head/IRmukQd9xuplTY_UDzfOP0iBU2s.js"></script><script type="text/javascript"> var mce_wprainbow = {"l10n":{"code_language":"Code Language","line_numbers":"Line Numbers","code_properties":"Code Properties","starting_line":"Starting Line"},"languages":[{"text":"- None -","value":""},{"text":"Generic","value":"generic"},{"text":"CSS","value":"css"},{"text":"HTML","value":"html"},{"text":"JavaScript","value":"javascript"},{"text":"PHP","value":"php"}]};</script>
I’d love to keep using this plugin but it makes writing in Gutenberg difficult to impossible currently. Thanks!
]]>It looks like the wprainbow initialization script is being called throughout the backend, but the js is only enqueued on the “Settings > Writing” page. So in all other pages there’s a JS error which makes WYSIWYG boxes (like in EDD Emails settings) to break.
Hope a quick fix can be done, it’s an excellent plugin!
]]>Hello,
i have a problem with the R code, i want to put this instruction:
x <- x[c(1,5)]
and the result is like that on two lines:
x
[c language="(1,5)"][/c]
have you any explenation??
Regards
Alex
]]>Bootstrap has some custom styles associated with the .close
class that interfere with this plugin. In my case I just deleted them from bootstrap, but I’m sure that’s not always an option for users. Really slick implementation, really love the editor selector with the pre tag. Well done!