This forum is no longer active. Please post your questions to our new community site

Forums Drupal

Found tidy binary, but it didn't run right

Subscribe to Found tidy binary, but it didn't run right 4 post(s), 2 voice(s)

 
Avatar annegentle 3 post(s)

I’m using a WAMP stack Drupal installation and it’s working well, but I’m trying to configure the Import_HTML contributed module which requires HTML Tidy. The http://drupalcode.org/viewvc/drupal/contributio… help file says “Find the appropriate
binary release of HTMLTidy for your system, and place it in your
PATH, in the modules install directory, or wherever you like, then define
the path to the executable in the
settings. This works fine under Windows too.”

I’ve done these steps and from a Windows CMD window I can run tidy -v from any directory and get:
HTML Tidy release date: 30th April 2000
See http://www.w3.org/People/Raggett for details

However, Drupal reports the following: HTMLTidy executable is not available. Found ‘tidy’ binary, but it didn’t run right. C:/Program Files/BitNami Drupal 6 Stack/apps/drupal/htdocs/sites/all/modules/import_html/coders_php_library/bin/tidy.exe -v failed to respond correctly

If I run the exact thing on the server, I get “‘C:/Program’ is not recognized as an internal or external command, operable program, or batch file.” I’m sure this error occurs due to the spaces in the path, but even when I placed the tidy.exe in C:\Tidy, and changed the path, I get the error: “HTMLTidy executable is not available. Couldn’t find tidy binary anywhere!”

I can also ask this question of the Import_HTML maintainers, but I thought I’d start here in case the Bitnami ninjas know how to translate spaces and paths on Windows.

Thanks,
Anne

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi Anne,

Found ‘tidy’ binary, but it didn’t run right. C:/Program Files/BitNami Drupal 6 Stack/apps/drupal/htdocs/sites/all/modules/import_html/coders_php_library/bin/tidy.exe -v failed to respond correctly

This error shows that drupal could find the tidy binary but it seems that there is an error. Could you try to run the following command in the command prompt?

> cd “C:\Program Files/BitNami Drupal 6 Stack/apps/drupal/htdocs/sites/all/modules/import_html/coders_php_library/bin”
> tidy.exe -v

 
Avatar annegentle 3 post(s)

Hi beltran –
Thanks for your response. Changing directories to the install location and using quotations around the path containing spaces does work from the command line.
Thanks,
Anne

 
Avatar annegentle 3 post(s)

One more update… even if I move the tidy.exe (that’s the tidy binary, right? Need to double-check all assumptions.) to C:\tidy\ and change the Import_HTML settings to point to /tidy (the default is /usr/local/bin/tidy) to remove spaces in the path, I get the same error.

I’ll also post this to the Import_HTML page today.

Thanks for the help.
Anne

Forums Drupal