• Resolved Krammig

    (@krammig)


    Hello,

    I have just disabled all plugins on a working site and now see the following error / warning

    Constant REQUEST_URI – assumed ‘REQUEST_URI’ in C:\Inetpub\vhosts\…………………\functions.php on line 73

    Perhaps ….

    $path = $_SERVER[‘HTTP_HOST’] . $_SERVER[REQUEST_URI];
    to
    $path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
Viewing 6 replies - 1 through 6 (of 6 total)
  • Your suggesting is correct. Have you tried applying it?

    Thread Starter Krammig

    (@krammig)

    I have thanks Jacob, it did the trick.

    Just wondering if WordPress needs to make that change in the core code ?

    Anyway thanks for the comment.

    Cheers

    @krammig I can’t find that line of code in the latest version of WordPress. What was the full path to the file with the problem? Was it a theme or plugin? What version of WordPress are you running?

    Thread Starter Krammig

    (@krammig)

    My humble apologies Jacob.

    On checking it is actually in the functions.php of a Theme called Revo that I am using, not in WordPress at all. Sorry about that.

    In any event to answer your question – WordPress 4.9.8 running Revo 2.3.1 theme.

    Cheers

    Ok. So this is something Revo’s developers would need to fix. I recommend letting its developers know about the issue, so that your fix isn’t erased if the theme receives an update without this fix included.

    Thread Starter Krammig

    (@krammig)

    Thanks Jacob

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘functions.php Error REQUEST_URI’ is closed to new replies.