So I have this PHP file which has an Ajax call of a file called, let’s say test.php. This test.php requires two files, this is how they’re called:


So, if I remove the second line of code, it works just fine, but as soon as I add that second line it no longer works, the Network tab in console gives me 404.

The wordpress file and the folder1 are in the same directory.

Read more here: 404 file not found when requiring PHP file


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: