• Resolved emmathalen

    (@emmathalen)


    Hi!

    One of our clients are using your plugin (and we are very happy with it overall) but after the latest update we get this fatal error when saving new changes in the Weglot plugin:
    Uncaught Error: Cannot use a scalar value as an array in /home/alronse/public_html/app/plugins/weglot/src/actions/admin/class-options-weglot.php:130

    We are using version?4.2.5
    The plugin still works as expected but this bug should be fixed since our client get notified that their websites goes down every time we update something in the plugin.

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

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

    (@glx77)

    Hi @emmathalen,

    hope you’re fine. I’m glad to hear that your enjoy our plugin and sorry for the issue you’re facing with your client. Can you confirm that with the version 4.2.4 you don’t have the issue and can you try with this version of the plugin : https://we.tl/t-f9zF8rL7EQ ?

    The code concern by the issue is this one :
    if ( ! empty( $options_menu ) ) {
    foreach ( $options_menu as $key => $menu ) {
    if ( $options[‘custom_settings’][‘button_style’][‘is_dropdown’] ) {
    $options_menu[ $key ][‘dropdown’] = 1;
    } else {
    $options_menu[ $key ][‘dropdown’] = 0;
    }
    }
    }

    I’ve put a fix but it’s weird cause this part of code we change in the last version.

    Keep me in touch ??

    Thread Starter emmathalen

    (@emmathalen)

    Thank you!
    I did try the version you sent but I’m still getting the same error. Unfortunately I don’t know what version we were on before updating to 4.2.5 so I cant confirm that 4.2.4 was working…

    But never the less still getting the same issue ??

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @emmathalen,

    can you contact [email protected]? I think I need more access to make some test and we can’t share it here ^^. I’ll share the answer here when we find the solution when i’ll find the solution.

    Regards

    PS : you can mention me on your message and join the issue of this post

    Regards

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    hi @emmathalen,

    do you still facing your issue ?

    Thread Starter emmathalen

    (@emmathalen)

    Yes I still have the issue, but I have reached out to [email protected] and receiving help there now!

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @emmathalen,

    do you still facing your issue ?

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error from class-options-weglot.php’ is closed to new replies.