Custom content types not being displayed

j9 - January 24, 2007 - 05:08
Project:Node list
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:wmostrey
Status:closed
Description

Not sure if it has to do with the fact that I changed the content type name from page to software, but it doesn't seem to be displaying the list of nodes.

http://www.freewebsoftware.org/node/list

I tried checking all three option boxes

Show node author
Show date of node creation
Include node children when using therm hierarchy

and leaving them blank, but that doesn't seem to change anything.

Any thoughts?

Thanks for a cool and useful mod!!

#1

wmostrey - January 24, 2007 - 09:04
Assigned to:Anonymous» wmostrey

Did you select the type 'software' in the "node types to include" checklist?

#2

j9 - January 25, 2007 - 21:06

Yes.

Thanks for the help.

#3

GripMediaDotNet - January 26, 2007 - 04:46

BIG thank you for updating the module...

I am getting the same error... blank page of any content type I have created with CCK will not show up... but the default ones (page, story), shows up...

hope this helps...

-gripmedia.net

#4

wmostrey - January 29, 2007 - 10:20

This was another caching issue, it should now be fixed in the latest dev version. Can you confirm that all works well for you now?

#5

j9 - January 30, 2007 - 08:18

I overwrote the old version with the new, deactivated the module and reactivated it, resubmited the settings configs and still it gives an empty page. Anything else I might try?

Thanks for your help --

#6

wmostrey - January 30, 2007 - 08:35

Strange. With an empty page, you mean a 'page not found', a node list pages with no nodes listed or a complete blank page?

When you select just one of the next types, does it display them?

#7

j9 - February 5, 2007 - 11:37

Not a 'page not found' error - rather an empty node list w/ the proper heading.

See this page for the issue:

http://www.freewebsoftware.org/node/list

I tried the other content type, but that was resulted empty as well.

If it might make a difference, there is no categories (taxonomy) set up w/ the site.

Thanks again, very much!, for your help. If I am the only one getting this problem, it is probably me. :-)

#8

wmostrey - February 19, 2007 - 10:30

Refering to http://drupal.org/node/120005

Does hedrooms proposal fix this issue too?

"I fixed this on line 253 of nodelist.module

Old Line = $node_types = drupal_map_assoc(node_get_types('names'));
New Line = $node_types = node_get_types('names');"

#9

wmostrey - February 26, 2007 - 10:02

Thanks to the code by hedroom, i updated this in http://drupal.org/cvs?commit=58258

Can everyone confirm this fixes this issue?

#10

j9 - February 28, 2007 - 02:45

I made the changes to lines 141 and 250, deactivated the module, reactivated it, resaved the settings in settings > nodelist, but still I don't see anything on the node list page:

http://www.freewebsoftware.org/node/list

This could easily be an error on my part, but I believe I've made all the correct changes.

Is anyone else experiencing this issue?

Thanks again for the help.

#11

wmostrey - February 28, 2007 - 10:44

It was a caching issue once again.

On line 144 of nodelist.module change

if ($cached == cache_get('nodelist:'.$md5)) {

to

$cached = cache_get('nodelist:'.$md5)
if (!empty($cached)) {

Please confirm that all is ok then.

#12

wmostrey - March 2, 2007 - 07:46
Title:Empty Node List (after changing content type name from page > software?)» Custom content types not being displayed
Component:User interface» Code
Status:active» reviewed & tested by the community

#13

j9 - March 9, 2007 - 12:08

Hi -

The code you provided almost worked. I had to add a semicolon to get it to load properly. Here is what I have:

$cached = cache_get('nodelist:'.$md5);
if (!empty($cached)) {

Thanks a lot for this fix!!

Glad to be rockin the nodelist mod again! :D

#14

wmostrey - March 9, 2007 - 12:54
Status:reviewed & tested by the community» fixed

So glad to hear that :) The current 5.x-1.x-dev version includes this fix. Thanks for all the help and reporting!

#15

Anonymous - March 23, 2007 - 13:01
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.