Jump to content

Need a hand


hubdohmen

Recommended Posts

Hi!

 

When upgrading to WHMCS 5.1.2. I discovered a problem. The db-connection in third party addons, like mine, halted. So Matt advised me to do something like this:

 

require(ROOTDIR.'/configuration.php');

 

That did the trick, but I encountered a new problem.

 

Warning: include(templates_c//%%03^035^0357BA4F%%header.tpl.php) [function.include0]: failed to open stream: No such file or directory in /dir/includes/smarty/Smarty.class.php on line 1258

 

Warning: include() [function.include0]: Failed opening 'templates_c//%%03^035^0357BA4F%%header.tpl.php' for inclusion (include_path='/opt/share/pear') in /dir/includes/smarty/Smarty.class.php on line 1258

 

So I googled and discovered that the require statement kills the php-path.

 

After I added

 

php_value include_path ".:/path-to-whmcs-install

 

to the .htaccess file, it started working again.

 

This all happened on WHMCS 5.1.2. But it gives the same error on older versions, like 5.0.3.

 

Can anybody help me to solve this? This happens with several third party addons. Local and remote.

 

I do not mind to add the extra line in .htaccess, but this error should now happen.

 

Cheers,

Hub

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