I'm not sure exactly what's going on, as there are no errors in either the error_log or the drupal Recent Log Messages, but the behavior is this:

1. Enable TOC on a content type (I tried Page and Book Page)
2. Browse to /admin/structure/block...see no TOC blocks listed.
3. Browse back to content type Manage Display page. See that TOC has been set to disabled again. (Repeating results in the same behavior. Not visiting the Block page means the TOC continues to appear enabled on the Manage Display page after a reload...so the Block admin page is somehow turning TOC off.

I'm willing to believe I missed something during installation or something else is amiss on my system (though I followed the instructions and have simplehtmldom in the /sites/all/libraries directory, and the dependencies installed and enabled). But, even if something is wrong on my system, I think an error message would be helpful in the event of automatically disabling the TOC block.

CommentFileSizeAuthor
#3 toc-2.png16.96 KBDavid Hernández
#3 toc-1.png72.91 KBDavid Hernández
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

swelljoe’s picture

Issue summary: View changes
swelljoe’s picture

Issue summary: View changes
David Hernández’s picture

Status: Active » Postponed (maintainer needs more info)
FileSize
72.91 KB
16.96 KB

Hi there,

I'm trying to replicate your issue with no luck. Here is working fine. Here are the steps I'm following:

  1. Clean install of Drupal with dev version of TOC module and dependencies.
  2. Enable TOC module
  3. Manage Display of Basic Page (page) content type and enable TOC block (attached picture 1)
  4. Go to admin/structure/blocks and see the block there (attached picture 2)

My only guess is that there is other module (or modules) that can be interfering with the module. Do you have any fishy module?

Regards,
David.

swelljoe’s picture

Thanks for quick response.

Would Text Formats possibly be a source of conflict? I have Code Filter with GeSHi Filter/Field, and Markdown, installed and enabled.

And, looking at the stuff that this module uses, maybe something field-related would be to blame? I have Field Extra Widgets, which is used by Project Issue.

I may need to look into one of the alternative ToC options. This one just happens to do things exactly the right way for what I need. I'll try disabling a few modules to see if it starts working. I've got a lot of modules, and unfortunately, most of them are mandatory for this deployment.

swelljoe’s picture

Oh, actually, I was wrong in my initial description of what's happening. It's simply not saving the enabled state, even though it says "enabled" immediately after saving, but when I force a reload of the Content Type page that I had enabled it for, it shows disabled again. No error. Just not saved.

It may be a JavaScript related thing. I noticed when disabling caching, the behavior changes. When using the Adminimal administration theme, the option would reload with ToC set to disabled immediately on save. When I revert to the "Seven" Drupal standard admin theme, the behavior goes back to looking like it saved until I reload the Manage Display section. This is seeming like the AJAX stuff in the ToC module may be conflicting or not working with something else on the page. I do see a POST to /admin/structure/types/manage/book/display when I click save, so something is happening, but it doesn't seem to be hitting the database.

I have the jQuery update module installed (required by some of the modules I'm using). Could that be the culprit here?

I'm gonna see if I can enable this directly in the database, to rule out the JavaScript (or confirm) as being the culprit.

Do you know off-hand where I would need to poke in the db to enable a ToC for a content type?