wordfence-waf.php error site not loading

Status
Not open for further replies.

vickersx

New Member
Messages
4
Reaction score
0
Points
1
Hi all,

I get this error having enabled PHP error messages:

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required '/home/myname/public_html/my.site.com/wordfence-waf.php' (include_path='.:/opt/alt/php73/usr/share/pear') in Unknown on line 0

I have researched this and the answer seems to be to disable references to wordfence-waf (.htaccess, .user.ini) and then delete wordfence-waf.php but this doesn't work. I suspect a reference in php.ini is stopping it from working? But how to edit that file?

Any help appreciated thanks.



 

Anna

I am just me
Staff member
Messages
11,768
Reaction score
590
Points
113
From what I can see it might be related to the fact that absolute paths have changed with directadmin, to get to public_html you would have to do:

/home/myname/domains/<domain_you_want_to_view>/public_html/

Also if my.site.com would be something you use as a referens for what was an addon domain in cpanel it would now have its own public_html:

/home/myname/domains/my.site.com/public_html/

So wherever that php file is called from may need to be updated with the correct absolute path. The second part is likely due to the server attempting to find it from default locations where it may not actually be present when not found on specified location.
 

vickersx

New Member
Messages
4
Reaction score
0
Points
1
I have spent a lot of time trying to fix this - given up and will remigrate from the site's old home.
 
Status
Not open for further replies.
Top