Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #952820

    Notice: Undefined property: Automattic\WooCommerce\Client::$version in /data01/virt61235/domeenid/www.webme.ee/projects/madis/vollerv2/wp-content/themes/enfold/config-woocommerce/config.php on line 53

    I noticed that when running latest Enfold (4.3.1) and using https://github.com/woocommerce/wc-api-php then error above occures when trying to run this:

    require __DIR__ . ‘/vendor/autoload.php’;

    use Automattic\WooCommerce\Client;

    $woocommerce = new Client(
    http://example.com’,
    ‘ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX’,
    ‘cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX’,
    [
    ‘wp_api’ => true,
    ‘version’ => ‘wc/v2’,
    ]
    );

    #953935

    Hey mehha,

    Thank you for using Enfold.

    I’m not really sure what’s causing it but the error is pointing to a function which checks for the wocommerce version. Where did you add that code?

    Best regards,
    Ismael

    #954476

    I made custom template in child theme folder “page-templates”

    Br
    Madis

    #955236

    Hi,

    Do you mind if we take a look at the dashboard? Please provide the login details in the private field. Ask the plugin or API authors for additional help if possible.

    Best regards,
    Ismael

    #970071

    Problem is not actual anymore. Thank you

    #970331

    Hi,

    Thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.