Title: functions.php Error REQUEST_URI
Last modified: November 5, 2018

---

# functions.php Error REQUEST_URI

 *  Resolved [Krammig](https://wordpress.org/support/users/krammig/)
 * (@krammig)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/functions-php-error-request_uri/)
 * 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)

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/functions-php-error-request_uri/#post-10847625)
 * Your suggesting is correct. Have you tried applying it?
 *  Thread Starter [Krammig](https://wordpress.org/support/users/krammig/)
 * (@krammig)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/functions-php-error-request_uri/#post-10847640)
 * 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
 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/functions-php-error-request_uri/#post-10849543)
 * [@krammig](https://wordpress.org/support/users/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](https://wordpress.org/support/users/krammig/)
 * (@krammig)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/functions-php-error-request_uri/#post-10851019)
 * 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
 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/functions-php-error-request_uri/#post-10851374)
 * 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](https://wordpress.org/support/users/krammig/)
 * (@krammig)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/functions-php-error-request_uri/#post-10915584)
 * Thanks Jacob

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

The topic ‘functions.php Error REQUEST_URI’ is closed to new replies.

## Tags

 * [REQUEST_URI](https://wordpress.org/support/topic-tag/request_uri/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [Krammig](https://wordpress.org/support/users/krammig/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/functions-php-error-request_uri/#post-10915584)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
