php: Fatal error: Class 'tidy' not found in ...

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

php: Fatal error: Class 'tidy' not found in ...

Post by ^rooker »

[PROBLEM]
When running a php script that accessed the "Tidy" class, I received the following error:
Fatal error: Class 'tidy' not found in ...
Weird though, because that error only appeared when running the script through the webserver (apache), but not when I ran the php script directly from the commandline.


[SOLUTION]
The Apache webserver had to be restarted in order to load the 'Tidy' extension. Only necessary once after a fresh install of the "php5-tidy" package. Then never again. :)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply