Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with configuration of SetupFactory in di.xml #485

Closed
SKovbel opened this issue Feb 1, 2014 · 3 comments
Closed

Problem with configuration of SetupFactory in di.xml #485

SKovbel opened this issue Feb 1, 2014 · 3 comments
Assignees

Comments

@SKovbel
Copy link

SKovbel commented Feb 1, 2014

Had some errors during upgrading Magento2 from version dev60 to dev63 (win & linux).
(p.s. Clear installation was success.)

Fatal error: Call to undefined method Magento\Core\Model\Resource\Setup::getAttribute() in /app/code/Magento/GroupedProduct/sql/groupedproduct_setup/install-0.0.1.php on line 29

Declaration in Magento\GroupedProduct\etc\di.xml doesnt work

    <type name="Magento\Module\Updater\SetupFactory">
        <param name="resourceTypes">
            <array>
                <item key="groupedproduct_setup"><value>Magento\Catalog\Model\Resource\Setup</value></item>
            </array>
        </param>
    </type>

Finished upgrading after changed di.xml (put preference tag instead of the above text, i dont know if it is correct or not, but it works).

    <preference for="Magento\Module\Updater\SetupInterface" type="Magento\Catalog\Model\Resource\Setup" />

And the second similar error
Fatal error: Call to undefined method Magento\Core\Model\Resource\Setup::getLocale() in /app/code/Magento/Usa/sql/usa_setup/upgrade-1.6.0.2-1.6.0.3.php on line 27

    <type name="Magento\Module\Updater\SetupFactory">
        <param name="resourceTypes">
            <array>
                <item key="usa_setup"><value>Magento\Usa\Model\Resource\Setup</value></item>
            </array>
        </param>
    </type>

fixed by

<preference for="Magento\Module\Updater\SetupInterface" type="Magento\Usa\Model\Resource\Setup" />```
@verklov
Copy link
Contributor

verklov commented Feb 14, 2014

@Mackovey , thank you for reporting this to us! The team will look at the issue and we will respond once the analysis is complete.

@verklov verklov self-assigned this Feb 14, 2014
@verklov
Copy link
Contributor

verklov commented Feb 20, 2014

@Mackovey , the team has looked at the issue. After running the upgrade, please reinit all autogenerating resources. In particular, /var/generation. This should fix the issue you reported.
Please verify if this eliminates the issue and let us know.

@verklov
Copy link
Contributor

verklov commented Apr 29, 2014

@Mackovey, we could not reproduce the initial issue that you reported. However, please take into account that the team periodically makes significant changes , which means that you should completely reinstall Magento when you experience issues similar to this. We know about this issue and cannot do anything about it due to the continuing changes to the product. We expect this issue to be completely eliminated once we finalize making changes to the product architecture.

We are closing this issue.

@verklov verklov closed this as completed Apr 29, 2014
vpelipenko added a commit that referenced this issue Jul 24, 2015
MAGETWO-40680: Update README.md with new content
magento-team pushed a commit that referenced this issue Mar 25, 2016
…ve-session-checker

[Extensibility] MAGETWO-50518 remove session checker
rganin added a commit to rganin/magento2 that referenced this issue Apr 12, 2016
rganin added a commit to rganin/magento2 that referenced this issue Apr 12, 2016
rganin added a commit to rganin/magento2 that referenced this issue Apr 12, 2016
mmansoor-magento pushed a commit that referenced this issue Oct 12, 2016
magento-engcom-team added a commit that referenced this issue Mar 30, 2019
 - Merge Pull Request magento/graphql-ce#496 from magento/graphql-ce:485-testReSetShippingMethod
 - Merged commits:
   1. 4f19d03
   2. 43f5bce
   3. 4bdc30e
   4. f9ecace
   5. 5d9a64e
   6. f01dc00
   7. 16ce046
   8. c2f15b3
   9. 14d5c3d
   10. 2643424
   11. cf4eb72
   12. 829a39b
   13. 4837778
   14. 1c582f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants