• Hi PW,

    I created a gift card product and the product type is set to “PW Gift Card”. But there are no price variations and if I enter a price and click on the button I get the message: Variant could not be created (I’m not sure if this is the exactly message because I get the German)

    I tested it in two WordPress systems and in both the same! Can you tell me where is the problem?

    Thank you for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author pimwick

    (@pimwick)

    Sorry to hear that you’re having trouble. It sounds like there may be a conflict with another plugin.

    Can you get a WooCommerce System Report and attach just the “Active Plugins” section? Log into your WordPress admin area and click on WooCommerce -> Status -> Get System Report.

    Thread Starter sebastian1234

    (@sebastian1234)

    Hi @pimwick,

    Thank you for your help! Here you find the System Report of the “Active Plugins”:

    ### Active Plugins (21) ###

    Advanced Custom Fields PRO: von Elliot Condon – 5.9.4
    All in One SEO: von All in One SEO Team – 4.0.12
    Contact Form 7: von Takayuki Miyoshi – 5.3.2
    Crop Thumbnails: von Volkmar Kantor – 1.3.0
    Custom Post Type UI: von WebDevStudios – 1.8.2
    Duplicator: von Snap Creek – 1.3.40.1
    Enhanced Media Library: von wpUXsolutions – 2.8.2
    Medien-Assistent: von David Lingren – 2.94
    Post Duplicator: von Metaphor Creations – 2.22
    PW WooCommerce Gift Cards: von Pimwick
    LLC – 1.170

    Regenerate Thumbnails: von Alex Mills (Viper007Bond) – 3.1.4
    Relevanssi: von Mikko Saari – 4.10.2
    Search & Filter Pro: von Code Amp – 2.5.3
    Advanced Editor Tools (previously TinyMCE Advanced): von Automattic – 5.6.0
    UpdraftPlus – Sichern/Wiederherstellen: von UpdraftPlus.Com
    DavidAnderson – 1.16.46

    WooCommerce PayPal Checkout Gateway: von WooCommerce – 2.1.1
    Germanized für WooCommerce: von vendidero – 3.3.5
    WooCommerce: von Automattic – 4.9.2
    WP Featherlight: von Cipher – 1.3.4
    WP-PageNavi: von Lester ‘GaMerZ’ Chan – 2.93.3
    WP Statistics: von VeronaLabs – 13.0.5

    ### Inactive Plugins (10) ###

    Advanced Custom Fields Multilingual: von OnTheGoSystems – 1.6.1
    Authenticator: von Inpsyde GmbH – 1.3.0
    Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported): von codemenschen – 4.1.0
    Hello Dolly: von Matt Mullenweg – 1.7.2
    Post Thumbnail Editor: von sewpafly – 2.4.8
    Responsive Lightbox & Gallery: von dFactory – 2.3.1
    WPML Media: von OnTheGoSystems – 2.5.5
    WPML Multilingual CMS: von OnTheGoSystems – 4.3.11
    WPML String Translation: von OnTheGoSystems – 3.0.8
    WPML Translation Management: von OnTheGoSystems – 2.9.5

    Plugin Author pimwick

    (@pimwick)

    We need to find the culprit, so can you temporarily disable the following plugins one-by-one and try adding the gift card amount? Once you find the culprit we will dig in further on the plugin to see if we can fix the issue:

    • Germanized für WooCommerce
    • Custom Post Type UI
    • Advanced Custom Fields PRO
    Thread Starter sebastian1234

    (@sebastian1234)

    Ok I disabled all the plugins, but it still not work. 🙁

    Then in a another test system where I use the same Theme and were also the issue occurs. I updated everything and I change the Theme to 2021 and I disable all plugins except of woocommerce and pw woocommerce gift cards. But it still not work. Very strange, how could that be?

    Plugin Author pimwick

    (@pimwick)

    There may be an exception occurring on the server. We need to examine the log file from the server to find out more.

    Could you perform the following steps please:

    1. Log into your FTP site and edit wp-config.php
    2. Set the following values (add the lines if they don’t exist):

        define( 'WP_DEBUG', true );
        define( 'WP_DEBUG_LOG', true );
        define( 'WP_DEBUG_DISPLAY', false );
        @ini_set( 'display_errors', 0 );

    3. Return to the site and trigger the error again.
    4. Now go back to FTP and send me the file /wp-content/debug.log
    5. Return to wp-config.php and set DEBUG back to false (reverting the changes made in Step 2)

    If you aren’t comfortable with performing the steps above, contact your website host and they will be able to assist you in locating this log file.

    Thread Starter sebastian1234

    (@sebastian1234)

    I’ve done the steps but I think the error not appear in the file. I tried it many times but just this two steps appear:

    [09-Feb-2021 08:56:01 UTC] PHP Warning: Use of undefined constant php – assumed ‘php’ (this will throw an Error in a future version of PHP) in /mnt/web521/e0/14/510723214/htdocs/human-inkstinct/wp-content/themes/human-inkstinct/footer.php on line 117
    [09-Feb-2021 08:56:06 UTC] PHP Warning: Use of undefined constant php – assumed ‘php’ (this will throw an Error in a future version of PHP) in /mnt/web521/e0/14/510723214/htdocs/human-inkstinct/wp-content/themes/human-inkstinct/footer.php on line 117

    I think this has nothing to do with the problem. It was just commented out code. I deleted it, but nothing changed.

    Thank you for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Variant could not be created.’ is closed to new replies.