Hi,

Hopefully this is an easy to fix issue, but why does 'n/a' appear on my home page just below the mission statement and above the first posting. I am using 5.0 and using the B7 theme. I've used numerous past version of Drupal, but this is the first time this has happened. The site is here: http://www.familiesinrecovery.org

I tried searching the forums for this, but was not allowed to search for "n/a".

Thanks!

Scott

Comments

Chill35’s picture

Have you tried switching to another theme, such as Garland, just to narrow down the source of the problem ?
In orher words, with Garland, do you see the non-applicable "n/a" below your mission statement ?

Caroline

systamper’s picture

I tried it under Garland, Amadou and BlueMarine as well. I checked the options such as site name, etc. but did not see anything there.

Any ideas?

Thanks!

Scott

http://www.familiesinrecovery.org

systamper’s picture

Sorry to be so persistent but the site is live and I could really use help. i am still recovering from a civicspace crash when i tried to upgrade. i am switching back to straight druple.

is there any chance a lm paypal installation could have done something? I've only added a small handful of modules so I'm not sure where the conflict is originates.

Thanks,

http://www.familiesinrecovery.org

Chill35’s picture

Please do a View Source in the browser (any browser) when viewing the front page and copy here the exact HTML that makes that n/a show up (the element and its container, with all attributes). Maybe by the id and class attribute we'll be able to guess what module is responsible for it to show up.

That's my best advice. I am a newbie.

I hope that someone else will help.

Caroline

kdfrawg’s picture

This probably sounds too simple, and may be fairly dim indeed, but have you searched through your Drupal files for any containing the string "n/a" to see if it is being output because it is being told to, and you just don't know where?

Michael

systamper’s picture

Thanks so much for the help.

I tried both suggestions. The only reference to "n/a" in the whole folder that I could find is in local.inc. Here is the text:

/**
* Theme the locale admin manager form.
*/
function theme_locale_admin_manage_screen($form) {
foreach ($form['name'] as $key => $element) {
// Do not take form control structures.
if (is_array($element) && element_child($key)) {
$rows[] = array(check_plain($key), drupal_render($form['name'][$key]), drupal_render($form['enabled'][$key]), drupal_render($form['site_default'][$key]), ($key != 'en' ? drupal_render($form['translation'][$key]) : t('n/a')), ($key != 'en' ? l(t('delete'), 'admin/settings/locale/language/delete/'. $key) : ''));
}

And when I view the source, this is what I see (I took off the brackets so it would display correctly):

div id="node-" class="node node-unpublished"

h2 a href="/home/node/" title="" /a /h2

div class="content"

n/a /div

div class="clear-block clear"
div class="meta"
/div

/div

/div


Not sure what to make of this, nor if I included enough text to make sense of what is going on.

Thanks again for the help,

Scott

http://www.familiesinrecovery.org

Chill35’s picture

So the code is... (sorry, I forgot we had access to your site, very sorry about that, I could have looked myself) :

<!-- start main content -->
<div class="node">
<h2><a href="%20/home/node/%20" title="  "></a></h2>
<div class="content">  n/a  </div>
<div class="info"></div>
</div>

Next title is
<h2><a href="%20/home/node/3%20" title=" Meltdown...And Healing "> Meltdown...And Healing </a></h2>

So we are getting a node. A node with no nid... The node number is " ", i.e. nothing.
A node that's not a node.

The class info is for submitted by... on...

Does anyone know how we could possibly end up with something like this ?

Caroline

vm’s picture

try clearing the cache table in the database. maybe that will flush it out ?
was it there when you created the other nodes ?

I've never seen type of situation before.

systamper’s picture

It was the node that is not a node. I had an entry in the node table that I did not have in the node revision table. This occurred when I was attempting to import nodes from an older civicspace installation. I was trying to update to the most recent version of Drupal and, well, things sort of went kerplooey. I've since given up on importing the old nodes. There is just simply too much I do not know.

But I really appreciate the suggestions and the help!

My best,

Scott

http://www.familiesinrecovery.org

kdfrawg’s picture

Yup, that makes sense. No wonder it was weird.

Good job finding it!

Michael

fell.inchoate’s picture

This same behaviour happened to me using the Devel module (6.x.1.16) and Drupal 6.12. Unfortunately I don't remember the exact sequence of events, but it involved creating content, comments, taxonomies and users [a few times each, with delete existing xxx checked]. Eventually it seemed nodes were orphaned. They wouldn't show up in the administer content page -- but I would get about 20 "n/a" on my home page, with tags about being unpublished.

After deleting rows in the db from the relevant node* tables it resolved the issue. Not sure exactly how safe that was, but live and learn!

Those tables would be: node, node_revisions, node_comment_statistics, node_counter [I think] -- and the comments table. Of course I didn't have content that I needed to preserve, if I had I guess it would've been a bit more of an exercise.