mmkapper Posted June 22, 2017 Share Posted June 22, 2017 Hi, probably its a php scope problem of a kind, i haven't encountered yet. so help needed. i reduces my files to the absolute minimum. create_customer.php ... is the whmcs hook file for "ClientAdd". WaWiApi.php ... contains the class wawi (in this test only the constructor) wawidefintions.php .. contains settings for this Api when calling from command line, with WHMCS stuff in comments and the function called seperately it works php5 create_customer.php in construct - mydatabases string(4) "test" in log_client_add - mydatabases string(4) "test" when undoing the commments for WHMCS Stuff and commenting out my function call, the hook is active. creating a user in whmcs let the hook being called but $mydatabases does not get any information the output is: in construct - mydatabases NULL in log_client_add - mydatabases NULL end log client any ideas? thx Michael create_customer.php.txt WaWiApi.php.txt wawidefinitions.php.txt 0 Quote Link to comment Share on other sites More sharing options...
mmkapper Posted July 4, 2017 Author Share Posted July 4, 2017 hi, solution was -> using php "constants" instead of "global variables". Michael 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.