Hello. I'm moving my drupal 4.6 installation to another web host and am "practicing" on my local box. I dumped the MySQL database, FTP'd all the files down, replaced all the files on my local Windows box (from my Linux web host server), imported the database tables and records, enabled mod_rewrite in apache for clean URLS, and everything seems to be working on 'localhost' fairly well....EXCEPT that the actual content of a "Story" node is not present when I click the node title or "Read more" link. Also, when I navigate to a "page" node type, the content is not present here either.

When I select "Edit", the text is actually there, it is in the database, there is just a presentation problem on "view". I tried switching templates, but saw the same problem. All the "meta content" of a node type, such as node_words, author info, rating, license, etc. is present, but not the images in and body text. It *does* show up in the teaser.

Has anyone seen this issue? I reproduced it in FF and IE. I'd like to resolve all installation issues locally before installing on my new web host. I'm planning to upgrade to 4.7, but i had some issues on my first attempt so I thought I would try again with a same version migration first.

link to production site showing article and expected result (this is the same page on production site, but is working correctly).

picture of same page exhibiting problem on localhost

Comments

andyatkinson’s picture

actually the problem seems to be present in comments and other node types. I just emptied the cache table and now the teaser text and images don't show up either! Am I just not waiting long enough for the cache to re-generate? can I force Drupal to cache everything? should I still see node content even if the cache table is empty? TIA!

TheWhippinpost’s picture

Difficult to say on the info presented but it deof sounds as though your page.tpl.php files is working but (perhaps?) not your node.tpl.php -

In your chosen theme folder, you do have a node.tpl.php file don't you?

And you haven't messed with it at all?

And it sits in the the same directory level as the page.tpl.php file?

Have you tried selecting all text on the page (CTRL+A - To check it's not your stylesheet printing "white-on-white" text))?

ADDED: Strike that last paragraph, I've just seen your screenshot. It still might be a CSS problem/markup problem (Unclosed tag (node.tpl problem); An inner div not made clear: both)

Have you tried viewing in IE?

Mike

andyatkinson’s picture

I did reproduce the problem in IE and FF. I tried changing the theme to "marvin" or one of the others and saw the same thing, so I don't think it is stylesheet related. The text is available in "edit" mode. I am using markdown, so I made sure the markdown input filter is enabled and other filters (code, HTML, etc.) are enabled. That all looks good.

The *only* thing I did differently was disabled almost all modules (not "required" modules or core modules like "node") then backed-up the db. then when I imported I navigated to the modules page and enabled everything. I've checked my settings a few times to see if I missed any modules, but nothing.

I've also went over the access control a couple of times. I didn't change anything here.

Another thing I tried was in "edit" mode, I've tried both preview and "submit" again to see if I can get the text to show up, but it will not. the comments body does not show up either, just the titles. I'll take a look at node.tpl.php when I return home. Thanks.

Any other suggestions?