fread(): Length parameter must be greater than 0. in /home/demolici/public_html/modules/htmltidy/htmltidy.module on line 179.

I get this error with the latest CVS version of the module. This was happening with the previous versions (using Drupal CVS), and I suspect it's related to the goto() problem? It happens whenever I submit a form. Perhaps it's attempting to read/write to the blank redirect page or something.

The error doesn't appear to be critical, though, because the redirects are working despite this.

Comments

TheLibrarian’s picture

Assigned: Unassigned » TheLibrarian

Please check to ensure that tidy is actually running... The error is actually related to the warnings file that tidy outputs. More specifically, it is caused by the file not existing. I think the only way this can happen is if tidy is not found, although it's possible that the file is not emitted if there are no warnings or errors. Regardless of which cause is guilty, I will fix the code in cvs.

TheLibrarian’s picture

I believe the module is fixed in cvs. Please verify this and close the issue.

ixis.dylan’s picture

Yes, Tidy is running just fine. I could see the debug warnings at the bottom of the page, and the source was parsed and tidied.

I've just upgraded to the version you checked in recently with some extra error-checking (2005/03/30 22:51:35) and I'm no longer getting the error in my logs. Thanks!

TheLibrarian’s picture

We're done here.