Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve current server name #19

Open
hammedsadeghi opened this issue Dec 2, 2024 · 0 comments
Open

Unable to retrieve current server name #19

hammedsadeghi opened this issue Dec 2, 2024 · 0 comments

Comments

@hammedsadeghi
Copy link

Hi
I want to use WHMCS hooks in my cron in module that i wrote but i get this error on Hook request?
{"result":"error","message":"Unable to retrieve current server name. Please check PHP/vhost configuration and ensure SERVER_NAME is displaying appropriately via PHP Info."}
can you guide me?
i have writen a this hook for run my cronjob on whmcs cronjob task
add_hook('PostAutomationTask', 1, function($task, $completed) {
require_once(DIR.'/include/XXX.php');
XXX();
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant