Posted in php functions
3789
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
44
This Month
259
This Year
655

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

:visited

The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.
:visited css reference