Plugin Support
Hannah S.L.
(@fernashes)
Automattic Happiness Engineer
Hey there,
This kind of problem is usually caused by either a conflict with your theme or with another plugin. Even though it showed up after importing products, the error points to a plugin conflict.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Thread Starter
abyfat
(@abyfat)
Hi,
Thank you for your reply.
I did check the plugin conflict and doesn’t seem to be stemming from there. Nothing changed.
I read that it could be because my php was not to the recommended level, so my host upgraded this and now it’s 7.something, but the error still isn’t fixed.
Now error message is longer and mentions stack trace at the end.
Is there a way to guide me into the file path and delete or change something to fix this.
I have been trying to find information to fix the problem but cannot find instructions.
I did notice that the database version is not the same as the WooCommerce version and when I have ran the updater numerous times it still shows the older version number.
I am trying to figure out how I can fix that as thought maybe that could be the issue.
Thread Starter
abyfat
(@abyfat)
This is the error code now showing:
Fatal error: Uncaught Error: Call to a member function get_image() on boolean in /home/tsfitnes/public_html/tawhab.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:1828 Stack trace: #0 /home/tsfitnes/public_html/tawhab.com/wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php(145): WC_Product->get_image(‘thumbnail’) #1 /home/tsfitnes/public_html/tawhab.com/wp-content/plugins/woocommerce/includes/admin/list-tables/abstract-class-wc-admin-list-table.php(261): WC_Admin_List_Table_Products->render_thumb_column() #2 /home/tsfitnes/public_html/tawhab.com/wp-includes/class-wp-hook.php(286): WC_Admin_List_Table->render_columns(‘thumb’, 996) #3 /home/tsfitnes/public_html/tawhab.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #4 /home/tsfitnes/public_html/tawhab.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/tsfitnes/public_html/tawhab.com/wp-admin/includes/class-wp-posts-list-table.php(1162): do_action(‘manage_pro in /home/tsfitnes/public_html/tawhab.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on line 1828
Howdy 🙂
I have restored WooCommerce back and the abstract-wc-product file up to before it happened and it made no difference.
Can you help us understand what you mean by that? Have you edited that PHP file?
Thread Starter
abyfat
(@abyfat)
No, I have not not edited any files, I have no idea how to do that.
What I did was after asking my host support how to fix the issue, they said to go to my cpanel and restore backup to the date before I saw the error message, so I selected the mentioned files WooCommerce and the abstract productive because that was in the error message so I thought that was where the problem was.
But that didn’t make any difference.
Then when I read some more I asked the host to update the PHP and that’s when the error message grew longer.
I’m really not tech savvy and wondering should I delete everything and start a fresh would that get rid of this code.
@abyfat
wondering should I delete everything and start a fresh would that get rid of this code
That sounds to me like the best course of action to resolve this, but if you import products with the same CSV file, the problem will likely come back so I would recommend that you identify what, in that CSV file caused this problem to begin with.
Kenin
(@kbassart)
Automattic Happiness Engineer
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Thread Starter
abyfat
(@abyfat)
Hi,
I found this
https://github.com/woocommerce/woocommerce/issues/22068
And then I copied the code he posted the second one. And it worked!
Thank you for the insight, I have learnt something new.