• Resolved jyanez95

    (@jyanez95)


    Hello,
    I get an error in the Woocoommerce confirmation mails and in the mail appears a line indicating that they come from Weglot:

    Notice: Undefined index: custom_local_name in?/public_html/wp-content/plugins/weglot/src/models/class-schema-option-v3.php?on line?39

    Image attach: https://ibb.co/Kj17VHp

    Please, can you check it or tell me what I have to do to fix it?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @jyanez95 , hope you’re fine ?
    Sorry for the issue you’re facing. For the moment can you make this update on file wp-content/plugins/weglot/src/models/class-schema-option-v3.php line
    replace

    $destinations[] = array(
    							'language_to'       => $item['language_to'],
    							'custom_code'       => $item['custom_code'],
    							'custom_name'       => $item['custom_name'],
    							'custom_local_name' => $item['custom_local_name'],
    							'public'            => $item['enabled'],
    						);

    by

    if(!isset($item['custom_local_name'])){
    							$item['custom_local_name'] = '';
    						}
    						$destinations[] = array(
    							'language_to'       => $item['language_to'],
    							'custom_code'       => $item['custom_code'],
    							'custom_name'       => $item['custom_name'],
    							'custom_local_name' => $item['custom_local_name'],
    							'public'            => $item['enabled'],
    						);

    Can you reach your issue to our support ([email protected]) and mention me, i want to take a look to find the reason of the issue

    Regards

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    hi @jyanez95 ,
    hope you’re fine ? Here you can find a patch version of the plugin prevent the issue : https://we.tl/t-N12jHU2g0V

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error Woocommerce mail weglot’ is closed to new replies.