• Resolved keysuck

    (@keysuck)


    I received the following error while executing a PHP command:

    Fatal error: Cannot use Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\WooCommercePayments as WooCommercePayments because the name is already in use in /instruments/www/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/SetUpAdditionalPaymentTypes.php on line 13

    I have never encountered this issue in the past while running the same command. Please offer an assistance.

    • This topic was modified 2 years, 8 months ago by keysuck.
    • This topic was modified 2 years, 8 months ago by keysuck.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @keysuck

    I understand that you got this error while running a PHP command.

    From the code you shared it seems that it might be something related to the payment types set up at WooCommerce Payments.

    As this is a development related topic I recommend reaching out at the WooCommerce Developer Resources Portal.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Lastly, for direct assistance with code troubleshooting/customizations, we recommend consulting with the WooCommerce Customizations Partners. https://woocommerce.com/customizations/`

    Nevertheless, I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out here.

    * Support for custom coding is beyond the scope of support we are able to provide in this forum. This particular forum is for questions that are related to the WooCommerce core features.

    Thread Starter keysuck

    (@keysuck)

    WooCommerce Payments plugin is not installed at my WP site.
    I have no where else to ask regarding WooCommerce core issues but here.

    @keysuck

    To take a further look:
    What PHP command did you run?

    I look forward to hearing from you.

    Thread Starter keysuck

    (@keysuck)

    I executed thumbnail regenerate command via wp-cli:

    php wp-cli.phar media regenerate --yes

    I checked again and after disabling WooCommerce the command executes normally.

    Hi @keysuck

    Thanks for sharing the command you ran.

    Additionally, kindly also share a copy of your site’s System Status so we can take a closer look. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    Could you please navigate to WooCommerce > Status > Logs and from the dropdown on the right side, please see if there are any logs starting with the words fatal-error?

    Please let us know what you find.

    We haven’t heard back from you in a while, so I’m marking this thread as closed – we’ll be here if and/or when you are ready to continue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error during PHP command execution’ is closed to new replies.