Forum Replies Created

Viewing 1 replies (of 1 total)
  • nerbiz

    (@nerbiz)

    Hi,

    I also had this problem, the /wp-admin/admin-ajax.php had a 500 Internal Server error.
    The PHP error in my log was:
    PHP Catchable fatal error: Object of class woocsv_import_product could not be converted to string in wp-includes/pomo/entry.php on line 76

    In wp-includes/pomo/entry.php, I’ve added an if-statement before line 76, so the code is this:
    if(gettype($key) != ‘object’)
    $key = str_replace( array( “\r\n”, “\r” ), “\n”, $key );

    I hope it helps ??

    EDIT: delete that if-statement after the importing is done, because I don’t know if it would break something else. And maybe the if statement should be (gettype($key) == ‘string’), but whatever, this worked for me.

    • This reply was modified 8 years ago by nerbiz. Reason: Added a footnote
Viewing 1 replies (of 1 total)