• Resolved ustoopia

    (@ustoopia)


    Hi,
    I just wanted to let you know that with debug enabled I was receiving an error message for the Slanted theme. I fixed the issue myself by editing a line in functions.php and it no longer shows the error message for me. The error was:

    Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP) in /var/www/web33/web/wp-content/themes/slanted-master/functions.php on line 73

    So on line 73 in functions.php I changed the line mentioned in the error message to:

    $path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

    Regards,
    Andre

Viewing 15 replies - 16 through 30 (of 36 total)
  • Zulkar

    (@mdalaminsabbir)

    When I was paste this , $path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; in my end it shows another problem in function that is `Uncaught Error: syntax error, unexpected ‘elseif’ (T_ELSEIF) in G:\laragon\www\basic-skills\wp-content\themes\myshare\functions.php on line 112
    require_once()
    wp-config.php:97
    require_once()
    wp-load.php:37
    require_once()
    wp-admin/admin.php:34
    require_once()
    wp-admin/index.php:10
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Learn more about debugging in WordPress.` this. Please help me

    hello everybody
    I have same problem but not solved
    PHP Fatal error: Cannot redeclare Oo00OO() (previously declared in /home/../wp-load.php:17) in /home/../wp-load.php on line 18

    its gave me this message
    This page isn’t working is currently unable to handle this request.
    HTTP ERROR 500

    anyone can help me?

    Hi All & @ustoopia

    please help me, I cant access to the admin site the next web page:

    the owner send me the next link to try to access and upgrade the web page, but when try to access appear the next error (i already enable the cookies for this website):

    https://esperanzacommunitycenter.com/espc/

    Error:

    Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP) in /home/esperan5/public_html/wp-content/themes/astra/functions.php on line 73

    Powered by WordPress

    I await please your comments and suggestions.

    Thank you

    It worked for me. I added ” into $_SERVER[‘REQUEST_URI’] and no error php any more. I think that every theme wordpress template are this error.

    I am unable t login to wordpress as this kind of error message is suppressing login:

    Use of undefined constant PHD_CLIENT_IP – assumed ‘PHD_CLIENT_IP’

    How to make any changes?

    • This reply was modified 4 years, 9 months ago by mediasekhri.

    Can someone tell me which theme this is: maryannekennedy.ca ?

    Thank you!

    Can someone tell me which theme this is: maryannekennedy.ca ?

    Thank you!

    • This reply was modified 4 years, 8 months ago by jejacobs.

    It really works! Thank you very much!

    @ustoopia большой тебе человеческий Рахмат.
    Дай бог тебе здоровья и невесту богатую.

    Gracias, la solución presentada por ustoopia me ha ayudado.

    @ustoopia I know I’m 1 year and a few months late, but you solved my issue! I want to thank you

    The faulty code is part of the WP-VCD malware, and correcting the bug makes the website work again but also makes the malware work again.

    See this WordFence whitepaper for more information: https://www.wordfence.com/wp-content/uploads/2019/11/Wordfence-WP-VCD-Whitepaper.pdf

    The malware is bad, as it affects the users of the website and attempts to trick them into installing a malicious browser plugin.

    I wish this reply could go to the first page (perhaps the original poster, @ustoopia, could edit his original post to make people aware?) so people can see that while fixing the problem with the code makes the website work again, it also makes the malware live happily again, affecting all users of the infected websites.

    Thanks mate, i have also faced this problem but after applying your solution my problem is now solved.

    If anyone ends up at this page, FYI different theme but the answer was the PHP version was not compatible with the theme version. Go back a couple of versions with the PHP. Then update everything, your theme etc. Then return your PHP version to the latest version and voila, it all works.

Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’’ is closed to new replies.