LiveZilla Live Chat Software
RCM - Resellerclub Mods

Welcome, Guest

TOPIC: Problem in Cron Job

Problem in Cron Job 1 year 8 months ago #742

Hello,
I have created a file path.php
In the /home/whmcs/public_html/modules/addons/resellerclubmods_tools/cron/

And create cron job in cpanel : for Automated Domain Price Sync and Domain Transfer.

php -q /home/whmcs/public_html/modules/addons/resellerclubmods_tools/cron/resellerclubmods_dompricesync.php 123456

But when cron job is worked then I have received a mail with "you need to pass your id"

I would like to know that what is wrong.

With regards,
Anis
The administrator has disabled public write access.

Problem in Cron Job 1 year 7 months ago #744

  • Marco
  • Marco's Avatar
  • OFFLINE
  • Karma: 16
Hi,

The path.php file will not resolve your issue.

Your problem with the error message "you need to pass your id" is related to the php configuration. In order to pass variables using the CLI you need to set the php directive register_argc_argv to On in the php.ini file

Another solution will be using the GET Method instead of php -q (CLI) method.

Regards,
Marco
The administrator has disabled public write access.

Problem in Cron Job 1 year 4 months ago #769

Hi

I have tried the user.ini file register_argc_argv = On On with no luck

I can't use the GET either as it doesn't work as my domain is https -

error received LWP will support https URLs if the LWP::Protocol::https module
is installed.

any other suggestions you could think of.

thanks

glenn
The administrator has disabled public write access.

Problem in Cron Job 1 year 4 months ago #770

  • Marco
  • Marco's Avatar
  • OFFLINE
  • Karma: 16
Hi Glenn,

Open a support ticket and provide an URL to the PHP info or copy/paste the html code of the PHP Info output into a textfile and attach it to the ticket.
The administrator has disabled public write access.
Time to create page: 0.061 seconds

Latest Tweets

More Tweets from resmods

Latest News

We are ready for the next round ...

... and very proud to announce the immediate availability of all our modules for WHMCS 7.5.0 - RC 1 and backwards compatible till WHMCS 6.0.0!
Read more...

About Us

Who we are, what we do and everything else about Resellerclub Mods, a gIF Business Project: