0

I just migrate my website to a new hoster and I get many errors based on files/images problems. Can somebody help me with that ?

I have this error on every page :

Notice: Undefined index: default_widget in FieldInfo->prepareInstanceWidget() (line 580 of .../www/modules/field/field.info.class.inc). Notice: Undefined index: default_widget in FieldInfo->prepareInstanceWidget() (line 588 of .../www/modules/field/field.info.class.inc). Notice: Undefined index: module in FieldInfo->prepareInstanceWidget() (line 591 of .../www/modules/field/field.info.class.inc).

And this one :

Fatal error: Call to undefined function file_field_load() in .../www/modules/image/image.field.inc on line 195

So, after some investigations line 195 of image.field.inc :

function image_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age) {
  file_field_load($entity_type, $entities, $field, $instances, $langcode, $items, $age);
}

But I didn't change anything in my files.

  • Have you tried flushing all caches in this new environment? – longboardnode Apr 26 '17 at 23:24
  • Yes, of course. – Aporie Apr 27 '17 at 7:17
  • Can you reproduce this on your local? If it works fine on your local then probably some config is wrong on settings.php/.htaccess or the media directory for the new hoster. – longboardnode Apr 27 '17 at 15:37
  • Hey, thanks for your help. Actually I made another proper install and everything works just fine. I think it was kind of random bug which happened during restoration. – Aporie Apr 27 '17 at 15:47
  • Cool, glad it worked out – longboardnode Apr 27 '17 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.