PHP Fatal error: Uncaught TypeError: Argument 1 passed to...
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
add a comment |
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
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
add a comment |
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
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
magento2
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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:
- 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. - 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 WHERE
path= 'wordpress/setup/path';
. From there - you can find the necessary details in the wp-config.php to help locate your missing database.
New contributor
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
- 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. - 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 WHERE
path= 'wordpress/setup/path';
. From there - you can find the necessary details in the wp-config.php to help locate your missing database.
New contributor
add a comment |
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:
- 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. - 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 WHERE
path= 'wordpress/setup/path';
. From there - you can find the necessary details in the wp-config.php to help locate your missing database.
New contributor
add a comment |
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:
- 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. - 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 WHERE
path= 'wordpress/setup/path';
. From there - you can find the necessary details in the wp-config.php to help locate your missing database.
New contributor
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:
- 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. - 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 WHERE
path= 'wordpress/setup/path';
. From there - you can find the necessary details in the wp-config.php to help locate your missing database.
New contributor
New contributor
answered 27 mins ago
ScarrabanScarraban
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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