0

I am running a scan for a site to be proposed to wp vip. The only error I am getting is :

Warning: Returns canonicalized absolute pathname header-payroll.php require_once realpath(dirname(FILE)). '/header.php';

What would be the fix for this. I believe I would need an alternative for "realpath"?

1

I don't know what "wp vip" wants or needs, but you should be loading files by means of get_template_part, locate_template, site_url, or home_url and I am guessing that using one or more of those is what the "scan" wants. It is hard to say exactly which since you posted only the error and not the source that goes with the error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.