this is very true, however i meant temporary, just for 1 minute so she can see the code… is not a big harm, after all, as you can see, it is an empty site… ??
this is how i fix a similar bug on one of my websites too just a week ago:
i suddenly had a blank home page (and wp-admin page too!) with an HTTP ERROR 500… so, i ask the hosting team what is going one and they told me to delete the worldfence folder and then install it again!
…and i said, why on earth i should do such thing?
so, i activate the display errors just for 30 seconds, and i see the message:
Fatal error: Uncaught Error: Failed opening required '/home/u662469818/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/parser/lexer.php' (include_path='.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u662469818/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/init.php:30 Stack trace: #0 /home/u662469818/public_html/wp-content/plugins/wordfence/waf/bootstrap.php(31): require_once() #1 /home/u662469818/public_html/wordfence-waf.php(6): include_once('/home/u66246981...') #2 {main} thrown in /home/u662469818/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/init.php on line 30
so, by simple logic, i check the folder and i saw that lexer.php was missing!
then, i simply download manually the worldfence.zip, extract it on my PC, and then just upload the lexer.php in the right directory
Problem solved, site was instantly back, no need to wait for supposed tech advice, which was totally destructive! (they couldn’t even tell me for sure what will happened with the 2 factor authentication, if i delete the folder!)