"Found 'tidy' binary, but it didn't run right."
kpm - November 20, 2007 - 22:03
| Project: | Import HTML |
| Version: | 5.x-1.2 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I am running on a WAMP server and installed PHP 5 with the tidy extension selected.
The extension=php_tidy.dll is enabled in php.ini and I have it turned 'on' in the [tidy] section. However, on WAMP, I am not sure whether I am required to create let alone point to a default.tcfg file, there isn't one on a search of the system so I assume not. Here is the Tidy section of the php.ini file:
[Tidy]
; The path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg
; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = OnThis was defaulted to 'Off', I turned it on, restarted the server, but no go. Still get the following error:
* HTMLTidy executable is not available. Found 'tidy' binary, but it didn't run right. C: PHP -v failed to respond correctly
* HTMLTidy executable is not available. Found 'tidy' binary, but it didn't run right. C:/PHP/ext -v failed to respond correctlyI have tried pointing the admin/import_html/settings to C:\PHP\ext, C:/PHP/ext, C:\PHP, C:/PHP, etc.
I also tried downloading the tidy.exe from tidy.sourceforge.net, placed it in C:\tidy\ and pointed the config files to it... but same error.
I have full rights to this server but am not sure how I allow tidy to access the exe it is looking for.
php info for the tidy section prints the following:
tidy
Tidy support enabled
libTidy Release 15 August 2007
Extension Version 2.0 ($Id: tidy.c,v 1.66.2.8.2.23 2007/05/04 17:11:05 nlopess Exp $)
Directive Local Value Master Value
tidy.clean_output no value no value
tidy.default_config no value no valueAny ideas?
Thanks

#1
This might be too late for kpm, but it might help someone else. I struggled with this same error. I downloaded tidy.exe to c:\Windows, and enabled the Tidy extension. However, it was not untile I put in "C:/Windows/tidy.exe" as the path to the binary. NOTE the direction of the slashes!
In case it matters, this is what my php.ini says:
extension=php_tidy.dll
[Tidy]
; The path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg
; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = Off