Craft Posted December 19, 2019 Share Posted December 19, 2019 I would like to add WordPress Header in WHMCS Client Area, so I tried the following code at header.tpl but I receive error {php} define('WP_USE_THEMES', false); require('MyDomainPath/wp-load.php'); get_header(); {/php} I think there is something missing..! 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 19, 2019 Share Posted December 19, 2019 Did you enable the use of PHP tags (which is not generally a good idea) in the settings of WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
Craft Posted December 20, 2019 Author Share Posted December 20, 2019 27 minutes ago, bear said: Did you enable the use of PHP tags (which is not generally a good idea) in the settings of WHMCS? Yea sure.. Kindly check the attached screenshot of the error 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 20, 2019 Share Posted December 20, 2019 That doesn't help determine what went wrong. Perhaps you should temporarily (just long enough to get the result) enable error reporting and load the page? 0 Quote Link to comment Share on other sites More sharing options...
Craft Posted December 21, 2019 Author Share Posted December 21, 2019 (edited) On 12/20/2019 at 3:16 AM, bear said: That doesn't help determine what went wrong. Perhaps you should temporarily (just long enough to get the result) enable error reporting and load the page? I think there was something wrong at my path so I changed it with the full website URL, and I receive this page Edited December 21, 2019 by Craft 0 Quote Link to comment Share on other sites More sharing options...
Craft Posted December 23, 2019 Author Share Posted December 23, 2019 @bear any update? :) 0 Quote Link to comment Share on other sites More sharing options...
Craft Posted December 25, 2019 Author Share Posted December 25, 2019 I would like to add WordPress Header in WHMCS Client Area, so I tried the following code at header.tpl but I receive error {php} define('WP_USE_THEMES', false); require('MyDomainPath/wp-load.php'); get_header(); {/php} Note: Smarty PHP Tags is enabled. Any suggestions? 0 Quote Link to comment Share on other sites More sharing options...
Craft Posted December 28, 2019 Author Share Posted December 28, 2019 @brian! hey bro .. any help here? :) 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.