In my template file I want to include a library. I uploaded the library into my theme folder, and inside my theme folder is my custom template file. In my custom template file I have require 'OAuth2/Client.php'; but when I load a page that uses the template, it tells me Warning: require(OAuth2/Client.php): failed to open stream: No such file or directory in /home/healthf0/public_html/wp-content/themes/healthfitcorpwell/single-iframe.php on line 4
Obviously the file does exist, I can see it sitting there via FTP. Why is it telling me this?

Read more here: Can I use require() function in a template file?


Solution:

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


Wordpress related questions and answers: