Failed to open stream error when creating new post
-
WARNING: wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php:81 - file_get_contents(default/default.txt): failed to open stream: No such file or directory get_default_post_to_edit, wp_insert_post, apply_filters('wp_insert_post_data'), WP_Hook->apply_filters, CrayonWP::filter_post_data, CrayonTagEditorWP::init_settings, CrayonLangs->extensions_inverted, CrayonLangs->extensions, CrayonLangs->fetch, CrayonResourceCollection->load, CrayonLangs->load_process, CrayonResourceCollection->load_process, CrayonLangs->add_default, CrayonParser::parse, CrayonUtil::lines, CrayonUtil::file, file_get_contentsI switched my site to PHP 7.1 and have noticed that Crayon is one of the plugins that has problems. It’s ironic that my code highlighter has code issues, and I’d really rather be able to keep using the plugin than find something else.
In addition to the above, I get an endless stream of PHP notices in my php_errorlog file:
[21-Dec-2016 13:44:15 UTC] PHP Notice: A non well formed numeric value encountered in /home/rhymesw6/public_html/wpfangirl.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118I haven’t a clue what a non-well-formed numeric value is, but clearly PHP 7 is unhappy with it. (I didn’t check to see whether I got any of these notices in PHP 5.6, sorry.)
Any light you can shed on this problem would be helpful.
The topic ‘Failed to open stream error when creating new post’ is closed to new replies.