PHP Fatal error: Uncaught TypeError: Argument 1 passed to...












0















PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoFrameworkDataCollectionAbstractDb::setConnection() must implement interface MagentoFrameworkDBAdapterAdapterInterface, boolean given, called in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php on line 124 and defined in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php:183nStack trace:n#0 /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php(124): MagentoFrameworkDataCollectionAbstractDb->setConnection(false)n#1 /var/www/stg.bulk.ls1/public_html/app/code/FishPig/WordPress/Model/ResourceModel/Collection/AbstractCollection.php(24): MagentoFrameworkModelResourceModelDbCollectionAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory), Object(MagentoFrameworkLoggerMonolog), Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery), Object(Mag in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php on line 183










share|improve this question























  • Is it default magento installation?

    – Sohel Rana
    Jan 10 at 15:10











  • when this error occurred?

    – Himanshu
    Jan 11 at 5:41











  • when update from magento 2.2.1 to 2.2.7 error show

    – Rafiqul Islam
    Jan 11 at 6:41
















0















PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoFrameworkDataCollectionAbstractDb::setConnection() must implement interface MagentoFrameworkDBAdapterAdapterInterface, boolean given, called in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php on line 124 and defined in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php:183nStack trace:n#0 /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php(124): MagentoFrameworkDataCollectionAbstractDb->setConnection(false)n#1 /var/www/stg.bulk.ls1/public_html/app/code/FishPig/WordPress/Model/ResourceModel/Collection/AbstractCollection.php(24): MagentoFrameworkModelResourceModelDbCollectionAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory), Object(MagentoFrameworkLoggerMonolog), Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery), Object(Mag in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php on line 183










share|improve this question























  • Is it default magento installation?

    – Sohel Rana
    Jan 10 at 15:10











  • when this error occurred?

    – Himanshu
    Jan 11 at 5:41











  • when update from magento 2.2.1 to 2.2.7 error show

    – Rafiqul Islam
    Jan 11 at 6:41














0












0








0








PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoFrameworkDataCollectionAbstractDb::setConnection() must implement interface MagentoFrameworkDBAdapterAdapterInterface, boolean given, called in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php on line 124 and defined in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php:183nStack trace:n#0 /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php(124): MagentoFrameworkDataCollectionAbstractDb->setConnection(false)n#1 /var/www/stg.bulk.ls1/public_html/app/code/FishPig/WordPress/Model/ResourceModel/Collection/AbstractCollection.php(24): MagentoFrameworkModelResourceModelDbCollectionAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory), Object(MagentoFrameworkLoggerMonolog), Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery), Object(Mag in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php on line 183










share|improve this question














PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoFrameworkDataCollectionAbstractDb::setConnection() must implement interface MagentoFrameworkDBAdapterAdapterInterface, boolean given, called in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php on line 124 and defined in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php:183nStack trace:n#0 /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php(124): MagentoFrameworkDataCollectionAbstractDb->setConnection(false)n#1 /var/www/stg.bulk.ls1/public_html/app/code/FishPig/WordPress/Model/ResourceModel/Collection/AbstractCollection.php(24): MagentoFrameworkModelResourceModelDbCollectionAbstractCollection->__construct(Object(MagentoFrameworkDataCollectionEntityFactory), Object(MagentoFrameworkLoggerMonolog), Object(MagentoFrameworkDataCollectionDbFetchStrategyQuery), Object(Mag in /var/www/stg.bulk.ls1/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php on line 183







magento2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 10 at 14:42









Rafiqul IslamRafiqul Islam

1016




1016













  • Is it default magento installation?

    – Sohel Rana
    Jan 10 at 15:10











  • when this error occurred?

    – Himanshu
    Jan 11 at 5:41











  • when update from magento 2.2.1 to 2.2.7 error show

    – Rafiqul Islam
    Jan 11 at 6:41



















  • Is it default magento installation?

    – Sohel Rana
    Jan 10 at 15:10











  • when this error occurred?

    – Himanshu
    Jan 11 at 5:41











  • when update from magento 2.2.1 to 2.2.7 error show

    – Rafiqul Islam
    Jan 11 at 6:41

















Is it default magento installation?

– Sohel Rana
Jan 10 at 15:10





Is it default magento installation?

– Sohel Rana
Jan 10 at 15:10













when this error occurred?

– Himanshu
Jan 11 at 5:41





when this error occurred?

– Himanshu
Jan 11 at 5:41













