Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter abyfat

    (@abyfat)

    Hi,

    Here is an update, I have managed to fix it again and I have changed the code in my cpanel on siteground, I have edited the php file and then saved it. I got the code from the github link above!

    Will this now fix the problem permanently or do I need to do something further to prevent this error message ocurring?

    I am learning as I go and did not want to restart the website and did not know how to delete the uploaded csv file, but someone mentioned editing php so I gave that a go.

    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.

    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.

    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

    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.

Viewing 5 replies - 1 through 5 (of 5 total)