I created a custom content page for displaying archived newsletter articles.

Here's a sample of a page that is displaying properly:
http://www477.pair.com/tilthpro/?q=node/121

All the pages and articles are displaying correctly, but with one (only one) article all fields but one display correctly. The field that doesn't show up is the main text of the archived article. I deleted the content and re-submitted it as a new node, I've inputted it in different formats and the same issue is still happening. I tried it with just a short phrase and that shoes up correctly.

I'm using UTF-8. It's in a longtext database field. All my other articles are displaying okay.

So you can see what I'm talking about, here's the link to the errant page:
http://www477.pair.com/tilthpro/?q=node/192

Notice it displays the author's name but no article text.

What could possibly be in my content that would cause this to happen and what can I do to correct the situation?

Comments

gpk’s picture

Is the article plain text or HTML? It may just be a matter of trial and error - pasting more, or less, of the article in until you find the part that is causing the problem. Maybe there is an invalid character sequence that is preventing it from rendering correctly? Particularly if you are pasting it in from Windows ...

You may also want to check out function node_page_view(...). Your node is rendered, essentially, by a call to node_page_view($node) where $node = node_load(192). You can experiment with these and the functions called by node_page_view(...) in a page with PHP input format.

HTH

gpk
----
www.alexoria.co.uk

webpotato’s picture

Trial and error. Okay. And I'll give the node_page_view function a look too.
Thanks.

webpotato’s picture

I did what you suggested in terms of trial and error and I find I can get the article to show up up to a certain point and then at 32,898 characters (of a 37,115 character article) it stops showing up altogether. I see no odd characters. If I copy and paste the remainder of the article by itself that didn't show up , it shows up. So it seems it's not some weird character or character combination, but length.

Is there a length limit to a field in Drupal when Drupal writes the page? I know the whole article fits in the longtext field in mySQL.

If there is a length limit, is there a way to override/extend it?

BTW in experimenting I deleted the first version and the errant page is now
http://www477.pair.com/tilthpro/?q=node/193

Next I'll try the node view function, I guess.

gpk’s picture

I can create articles on a relatively clean Drupal 5.1 installation with much longer body than this (e.g. 140,000 was no problem) ...

You may have to drill down from node_view() to find out where the problem is occurring. Could possibly be a contributed node-related module that can't handle strings of this length.

gpk
----
www.alexoria.co.uk