Hello together,

I've tried to update my Drupal 6 to Drupal 7. I've followed the instruction, but when I run the update.php I've got the following message:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: http://192.168.191.128/update.php?op=selection&token=vd2QmrAOOxrc2Z005CDwzkzoyipz0QL_xDMItYLncu4&id=47&op=do StatusText: Internal Server Error ResponseText:

And the apache err.log
PHP Fatal error: Class 'DrupalDefaultEntityController' not found in /var/www/modules/node/node.module on line 3899, referer: http://192.168.191.128/update.php?op=selection&token=vd2QmrAOOxrc2Z005CDwzkzoyipz0QL_xDMItYLncu4&op=start&id=47

Can someone help me?

Comments

Jaypan’s picture

Check that the file modules/entity/entity.controller.inc exists, and has the correct permissions.

Nephelo’s picture

Tank you for your reply.

You're right this file, respectively the whole folder modules/entity is missing. I've downloaded the latest Drupal-Core and there isn't this folder. I've only found this module http://drupal.org/project/entity. Then I tried to put this in ./modules and ./sites/all/modules but I get the same error.

Jaypan’s picture

That project is different. It's the Entity API and is a 3rd party module.

Sorry, I gave you the wrong file to look for earlier (I was looking at the Drupal 8 docs until Drupal 7). The file you need to look for is includes/entity.inc. Check for its existence and the permissions on it.

Nephelo’s picture

No problem. The file includes/entity.inc exists and has got chmod 777 (like all files and foldes, for testing). So there shouldn't be a problem with the permissions.

Jaypan’s picture

I got nothing for you then! both modules/node/node.module and includes/entity.inc are core files, and they've been tested hard by many people, so I'm surprised that you would get an error like this.

Have you got any non-standard stuff going on in any way?

Nephelo’s picture

Maybe it's good to know that the drupal installation is an update from Drupal5.

Can it be that an import doesn't work well? Where are the imports defined? Maybe I can edit them and put absolute path in.

Or can it be a wrong setting in my Webserver/PHP configuration?

Jaypan’s picture

Are you going straight from Drupal 5 to Drupal 7 without going through Drupal 6? If so, that's your problem.

Nephelo’s picture

No, I'm not going straight from Drupal5 to Drupal 7. I've already done the step form D5 to D6, so my current Drupal Version is 6 and I'm planing to update to Drupal 7 in the next step.

Nephelo’s picture

I checked again and tried to include the class by using the following code:

if(!class_exists('DrupalDefaultEntityController')){
 require('/includes/entity.inc');
}

Then I geht the following error in my apache error.log

PHP Fatal error: Call to undefined function field_attach_load() in /includes/entity.inc on line 320, referer: http://192.168.191.128/update.php?op=selection&token=2F1VUx-10qPfmw2PEyZ...

I think there is a problem by including all necessary files.

Can someone help me? Maybe to say where Drupal includes all files.

DarrellDuane’s picture

I'm getting the same error as I upgrade a site from D6->D7. Thanks for your insight thus far.

Darrell Duane
d@duane.com

jfox77’s picture

I'm also getting this error when I am trying to upgrade from D6->D7.

"Fatal error: Class 'DrupalDefaultEntityController' not found in /home/op/dev.outdoorpatriot.com/modules/node/node.module on line 4132"

I checked and /includes/entity.inc exists and has permissions set to 644. I have successfully installed D7 on this same server before, which is running PHP 5.2.9

helmo’s picture

anawillem’s picture

Please let me know if others found ways around this.  I am using drush site-upgrade to upgrade a drupal site to drupal 7, and this error is killing me.  I have absolutely no idea how to solve.  Someone in another post had the suggestion of adding some require_onces but did not say where to put them: https://www.drupal.org/node/1253402.

Please help.

--
anawillem
http://jellobrain.com