• Resolved Rafa Gallego

    (@rafa-gt)


    Hello.

    I have noticed that the plugin is showing an error message in the “Abandoned orders” tab (only in this tab). The message is this:

    Warning: get_object_vars() expects parameter 1 to be object, array given in /home/outletpi/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/classes/class-wcal-abandoned-orders-table.php on line 297

    What’s the problem?

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Thank you for sharing error message with us.

    Can you please let me know which version of PHP you are using for your site? Also, let me know WooCommerce version and WordPress version which is activated on your site. So, I can try to replicate the same issue at our end and fix it.

    Regards,
    Chetna Bhutka

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Hello again.

    Ok, the PHP version I’m using is the 7.0.27; WordPress 4.9.1; and Woocommerce 3.2.6. All is almost updated.

    Thanks.

    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Thank you for sharing this information.

    I will try to replicate the issue and I will get back to you with a response on Saturday. As we are on the leave tomorrow due to the festival of Holi in India.

    Thank you for your patience.

    Regards,
    Chetna Bhutka

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Ok, no problem @chetnapatel ??

    The plugin is working fine, but the message is still there.

    Have a nice and colorful festival! ??

    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Thank you for wishing me.

    I have tried to replicate the issue but I am unable to replicate the same issue. Please see the screenshot here: https://www.screencast.com/t/V2Ma4hqW5

    So, I would need to check the issue on your site. It would be really nice if you can create the ticket on “support at tychesoftwares dot freshdesk dot com” ticketing system where we can more communicate on it and I can give you the fix for this issue?

    Regards,
    Chetna Bhutka

    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    We have found a solution for this issue. Can you please try below solution and let me know whether the error message is resolved or not?

    You can change the code in line number 291 of “class-wcal-abandoned-orders-table.php” file of our plugin. The file will exist in the same folder.

    The code is:

    $cart_details = array();

    You need to change it with below code:

    $cart_details = new stdClass();

    Please let me know if you have any further queries.

    Regards,
    Chetna Bhutka

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Hello, @chetnapatel!

    I’m sorry for the late answer, the email notification from WordPress with your solution was allocated at my Spam folder ??

    Ok, your solution is perfect. The error message has dissapeared! ??

    But I have realized about other error message. I think it was there before the solution, but it is similar: this message is shown at the “Product Report” tab:

    Warning: get_object_vars() expects parameter 1 to be object, array given in /home/outletpi/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/classes/class-wcal-product-report-table.php on line 144

    As you see, this time is on line 144 of the same file.

    Regards,
    Rafa.

    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi Rafa,

    Thank you for your response.

    For the product page error message, it will have the same fix.

    You would need to change the same code in line number 140 of “class-wcal-product-report-table” file of our plugin.

    We are releasing the plugin with the same fix in our next plugin update. Probably, we will be releasing it in the next week.

    Regards,
    Chetna Bhutka

    Hi Chetna,

    I have had the same issue.
    The fix suggested above has not worked, however the plugin does still seem to be working.

    Warning: get_object_vars() expects parameter 1 to be object, array given in /home/lostbarn/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/classes/class-wcal-product-report-table.php on line 144

    WP version: 4.9.4
    Language: en_GB
    Server info: Apache/2.4.29 (cPanel) OpenSSL/1.0.2n mod_bwlimited/1.4
    PHP version: 7.1.15
    cURL version: 7.58.0, OpenSSL/1.0.2n
    MySQL version: 5.6.38

    Hopefully your update resolves the issue.
    Regards,

    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi All,

    Recently, we have released our Abandoned Cart LITE plugin version 4.8 and it should solve the same error message on your site after updating the plugin.

    Kindly upgrade the plugin to the latest version and let me know whether the issue has been fixed or not.

    Let me know if you have any further queries with our plugin.

    Regards,
    Chetna Bhutka

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Hey, @chetnapatel thank you for the update. It worked perfectly, and the other error message has dessapeared.

    Good work!

    • This reply was modified 6 years, 11 months ago by Rafa Gallego.
    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Glad to hear that everything is working fine after updating our Abandoned Cart plugin to the latest version.

    It would be great if you could write a review for us on our plugin’s review page. That would help immensely.

    Let me know if you have any further queries with our plugin.

    Regards,
    Chetna Bhutka

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Done! ??

    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Thank you so much for the review. ??

    Let me know if you have any further question with our plugin.

    Regards,
    Chetna Bhutka

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Error message’ is closed to new replies.