Posted in php functions
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 />";


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
This Month
This Year

No Items Found.

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

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
“If you just sit and observe, you will see how restless your mind is. If you try to calm it, it only makes it worse, but over time it does calm, and when it does, there’s room to hear more subtle things. You see so much more than you could see before. It’s a discipline; you have to practice it.”
Steve Jobs
Random CSS Property


The border-block-start-width CSS property defines the width of the logical block-start border of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width, border-right-width, border-bottom-width, or border-left-width property depending on the values defined for writing-mode, direction, and text-orientation.
border-block-start-width css reference