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:

require('../folder1/folder2/header.php');
require('../wp-blog-header.php');

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


Solution:

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: