Posted in php functions
3686
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
75
This Month
390
This Year
552

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
For a long time it had seemed to me that life was about to begin - real life. But there was always some obstacle in the way, something to be gotten through first, some unfinished business, time still to be served, or a debt to be paid. Then life would begin. At last it dawned on me that these obstacles were my life.
Alfred D. Souza
Random CSS Property

inset-inline-start

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