It looks as though WP_DIR
is being interpreted as a string. Is that constant defined anywhere before this code is being run?
My guess is that it is not as PHP will assume it’s a string and that is why the location is WP_DIRwp-blog-header.php
and not an actual file path.
Hope this helps!