Conversation
supportHereβs the error: Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /path/to/site/wp-content/plugins/rss-importer/rss-importer.php:71 Stack trace: #0 /path/to/site/wp-content/plugins/rss-importer/rss-importer.php(177): RSS_Import->get_posts() #1 /path/to/site/wp-content/plugins/rss-importer/rss-importer.php(203): RSS_Import->import() #2 /path/to/site/wp-admin/admin.php(308): RSS_Import->dispatch() #3 {main} thrown in /path/to/site/wp-content/plugins/rss-importer/rss-importer.php on line 71 Based on this StackOverflow thread , I updated that line to the following snippet and the plugin ran ok: if (version_compare(PHP_VERSION, '5.3.0', '<')) { set_magic_quotes_runtime(0); } With that change, the plugin did appear to work π
David Lynch [wrote about]( http://davidlynch.org/blog/2016/01/migrating-from-jekyll-to-wordpress/ ) this issue early 2016 and why simply disabling the magic quotes didnβt work for him. David also mentions how this plugin uses Regular Expressions, which calls to mind [a post]( https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/ ) from Jeff Atwood on how Regular Expressions can lead to problems. Note Davidβs plugin is not published from what I can tell. But that doesnβt mean you canβt install it yourself.
Iβm not able to edit the above, so letβs try those links again with titles this time: Migrating from Jekyll to WordPress Regular Expressions: Now You Have Two Problems
And hereβs a link to a drop-in replacement for rss-importer while the Trac ticket is addressed to add PHP7 support. Iβve tested the code on my own sites with success and left improved installation instructions in the Issues section of authorβs repo on GitHub. Suksma. π
php 7 compatibility problem found with https://wordpress.org/plugins/php-compatibility-checker/ FILE: /home/seyfer/www/MineProjects/seyferseed.ru/wp-content/plugins/rss-importer/rss-importer.php ββββββββββββββββββββββββββββββββββββ FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ββββββββββββββββββββββββββββββββββββ 71 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0 212 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. ββββββββββββββββββββββββββββββββββββ
David Lynch [wrote about]( http://davidlynch.org/blog/2016/01/migrating-from-jekyll-to-wordpress/ ) this issue early 2016 and why simply disabling the magic quotes didnβt work for him. David also mentions how this plugin uses Regular Expressions, which calls to mind [a post]( https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/ ) from Jeff Atwood on how Regular Expressions can lead to problems. Note Davidβs plugin is not published from what I can tell. But that doesnβt mean you canβt install it yourself.
Iβm not able to edit the above, so letβs try those links again with titles this time: Migrating from Jekyll to WordPress Regular Expressions: Now You Have Two Problems
And hereβs a link to a drop-in replacement for rss-importer while the Trac ticket is addressed to add PHP7 support. Iβve tested the code on my own sites with success and left improved installation instructions in the Issues section of authorβs repo on GitHub. Suksma. π
php 7 compatibility problem found with https://wordpress.org/plugins/php-compatibility-checker/ FILE: /home/seyfer/www/MineProjects/seyferseed.ru/wp-content/plugins/rss-importer/rss-importer.php ββββββββββββββββββββββββββββββββββββ FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ββββββββββββββββββββββββββββββββββββ 71 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0 212 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7. ββββββββββββββββββββββββββββββββββββ