• Resolved nataliog

    (@nataliog)


    Hi, I have installed weglot and in th dashboard sometimes I got a warning:

    Warning in src/Util/Server on line 107: Undefined array key "SERVER_PROTOCOL"

    If I hit ctrl-f5 the error dissapears, but some minutes later it start to show up again.

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

    (@glx77)

    Hi @nataliog ,

    hope you’re fine? Sorry for the issue you’re facing. WHen you say on the dashbord you mean dahboard.weglot.com or in wordpress admin ?

    Regards

    Thread Starter nataliog

    (@nataliog)

    Hi @glx77
    I mean the wordpress admin dashboard.

    Thank you.

    Thread Starter nataliog

    (@nataliog)

    We can’t use the plugin, as it constantly shows those alerts. Can you help me to debug it?
    Thanks.

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @nataliog ,

    we use the $_SERVERand it is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here. That said, a large number of these variables are accounted for in the » CGI/1.1 specification, so you should be able to expect those. (source : http://underpop.online.fr/p/php/en/reserved.variables.server.htm.gz)

    Can you make a test a check if you have access to the $_SERVER[‘SERVER_PROTOCOL’] on your web server.May on an test.php file ?

    Get me in touch and sorry for the issue you’re facing

    Regards

    Thread Starter nataliog

    (@nataliog)

    Hi @glx77 it seems these warnings are created by cron tasks. I run cron from CLI and it doesn’t have that variables.
    I will add a fix on my own right now, thanks for your support.

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @nataliog ,

    Awesome! I’m glad you’ve find a solution 😃

    If you appreciated my help and if you have 2 minutes to help me, it would be awesome if you could give us a review on WordPress
    —-> https://wordpress.org/support/plugin/weglot/reviews/
    It’s really useful for me 🤓

    And of course, if you need anything, don’t hesitate to ask me.

    Have a nice day,

    Regards,

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

The topic ‘Warning in src/Util/Server on line 107: Undefined array key “SERVER_PROTOCOL”’ is closed to new replies.