And then there was one les Posted May 4, 2013 Share Posted May 4, 2013 (edited) <br /> <b>Fatal error</b>: Call to private method WHMCS_License::decodeLocal() from context '' in <b>/home/user/whmcs/crons/domainsync.php</b> on line <b>0</b><br /> Further more, the configuration file for this. why is there one there? there should be no need to supply the path to the file, the file is being called itself from a cron job. The file can find its own location with the php realpath() function. Edited May 4, 2013 by CDJ Hosting 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted May 5, 2013 Author Share Posted May 5, 2013 I have further noted that this is using almost all of my CPU 95.1% to be exact. 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted May 6, 2013 Share Posted May 6, 2013 The config file is used when you put the file outside the public directory for security purposes. 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted May 7, 2013 Author Share Posted May 7, 2013 The config file is used when you put the file outside the public directory for security purposes. I have looked into it and i should have edited the post, in any case i believe you are correct it is to securely use the realpath() function as using "./" or some other relative path might allow for an insecurity. However, if the file is outside the web path as mine is, there should be no need for it to be there as it is inaccessible without direct server access and knowledge of its location. 0 Quote Link to comment Share on other sites More sharing options...
alinford Posted May 7, 2013 Share Posted May 7, 2013 If it is outside the publicly accessible folders, then you need to tell the Cron where the WHMCS install is. 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted May 8, 2013 Author Share Posted May 8, 2013 I think that is something entirely different to what is going on in my bug report. The config file is no issue really, it was just a side comment as i didnt think there was a good reason for it. As far as the bug report, this worked perfectly well in version 5.1.3 when i relocated it (per whmcs documentation) to its current position, i have ammended the config file as the new one overwrote the old one silly me i missed it, but its only one line in it anyway so it was no big deal. Anyway, the cron job works or at least it would if i wasnt getting a fatal error from the private class method thats being called from wrong place. I wish it was an open file i could have had this fixed in a matter of moments and released it. I hate waiting like this for a fix that would take seconds. 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.