• support_home

    (@support_home)


    We are currently using version 4.6.3 together with WordPress 6.9. After the latest update we receive the following warning:
    Warning: Undefined array key 0 in ………/wp-content/plugins/gift-voucher/giftitems.php on line 190

    What can we do to resolve this issue? Please let us know.
    Thank you and best regards, Monika

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter support_home

    (@support_home)

    One more quick question: where can I translate the word “Quotes”? I cannot find it in Loco.

    Plugin Author Codemenschen

    (@codemenschen)

    Hi,

    To hide the Warning message, you just need to disable WordPress debug mode. This warning does not affect the plugin’s functionality.

    How to disable debug mode:

    1. Open the wp-config.php file in your website’s root directory.
    2. Find the line:
      define(‘WP_DEBUG’, true);
    3. Change it to:
      define(‘WP_DEBUG’, false);

    After saving, warning messages will no longer appear on your website. The plugin will continue to work normally.

    If you need further assistance, you can click the blue banner at the top of the plugin’s “Settings” page to access more information and support features from the developer.

    If you have any other questions, feel free to contact us!

    Thread Starter support_home

    (@support_home)

    It is disabled. This is exactly how it is defined: define(‘WP_DEBUG’, false);
    One more quick question: where can I translate the word “Quotes”? I cannot find it in Loco.

    Plugin Author Codemenschen

    (@codemenschen)

    Hi,

    1. Regarding the Warning message still displaying even though debug mode is off:
      – Please add the following lines to your wp-config.php file (right after the line define(‘WP_DEBUG’, false);):
      define(‘WP_DEBUG_DISPLAY’, false);
      define(‘WP_DEBUG_LOG’, true);
      – This will prevent Warning messages from appearing on your website—they will only be logged in the debug.log file.
    2. About translating the word “Quotes” with Loco Translate:
      You need to resync the language files so Loco Translate can detect new text strings. Please follow these steps:
      – Go to Loco Translate > Plugins > Gift Voucher > Sync with the gift-voucher.pot file to update all the latest text strings.
      – Then, select the language you want to translate (e.g., German), and click Sync again to scan for any missing strings.
      – Now, the word “Quotes” and other new texts will appear for you to translate.

    If you need further assistance, you can visit our support community at https://wp-sofa.chat for more help and resources.

    If you have any other questions, please feel free to contact us!

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

You must be logged in to reply to this topic.