Specs:
CCK Version: 4.7.x-1.0, November 20th
Drupal 4.7.4
PHP 5.1.4
mysql 4.1.18

Maybe I'm the only one experiencing this? The CCK code *always* pulls from the cache because
$info is never set (not sure why), but there always seems to be a cached $info array which has
no "content types" in it. So, I add content types, but they never show up in the list.
I can see in phpmyadmin that I have added content types. Attached is a screen capture of the list after
sucessfully adding my 3rd or 4th content type.

Here's your code that I'm talking about:

* @param $reset
* If TRUE, clear the cache and fetch the information from the database again.
*/
function _content_type_info($reset = FALSE) {
static $info;

if ($reset || !isset($info)) {
if ($cached = cache_get('content_type_info')) { // ALWAYS SUCCEEDS so nothing else gets run
$info = unserialize($cached->data);
} else {
$info = array(
'field types' => array(),
'widget types' => array(),
'fields' => array(),
'content types' => array(),
);

CommentFileSizeAuthor
test_0.png15.6 KBslimandslam

Comments

karens’s picture

I have a suspicion that this issue is related to http://drupal.org/node/84634 and that both are related to php 5 in some way. Can anyone who is experiencing this confirm one way or the other whether both of these things are problems if either one is a problem, or try to narrow down the circumstances where this occurs.

slimandslam’s picture

I just noticed something else in my logs:

Table 'mydb.node_type_content' doesn't exist query: SELECT * FROM node_type_content nt ORDER BY nt.type_name ASC in /mysite.com/web/public/includes/database.mysql.inc on line 120.

I have a table named "node_type" but no table named "node_type_content". I have no idea why
that table does not exist. I think all the other tables appear to be there. Maybe it's because
I enabled some of the node types *before* I enabled the "content" type? On my modules
page, all the modules with "CCK" are checked as enabled.

karens’s picture

Go to update.php and see if you missed running an update. That table was renamed.

nathanraft’s picture

Can someone give some details on how update.php works? And how to update CCK specifically...

When going to it I see a list of some modules with 'No updates available' in the dropdown along with integers. 1, 2, 3, etc. Some have many while some have few. What does these numbers mean? Which would I choose?

Thanks

slimandslam’s picture

I ran update.php but it didn't change anything or give me a notification.
Anyway, I manually deleted all the CCK tables (old and new). And deleted
the CCK entry in the system table. I reinstallled CCK and it works fine now.

karens’s picture

Status: Active » Fixed

@NathanRAFT When you go to update.php, it will list all the modules you have installed and automatically display a number if that module needs to be updated. If it is displaying 'no updates available' that means nothing needs to be done for that module. If you change the displayed values you can create problems since the system is determining whether or not updates need to be run and some updates should not be run more than once. Generally, you should just accept whatever it displays and submit the page. If you changed those values and submitted the page, you may have problems in the future, so just remember to mention this if have problems with CCK and post issues to report it. If you didn't do anything on that page, go back to it and just submit it as-is.

@slimandslam if you have a table with the wrong name you clearly had an installation that is not up to date and update.php should have updated it. Since you now have a good installation, there's nothing more to do and there's no way to know why your original installation wasn't working.

Since the problem is fixed for the original poster, I'm going to close this issue.

nathanraft’s picture

KarenS-

Thanks the kind of explaination they need in the manuals! Many thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)