How do you get import to recognise php_tidy installed already?

lejon - January 31, 2008 - 17:17
Project:Import HTML
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

Hi,

I've had problems with finding tidy before on a shared hosting set-up.

Now I'm running a dev site on Windows XP using WAMP.

I'm using php 5.2.5 and the php_tidy extension is installed.

When I go to the Import HTML Settings it says:

HTMLtidy is not available!

I tried doing something you suggested before:

t could be the way I test if the extension is right to work in the way expected.
Try removing the extra test from tidy-functions.inc
From

<?php
// Tidy
 
if ( extension_loaded('tidy' ) && function_exists('tidy') ) {
   
debug('Using tidy Extension', 3);
?>

To

<?php
// Tidy
 
if ( extension_loaded('tidy' ) ) {
   
debug('Using tidy Extension', 3);
?>

but that doesn't seem to work.

Any suggestions?

Thanks in advance.

#1

lejon - February 6, 2008 - 12:46
Priority:normal» critical

Hi. This is the message I get when I try to go to the Import HTML settings page:

Fatal error: Cannot redeclare htmltidy_test() (previously declared in E:\wamp\www\drupal\sites\all\modules\htmltidy\htmltidy.module:495) in E:\wamp\www\drupal\sites\all\modules\import_html\coders_php_library\install-htmltidy.inc on line 97

HTML tidy module is working through php extension.

#2

lejon - February 6, 2008 - 12:51
Version:5.x-1.2» 5.x-1.x-dev

I tried the dev version and got this:

Fatal error: Cannot redeclare htmltidy_test() (previously declared in E:\wamp\www\drupal\sites\all\modules\htmltidy\htmltidy.module:495) in E:\wamp\www\drupal\sites\all\modules\import_html\coders_php_library\install-htmltidy.inc on line 103

#3

samdeskin - May 23, 2008 - 18:36

HI,

I have the same problem. I am running on a shared server with GoDaddy. I just did a clean install of Drupal 5.7 so that I could use the Import_HTML module.

It took me a long time to find the HTML tidy executable, but I finally found it here:

http://linux.softpedia.com/get/Internet/HTTP-WWW-/HTML-Tidy-806.shtml

I will attach the file here for any one else's benefit. If I happen to have the wrong file, please let me know! The module seems to have accepted this one:

HTMLTidy is present and correct:
HTML Tidy for Linux/x86 released on 1 September 2005

HTMLtidy seems to have been removed from the web everywhere else. I could not find it for the life of me at:

http://tidy.sourceforge.net/

I am still unable to find the file: htmltidy.conf but Import_HTML should work without it though, I think.

XSL is enabled:

XSL enabled
libxslt Version 1.1.12
libxslt compiled against libxml Version 2.6.15
EXSLT enabled
libexslt Version 1.1.12

----

Okay... so my problem is that when I go to:

admin/import_html/settings

I get this error:

Fatal error: Cannot redeclare htmltidy_test() (previously declared in /home/content/s/a/m/***/html/****/sites/all/modules/htmltidy/htmltidy.module:495) in /home/content/s/a/m/***/html/***/sites/all/modules/import_html/coders_php_library/install-htmltidy.inc on line 97

So I disabled the HTMLtidy module and the admin/import_html/settings seems to be working now.

and I get a little further ... then I get stuck here....

http://drupal.org/node/257436

CAN ANYONE HELP .... PLEASE???

#4

dman - May 24, 2008 - 02:20

I've encountered at least three flavours of the HTMLTidy PHP extension.

Some are invoked different from others. That's why I don't just test for the extension, but for the function as wel.

This implies that there is a version that DOES announce the extension but DOESN'T work the same way. The check is just "to be sure, to be sure"
About now I say I can't develop or test for that unknown one, as I don't have it, or a test site set up for it.

About NOW, I say just use the commandline version, it's much more consistant throughout the years.

 
 

Drupal is a registered trademark of Dries Buytaert.