Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter tkress1

    (@tkress1)

    Maybe I’ll be throwing this question out into the darkness of space, but I still cannot figure out what’s preventing my payment gateway connection. When I look in the WooCommerce logs, all I see is a cURL 28 error.

    When I go into cPanel > FileManager and dig through directory to find the error_log file, I see:

    12-Oct-2021 18:14:35 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
    [12-Oct-2021 18:19:22 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
    [12-Oct-2021 18:25:47 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
    [12-Oct-2021 18:25:47 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
    [12-Oct-2021 18:31:13 UTC] PHP Warning:  array_column() expects parameter 1 to be array, string given in /home/emmpaccom/public_html/emmpac-staging/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/RemoteInboxNotifications/Transformers/ArrayColumn.php on line 27
    [12-Oct-2021 18:31:13 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/emmpaccom/public_html/emmpac-staging/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/RemoteInboxNotifications/Transformers/Count.php on line 24
    [12-Oct-2021 18:32:07 UTC] PHP Warning:  array_column() expects parameter 1 to be array, string given in /home/emmpaccom/public_html/emmpac-staging/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/RemoteInboxNotifications/Transformers/ArrayColumn.php on line 27
    [12-Oct-2021 18:32:07 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/emmpaccom/public_html/emmpac-staging/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/RemoteInboxNotifications/Transformers/Count.php on line 24
    [12-Oct-2021 18:35:32 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
    [12-Oct-2021 18:36:17 UTC] PHP Warning:  array_column() expects parameter 1 to be array, string given in /home/emmpaccom/public_html/emmpac-staging/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/RemoteInboxNotifications/Transformers/ArrayColumn.php on line 27
    [12-Oct-2021 18:36:17 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/emmpaccom/public_html/emmpac-staging/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/RemoteInboxNotifications/Transformers/Count.php on line 24
    [12-Oct-2021 19:12:23 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
    [12-Oct-2021 19:22:09 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
    [12-Oct-2021 19:31:04 UTC] The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().

    I don’t know what any of that means. I’ve looked up that WC_Abstract_Legacy_Order message but I’m not sure how to go about fixing it.

    Also, I went to cPanel > Metrics > Errors to see if there was anything in there, and I see this error over and over again:

    Permission denied: [client 109.237.103.118:33882] AH00529: /home/emmpaccom/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/emmpaccom/public_html/' is executable

    I don’t have the faintest clue where to start my search for answers anymore. I’ve deleted and re-downloaded my Astra theme, deleted a bunch of plugins I thought could be the culprits, turned my Wordfence plugin on and off between running test payments, but to no avail. I don’t know/can’t tell if it has anything to do with my Paypal APIs (I do NOT have SoapClient installed, btw, if that matters) but I have no idea if the errors mentioned above are indicative of the Paypal API connection not working, or something else entirely.

    If there is somewhere else I’m not looking to see a more indicative answer to what could be causing the issue, I’d love to know where.

    • This reply was modified 4 years, 7 months ago by tkress1.
    • This reply was modified 4 years, 7 months ago by tkress1.
    Thread Starter tkress1

    (@tkress1)

    So I found another thing I could do to probably get a similar answer to the cURL support. Following the steps on this Frontline Dev siteI created a php file to show me all the php info and put it in my root folder.

    I got a page full of php information, and when I scroll down to cURL support, it says cURL support is enabled, and v7.69.1 is what’s being used.

    So…what else should I check?

    Thread Starter tkress1

    (@tkress1)

    Where should I be looking? I feel like I’m not looking in the right place. So on my site’s WordPress admin dashboard, I went to the Snippets plugin, added a new snippet with that code you sent me, and activated it. I’m not sure where I should be seeing the output message of that code snippet.

    Thread Starter tkress1

    (@tkress1)

    Ok, it’s a snippet and I’ve saved it and activated it. It’s set to run everywhere. So do I run another test order on my staging site? What should I be seeing as a result, and where should I be looking to know if cURL calls are blocked?

    Thread Starter tkress1

    (@tkress1)

    Thanks!

    Where am I putting that code to run it? cPanel > Terminal and creating a command line? Or can I activate the Snippets plugin on WordPress and add a new snippet with that code in there? This backend stuff is still pretty new to me. It’s best to assume I know nothing, and you may need to spell things out a bit.

    Thread Starter tkress1

    (@tkress1)

    How do I go about checking/testing that? Is that a setting I should be able to find on cPanel? I see there is a MOD Security app or whatever on cPanel but the only think I can do is turn it on/off for my domains.

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