Posted in php functions
3786
4:01 am, September 29, 2022
 

simplepie error : XML or PCRE extensions not loaded!

using simplepie it does not load the target feed, and does not display any errors. Just nothing. 

if your feed is init'd with $feed check for feed errors with: 

      $feed = new SimplePie();

$out .= "feed errors: " . $feed->error . "<br />";

or 

echo $feed->error

then to fix the error: XML or PCRE extensions not loaded!

you will need to install xml for php on your server

check version of php and install xml for that version

fastcgi_pass unix:/run/php/php7.4-fpm.sock;

for my server it was 

sudo apt install php7.4-xml

Ah well there goes that hour... but now its fixed for next time hopefully this may save you the same weird error when using simplepie. 

💖

View Statistics
This Week
41
This Month
256
This Year
652

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote


Me
Random CSS Property

@viewport

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
min-zoom (@viewport) css reference