Posted in php functions
3830
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
47
This Month
300
This Year
696

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
Many of life's failures are people who did not realize how close they were to success when they gave up.
Thomas A. Edison
Random CSS Property

border-right-color

The border-right-color CSS property sets the color of an element's right border. It can also be set with the shorthand CSS properties border-color or border-right.
border-right-color css reference