Import_HTML module install Fatal Error Problem
Post installation · Drupal 5.x
mendobiz - June 27, 2007 - 19:44
Hi Everyone,
I have a problem with the Import_HTML module I installed.
I installed the module, but I obviously didn't find the right linux based binary file for HTMLtidy on which Import_HTML depends. So during the process I installed the wrong file and created a path to it via the Import HTML settings window. Later I realized it wasn't the right file, so I went and found the HTMLtidy module and installed that. Now, I go back to the Import HTML settings window, but I can't get anywhere due to a FATAL error.
So I go and delete the entire import_html directory and reinstall it. I then discover that I get the same error, so obviously that path setting has not been changed when I reinstalled the ImportHTML module.
Where do I go to reset the Import_Html path so I can correct the fatal error?
Or is there any other way to start over and correct this problem?
I thank you all in advance for any help you can provide!
-George
--------------------------------------------------------------------
please create this as an issue
dman - June 27, 2007 - 21:31
The current dev version allows you to unset that binary path in the settings, even if it was successfully detected earlier. It used to hide the option once it had been set.
Still should not be getting a 'Fatal' error however, unless your host security is too high.
Errors should be getting caught, as the test-run of that executable is being deliberately cautious.
... ah. OK, a fatal error would prevent you from actually seeing the form to unset it. :(
Yes, the setting was saved in the site variables array so it was still set to the old val after a re-install.
you can kill it from the db 'variables' table if you like
DELETE FROM variable WHERE name = 'htmltidy_apppath';
DELETE FROM cache;
Please open an issue in the project with more information about what the 'Fatal' error was, and include a phpinfo dump, and the relevant line from your Apache/PHP logfile and-or the Drupal event log entry.
.dan.
----------------------------------------------------------------------------------
I got that done, but when I try to go into the Import HTML settings window, I get this error:
Fatal error: Cannot redeclare htmltidy_test() (previously declared in /home/bradford/public_html/moonlight/modules/htmltidy/htmltidy.module:495) in /home/bradford/public_html/moonlight/modules/import_html/coders_php_library/install-htmltidy.inc on line 37
There seems to be no way to fix the problem because deleting the entire module and reinstalling it did not fix it either.
Does anyone have any ideas to fix this?
Thank you in advance,
-George
---------------------------------------------------------------------------------
Namespace Collision. My fault from over a year ago.
dman - June 29, 2007 - 20:19
I knew this would happen one day...
The htmltidy.module and an import_html library use the same function library. Or rather, different versions of the same library causing a namespace collision.
This almost never shows up as the func only gets loaded during testing, and it's (so far) been unlikely that anyone would have both modules installed and the binary broken for both at the same time.
The htmltidy_apppath is shared between them, so if you do have htmltidy (binary) installed, the other module will use that value, rather than asking again.
As I said before, module error reports like this should go in the issue queue. It's only luck that I noticed it here in the forum.
In the meantime, disable the htmltidy.module temporarily.
.dan.
Comments
Comment #1
dman commentedCleaning up issue queue by closing stuff from the Drupal-5 branch and over a year old.