WPIntell

Source evidence

Fatal Error in PHP7

RSS Importer Β· support Β· 2017-01-09T21:46:00+00:00

complaintsentiment
highseverity
1.0relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 32 rows with source links

9.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
mrwweb unresolved
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 πŸ™‚ 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. ———————————————————————————————————–

Comments

4 shown
Josh Habdas 2017-06-18T08:26:00+00:00

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.

Josh Habdas 2017-06-18T13:45:00+00:00

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

Josh Habdas 2017-06-28T10:18:00+00:00

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. πŸ™

seyfer 2017-11-11T15:04:00+00:00

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. ———————————————————————————————————–