Page 1 of 1

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

Posted: Wed Jul 21, 2010 3:58 pm
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. :)