Jump to content

about {php} in templates


amol.karande

Recommended Posts

I am trying to add some functionality for that I want to include() my .php to .tpl but am getting warnig as URL file-access is disabled in the server configuration

failed to open stream: no suitable wrapper could be found

 

so what should I do to anable this include() function in .tpl

 

Thank you

Link to comment
Share on other sites

That was nothing to do with the .tpl file. Your server configuration has URL file-access disabled, like it says in the WARNING message that you received. That should have been a huge indication for you right there.

 

Create a php.ini file in the directory for whmcs with:

allow_url_fopen On

allow_url_include On

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated