Blank/Empty nodes being created when Editions are edited and saved.
Hello
I'm working on a site with ProsePoint Version 0.26. I started seeing blank nodes created by user Anonymous in the Content list. These nodes have no content, content-type, etc. While trying to trouble shoot the problem I noticed that a new blank/empty node was created everytime I saved an Edition from any fo the configuration options in the Lastest Edition (Edit, Blocks, Channel Sub-Blocks, Fields or Zones)
These nodes can be deleted but do continue to reappear when I perform the actions listed above.
Does anyone have any ideas what this might be?
In the mean time I'll try updating to version 0.28 and see if that solves the issue.
- Login or register to post comments
Hi,
Now that you mention it, I think I have seen something like this happen before, but at the time, I put it down to human error.
If you have the time to help, I'd like to chase this one down and at least diagnose whether the cause is ProsePoint, additional modules, or some sort of unforeseen interaction.
Is this readily reproducible on your site? If so, how do you make it happen?
Does it seem related to any additional modules you have installed?
Hi Beng
Happy to help track it down. The error seems to be somewhat consistant. I can reproduce it by doing the following:
- Navigating to an Edition's page and clicking "Edit" or "Blocks"
- Scroll to the bottom of the page and click "save"
- It seems to be related to the "Other Stories" fields being empty. The edition I noticed it on had nothing in those fields. I added something and hit save and no empty node was created. I removed the node reference from that field, hit save again and it created an empty node.
It does not happen if I choose any of the other options (Channel Sub-Blocks, Fields, or Zones)
It does not seem related to any of the other modules that are installed but here's a list of what we're using:
- Ad
- Ajax Slideshow - disabled
- Slideshow
- Notification - disabled
- Notification Extras - disabled
- nice menus
- me - disabled
- jquery_update
- image_resize_filter - disabled
- already registered
- calendar
- ddblock - disabled
- ajaxslideshow - disabled
Let me know if you need more help with this issue
Hi,
Okay, I think I've found it.
I can reproduce it by saving an edition node with empty Other Stories fields. Then when you click Save, you also get the message Automatically adding story to channel ... appearing. ProsePoint is incorrectly saving a non-existent field value, hence creating phantom or ghost nodes . I believe this issue will also occur if the Headlines field is also completely empty.
I have a fix as follows.
The instructions below presume you are comfortable editing the code on your system. If not, let me know and we'll work out a way to fix your system.
In the file .../profiles/prosepoint/modules/prosepoint/pp.module, change line 302 from:
if (in_array($nid, $processed))to:
if (empty($nid) || in_array($nid, $processed))(In other words, add an extra condition on the if clause.)
When you try to do this, just copy and paste the entire line. It's less error prone this way.
This fix will be incorporated into the next release of ProsePoint (whenever will be) so it is safe to patch your site with this change.
Please give this a try and let me know if it does or does not resolve your issue.
Thank you.
I made the change you sent and it fixed the problem.
Thanks !!!!
