Skip to content

Unable to retrieve current server name #19

@hammedsadeghi

Description

@hammedsadeghi

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();
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions