php fatal error wordpress - php

I'm getting this error on my website:
Fatal error: Call to a member function get_settings() on a non-object in /home4/gabeweb/public_html/store/wp-content/plugins/woocommerce/includes/class-wc-install.php on line 291
this is Line 291 :
foreach ( $section->get_settings() as $value ) {
Can someone help me resolve this issue? Can't get into the admin of my wordpress site due to this error. Thank you.

There appears to be a problem with your plugin. If you rename the woocommerce folder within wp-content/plugins/ then the plugin will be deactivated, allowing you to get into the admin area.

Related

Fatal Error after moving site from one host to another

I have recently moved a website from one host to another and all went smoothly except one plugin wont reactivate due to the following error:
Fatal error: Cannot redeclare NDScoutsGallery::update() in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/ndscouts.php on line 115
This is the line of code it is referring to:
function update($new_instance, $old_instance) {
I have attempted to sort however was unsuccessful. Any assistance would be appreciated.
The update function is already created in word press, You can rename the function Name in NDScoutsGallery and call using updated function. It will work

Magento getConfigurableAttributesAsArray causes fatal error

I am trying to write a script that creates configurable products. Ive been using this as a guide: http://inchoo.net/magento/programmatically-create-a-configurable-magento-product/
When I get to this line:
$configurableAttributesData = $configProduct->getTypeInstance()->getConfigurableAttributesAsArray();
The script crashes and kicks out this error:
Fatal error: Call to a member function getId() on a non-object in /home/buyfrom/public_html/app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php on line 283
Following a comment on this page, I changed that line to the following:
$possibleAttributes = $product->getTypeInstance(true)->getConfigurableAttributesAsArray($product);
But I am still getting this error. Can anyone suggest how to fix this?
Make sure that attribute set (eg. default) which you are choosing is having at least one configurable attribute (example: 'color' or 'size').

Fatal error: Call to a member function in product.php

I am new to opencart, so please help me.
I am using opencart version 1.5.6, now whenever I edit and delete the product it shows me
Fatal error: Call to a member function productUpdateListen() on a non-object in /home/crazepur/public_html/admin/controller/catalog/product.php on line 78
and
Fatal error: Call to a member function deleteProduct() on a non-object in /home/crazepur/public_html/admin/controller/catalog/product.php on line 133 respectively.
Although it edit and delete the product.
Please help me how to fix it.
Code in Line 78 $this->openbay->productUpdateListen($this->request->get['product_id'], $this->request->post);
And code in line 133 $this->openbay->deleteProduct($product_id);
This means $this->openbay is not an object which contains function productUpdateListen() & deleteProduct(), probably it's NULL or false in some cases (nothing found) due to it's not accessible. Out of scope.
Try
var_dump($this->openbay);
Check the O/P
it's simple and the error-message says it all: your $this->openbay doesn't have those methods (productUpdateListen() and deleteProduct()) - most likely it isn't an object at all.
please debug your code since it's impossible to say what's going wrong wich so little information. to start, do a var_dump($this->openbay); right before the function-calls and check the output.

Fatal error: Call to undefined function themify_build_write_panels()

I am getting an error when I try to access my site (site on WordPress)
Fatal error: Call to undefined function themify_build_write_panels() in /home/ash/public_html/wp-content/themes/metro/theme- functions.php on line 931
My line 931 is =>
themify_build_write_panels( apply_filters(
'themify_theme_meta_boxes' ,
please help me!!
Thanks :)
This error is occurring because you did not define this function in functions.php
Check if you properly defined this function or not.
Find this function in your functions.php
function themify_build_write_panels(){
//statements
//statements
}
You are right you are new to WordPress but as a developer you should know programming and how functions are used in programming and also how to define them.
Error is transparent that you did not define your function.

I am getting the error in my magento site

Fatal error:Call to member function getproduct() on a non-object in app/...../checkout/cart/sidebar/default.phtml on line 29
Why this happen?
Any solution to remove this error??
To remove error,
Go to app/design/frontend/your_theme/checkout/cart/sidebar/default.phtml
Search for getproduct
Comment its line and check.
It happens because, You called the function on an object not associated to it.
Have you used
$_product = Mage::getModel('catalog/product')->load($product_id)
before using it?

Categories