Support » Plugin: RSS Importer » 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, 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)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error in PHP7’ is closed to new replies.