I have this problem with instertview here.
The module works fine if I just preview the page.
But once i hit publish - it erases the node and might even corrupt the node_revisions table if that node already existed.
If that't the new node - it just gets erased on publish.

Using drupal 5.2 here.

Comments

Anonymous’s picture

Check that the view you are inserting does not call up a page that already includes a view.

It also cause a dump in the drupal folder as memory was being used up due to the recursion

I had that and the page I had just created dissapeared but without a puff of smoke

egorka’s picture

this happens with any view.
absolutely any view i insert.

Anonymous’s picture

Must admit no expert here but gut feeling tells me you are calling the page up in the view you are trying to insert.

Check your views filters to ensure the page you are creating doesnt match the rules. It could be something very simple such as you call all of a content type, like 'page' and what you have is in that 'page'.

You could create a new content type and create 1 record for that type, no taxonomy. then create a view for this new content type, check teh view shows only teh one item. Then insert that view in a 'page' content type. If it works, i would look again at if my views were calling up the page i was inserting the view on

When i had teh problem it took me a day to find it

Sorry i cant be of more help

mlsamuelson’s picture

egorka,

Can you give a few more specifics - for instance, what other modules you're using, and if the erasing of nodes happens when you're editing an existing node, or only when creating a new one. If it's creating a new node, it's not actually being erased, just never saved.

Just trying to zero in on what's happening.

egorka’s picture

yes - new node never gets saved. drupal says node has been created but nothing appears in the database.

if i try to add a view to existing node - the node gets erased.

as for modules, here is the list of modules that are not in the core and that I would not like to disable.

Content
View field
Event
Image
Views
Insert view
Panels
Pathauto
Site map

i can give you a full access to the site if you like if you could help me with that issue.

mlsamuelson’s picture

egorka,

Let's try and clarify the issue a little before moving to that step. :)

So, for troubleshooting, let's zero down on the issue.
When creating a new node, if you include an insert view tag such as

[view:tracker=10]

the page fails to create.

  1. Does it do this for all content types?
  2. Does it do this for all input formats?
  3. What happens when the node fails to save - error message? Or are you redirected to the home page? Some other page? White screen?
  4. Have you gone to http://www.yoursite.com/admin/content/node to double check that the file wasn't created?

Can you create a node successfully if you don't include an insert_view tag?

  1. If yes, what happens if you later try to add an insert_view tag in an existing node?
  2. If no, what happens?

If insert view is responsible for your bug, this is really surprising behavior.

mlsamuelson

mlsamuelson’s picture

Another question occurred to me:

What's your hosting environment? Are there any modules like "mod_security" enabled?

mlsamuelson

egorka’s picture

strange. i do bot get this issue any more. i guess all i changed at the site is added a nodevote module.

but the issue was:
- i was testing it for story nodetype
- for all input formats
- no error, node created
- but it did not appear nither on homepage nor in admin/content/node

>can you create a node successfully if you don't include an insert_view tag?
> 1. If yes, what happens if you later try to add an insert_view tag in an existing node?

node_revisions table got corrupted and i had to repair it.
thanks for time.
will let you know if ever see that issue again

mlsamuelson’s picture

Status: Active » Closed (fixed)

Thanks for following-up, egorka.

I'm going to put this issue to closed, since we were never able to get any sort of tangible evidence of Insert View causing the issue.