Weird! Can't eradicate Fatal error even after removal of snippet from database
-
Not sure what to do next about this issue…
On a test site, I toyed with some suggested code for invoking the add_editor_style function, found on this site:
https://wpjourno.com/style-wordpress-wysiwyg-visual-editor/My theme framework doesn’t have an editor style sheet, and as far as I could tell, even as of WP 3.5, if it doesn’t, you have to manually call up a custom stylesheet you create.
So…following the tutorial (which matches a number of others available), I:
Used the code snippet, replacing the generic css file name with the one I’d created and uploaded to what my double-checking told me was the appropriate file directory.The custom css file was created using the tutorial’s example guide. The syntax in my theme framework had some tricky differences, however. In other words, maybe the error caused had something to do with my test run having some flaws in the css…?
After I activated the snippet, I got this error:
Fatal error: Call to undefined function is_rtl() in /home/usr/public_html/testsite2/wp-includes/theme.php on line 1217
(put “usr” in place of actual name)
here is the test site link: https://grassrootsne.com/testsite2
No biggie…I’ve “broken” my test site several times learning about php and these snippets. It’s great that Code Snippets is designed to put the codes in the WP database…I just go to PHPMyAdmin and delete the offensive code if I break things…and poof, problem solved.
Not this time. Even after I deleted the new snippet…I was still getting the error, only it wasn’t site wide, it was after clicking on “Code Snippets” in the Dashboard sidebar, going into the Code Snippets UI, to manage, and then attempting to do anything with any of the snippets or to “Add New”.
So I tried the new posting about using the “Safe Mode” trick, went into Code Snippets, made sure each existing snippet was deactivated, took out the Safe Mode code from wp-config, and then went back and started with the first code in the list…one that had been activated before with no problem and bang!, back to the fatal error.
I thought perhaps something funky had happened to all of Code Snippets, so, I deactivated and uninstalled the plugin, went to the database and dropped the table from there with the idea of “starting over”, but…no dice.
After a fresh install of Code Snippets, I’m still having the same fatal error after getting into the Code Snippets UI. Obviously, the only current option is to “Add New”.
I’ve clicked around everywhere on the site, and I don’t get the problem anywhere else.
I’ve got Code Snippets installed on the production site for which the tester exists, and had installed the test snippet but never activated it and have since deleted it. The other codes, some activated, some not, were also put in the live site version.
Finally, note that I had 6 total snippets on the site with 3 activated, two inactive, and the sixth being the apparent offender.
Ideas? I’m stumped. Thanks
- The topic ‘Weird! Can't eradicate Fatal error even after removal of snippet from database’ is closed to new replies.