when update from magento 2.2.1 to 2.2.7 error show

– Rafiqul Islam
Jan 11 at 6:41





when update from magento 2.2.1 to 2.2.7 error show

– Rafiqul Islam
Jan 11 at 6:41










1 Answer
1






active

oldest

votes


















0














This problem is caused by the FishPig_WordPress integration module being enabled, but the associated WordPress database is not available. If you've downloaded a copy of a website with this enabled without the attached WordPress site database - your site front-end can likely crash if it's using widgets associated with FishPig_WordPress.



You have two options:




  1. If you're just using the site locally for development, you can disable the module using php bin/magento module:disable FishPig_WordPress. Re-compile and clear the cache afterward.

  2. Find the missing WordPress database and set it up - if you're not sure where the Wordpress site is installed, you can find it's relative path by using the following SQL query SELECT * FROM db.core_config_data WHEREpath= 'wordpress/setup/path';. From there - you can find the necessary details in the wp-config.php to help locate your missing database.






share|improve this answer








New contributor




Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f257424%2fphp-fatal-error-uncaught-typeerror-argument-1-passed-to-magento-framework-da%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This problem is caused by the FishPig_WordPress integration module being enabled, but the associated WordPress database is not available. If you've downloaded a copy of a website with this enabled without the attached WordPress site database - your site front-end can likely crash if it's using widgets associated with FishPig_WordPress.



    You have two options:




    1. If you're just using the site locally for development, you can disable the module using php bin/magento module:disable FishPig_WordPress. Re-compile and clear the cache afterward.

    2. Find the missing WordPress database and set it up - if you're not sure where the Wordpress site is installed, you can find it's relative path by using the following SQL query SELECT * FROM db.core_config_data WHEREpath= 'wordpress/setup/path';. From there - you can find the necessary details in the wp-config.php to help locate your missing database.






    share|improve this answer








    New contributor




    Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      This problem is caused by the FishPig_WordPress integration module being enabled, but the associated WordPress database is not available. If you've downloaded a copy of a website with this enabled without the attached WordPress site database - your site front-end can likely crash if it's using widgets associated with FishPig_WordPress.



      You have two options:




      1. If you're just using the site locally for development, you can disable the module using php bin/magento module:disable FishPig_WordPress. Re-compile and clear the cache afterward.

      2. Find the missing WordPress database and set it up - if you're not sure where the Wordpress site is installed, you can find it's relative path by using the following SQL query SELECT * FROM db.core_config_data WHEREpath= 'wordpress/setup/path';. From there - you can find the necessary details in the wp-config.php to help locate your missing database.






      share|improve this answer








      New contributor




      Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        This problem is caused by the FishPig_WordPress integration module being enabled, but the associated WordPress database is not available. If you've downloaded a copy of a website with this enabled without the attached WordPress site database - your site front-end can likely crash if it's using widgets associated with FishPig_WordPress.



        You have two options:




        1. If you're just using the site locally for development, you can disable the module using php bin/magento module:disable FishPig_WordPress. Re-compile and clear the cache afterward.

        2. Find the missing WordPress database and set it up - if you're not sure where the Wordpress site is installed, you can find it's relative path by using the following SQL query SELECT * FROM db.core_config_data WHEREpath= 'wordpress/setup/path';. From there - you can find the necessary details in the wp-config.php to help locate your missing database.






        share|improve this answer








        New contributor




        Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        This problem is caused by the FishPig_WordPress integration module being enabled, but the associated WordPress database is not available. If you've downloaded a copy of a website with this enabled without the attached WordPress site database - your site front-end can likely crash if it's using widgets associated with FishPig_WordPress.



        You have two options:




        1. If you're just using the site locally for development, you can disable the module using php bin/magento module:disable FishPig_WordPress. Re-compile and clear the cache afterward.

        2. Find the missing WordPress database and set it up - if you're not sure where the Wordpress site is installed, you can find it's relative path by using the following SQL query SELECT * FROM db.core_config_data WHEREpath= 'wordpress/setup/path';. From there - you can find the necessary details in the wp-config.php to help locate your missing database.







        share|improve this answer








        New contributor




        Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 27 mins ago









        ScarrabanScarraban

        1




        1




        New contributor




        Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Scarraban is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f257424%2fphp-fatal-error-uncaught-typeerror-argument-1-passed-to-magento-framework-da%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Polycentropodidae

            Magento 2 Error message: Invalid state change requested

            Paulmy