# The script tried to execute a method or access a property of an incomplete object

**URL:** <https://forum.shopware.com/t/the-script-tried-to-execute-a-method-or-access-a-property-of-an-incomplete-object/99621>\
**Category:** Shopware 6 (English)\
**Created:** [9. Mai 2023 um 13:31 UTC](https://forum.shopware.com/t/the-script-tried-to-execute-a-method-or-access-a-property-of-an-incomplete-object/99621 "2023-05-09T13:31:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanlopez](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@ivanlopez](https://forum.shopware.com/u/ivanlopez)\
**Post date:** [9. Mai 2023 um 13:31 UTC](https://forum.shopware.com/t/the-script-tried-to-execute-a-method-or-access-a-property-of-an-incomplete-object/99621/1 "2023-05-09T13:31:20Z")

</div>

Hi,

I’ve just migrated to another server but I’m getting such error at homepage:

Shopware 6 Error: Shopware\Core\Framework\Rule\Container\AndRule::match(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Shopware\Core\Checkout\Cart\Rule\LineItemProductStatesRule" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition

any help please?

Thanks.
