I've enabled HTMLTidy, it works beautifully. However, I also have CCK enabled. When I go to /admin/content/types/CONTENT_TYPE/fields or Administer -> Content management -> Content Types -> CONTENT_TYPE -> Manage Fields, the page never loads. It's like it's stuck in some kind of infinite loop or something. When I click the stop button on my browser and go to any other page I get something that looks like this:

  • Updated field groups.
  • Updated group weights.
  • Updated field weights.
  • Updated field groups.
  • Updated group weights.
  • Updated field weights.
  • Updated field groups.
  • Updated group weights.
  • Updated field weights.
  • Updated field groups.
  • Updated group weights.
  • Updated field weights.
  • Updated field groups.
  • Updated group weights.
  • Updated field weights.
  • Updated field groups.
  • Updated group weights.
  • Updated field weights.
  • Updated field groups.
  • Updated group weights.
  • Updated field weights.
  • Updated field groups.
  • Updated group weights.
  • Updated field weights.
  • Updated field groups.
  • Updated group weights.
  • Updated field weights.

The longer it tries to load...the more of these update messages I get, which is why I suspect an infinite loop. Any help is greatly appreciated!

Comments

jaydubb181’s picture

It only seems to happen when I have HTMLTidy module enabled AND when my CCK content type has custom values associated with it. E.G. If I go click the Manage Fields tab for a Page content type (the content set up by default), it loads properly and says:

  • There are no groups configured for this content type.
  • There are no fields configured for this content type.
jaydubb181’s picture

Does anyone have any ideas?

jaydubb181’s picture

I started commenting out functions in htmltidy.module to see which one was breaking it. The culprit turned out to be htmltidy_nodeapi . So...it turns out that if i comment out lines 302-307:

      $_POST['body'] = htmltidy_fragment($_POST['body'], $errors, $warnings);
      if ($errors) {
      	
        $errors = array_map('htmlentities', $errors);
        form_set_error('body', theme('item_list', $errors));
      }

This problem doesn't happen.

Why is htmltidy being called when I'm not trying to use it?

civicpixel’s picture

I had the same problem and commenting out lines 302-307 also worked for me.

michaelfavia’s picture

Status: Active » Closed (fixed)

I dont have time to support this project for D5 but if anone writes a patch ill be happy to commit it and make a release. just reopen and add it as an attachment in unified diff format.