Title: Fatal Error in PHP7
Last modified: January 9, 2017

---

# Fatal Error in PHP7

 *  [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * (@mrwweb)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-in-php7/)
 * Here’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](http://stackoverflow.com/a/8255084/597678),
   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 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Josh Habdas](https://wordpress.org/support/users/jhabdas/)
 * (@jhabdas)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-in-php7/#post-9238349)
 * David Lynch [wrote about]([http://davidlynch.org/blog/2016/01/migrating-from-jekyll-to-wordpress/](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/](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.
 *  [Josh Habdas](https://wordpress.org/support/users/jhabdas/)
 * (@jhabdas)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-in-php7/#post-9238868)
 * I’m not able to edit the above, so let’s try those links again with titles this
   time:
    - [Migrating from Jekyll to WordPress](http://davidlynch.org/blog/2016/01/migrating-from-jekyll-to-wordpress/)
    - [Regular Expressions: Now You Have Two Problems](https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/)
 *  [Josh Habdas](https://wordpress.org/support/users/jhabdas/)
 * (@jhabdas)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-in-php7/#post-9269032)
 * And here’s a link to a [drop-in replacement](https://github.com/kemayo/wp-rss-importer)
   for `rss-importer` while the [Trac ticket](https://plugins.trac.wordpress.org/ticket/2626)
   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. 🙏
 *  [seyfer](https://wordpress.org/support/users/seyfer/)
 * (@seyfer)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-php7/#post-9673222)
 * php 7 compatibility problem found with
    [https://wordpress.org/plugins/php-compatibility-checker/](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. ———————————————————————————————————–

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal Error in PHP7’ is closed to new replies.

 * ![](https://ps.w.org/rss-importer/assets/icon.svg?rev=2828571)
 * [RSS Importer](https://wordpress.org/plugins/rss-importer/)
 * [Support Threads](https://wordpress.org/support/plugin/rss-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/rss-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rss-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rss-importer/reviews/)

## Tags

 * [jekyll](https://wordpress.org/support/topic-tag/jekyll/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 4 replies
 * 3 participants
 * Last reply from: [seyfer](https://wordpress.org/support/users/seyfer/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-in-php7/#post-9673222)
 * Status: not resolved