Cron Job Issue In Hostinger

0

Screenshot : https://ibb.co/v4PWSmhT

i have set this cron job for version 3.7.2 in hostinger but cron out put is blank if i check though cron url link its throwing error 500 and invoice overdue etc not fuctioning automatically due to this kindly help

Question Unresolved For: Simple Invoice Manager - Invoicing Made Easy 0 Votes 13 Answers 76 Views
Asked by SAGAR KUMAR SAHU 2 weeks ago

0

Answered by Mian Saleem 2 weeks ago

Hello,

Please check your php error logs and let me know the error details.

If you are not sure abjure server error logs, you can try enable app log by changing the log_threshold to 1 in the app/config/config.php file and then try to access the url again. Lastly check the latest log file in the app/logs/ folder.

Please start using v4 as there won't be any more updated for v3.

Thank you

0

Answered by SAGAR KUMAR SAHU 2 weeks ago

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2025-02-08 18:09:50 --> Severity: Warning --> Undefined variable $cc /home/u725281135/domains/innoveil.com/public_html/bills.innoveil.com/app/controllers/Cron.php 96
ERROR - 2025-02-08 18:09:50 --> Severity: Warning --> Undefined variable $bcc /home/u725281135/domains/innoveil.com/public_html/bills.innoveil.com/app/controllers/Cron.php 96
ERROR - 2025-02-08 18:09:50 --> Severity: error --> Exception: No block-level parent found. Not good. /home/u725281135/domains/innoveil.com/public_html/bills.innoveil.com/vendor/dompdf/dompdf/src/Positioner/Inline.php 44
ERROR - 2025-02-08 18:09:50 --> 404 Page Not Found: Robotstxt/index

this is the error i got

0

Answered by SAGAR KUMAR SAHU 2 weeks ago

i followed your suggestion still if i run link : https://bills.innoveil.com/cron/run, i am getting error 500

0

Answered by SAGAR KUMAR SAHU 1 week ago

Mian Saleem Please help

0

Answered by Mian Saleem 1 week ago

Hello,

Please edit app/controllers/Cron.php and remove , $cc, $bcc from line no 170 so the line

if ($this->sim->send_email($to, $subject, $message, null, null, $attachment, $cc, $bcc)) {

will be

if ($this->sim->send_email($to, $subject, $message, null, null, $attachment)) {

After this try again. Thanks

0

Answered by SAGAR KUMAR SAHU 1 week ago

Mian Saleem tried still gettting error , cron job showing error 500 and this error coming

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2025-02-11 01:10:21 --> Severity: error --> Exception: No block-level parent found. Not good. /home/u725281135/domains/innoveil.com/public_html/bills.innoveil.com/vendor/dompdf/dompdf/src/Positioner/Inline.php 44
ERROR - 2025-02-11 01:10:22 --> 404 Page Not Found: Robotstxt/index

note if i run cron from hostinger it appears blank and if i run cron from link i am getting 500 error page error log capture upper error

0

Answered by Mian Saleem 1 week ago

Hello,

The error is from dompdf what's your php version? V3 can only be used with php7.4 or php8.0

Thank you

0

Answered by SAGAR KUMAR SAHU 1 week ago

Mian Saleem all cron things are running fine previosuly but few days ago only problem arise , and currently script runninng in 7.4 but still getting same error log and cron throwing error 500

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2025-02-11 19:07:17 --> Severity: error --> Exception: No block-level parent found. Not good. /home/u725281135/domains/innoveil.com/public_html/bills.innoveil.com/vendor/dompdf/dompdf/src/Positioner/Inline.php 44
ERROR - 2025-02-11 19:07:17 --> 404 Page Not Found: Robotstxt/index
ERROR - 2025-02-11 19:07:19 --> Severity: error --> Exception: No block-level parent found. Not good. /home/u725281135/domains/innoveil.com/public_html/bills.innoveil.com/vendor/dompdf/dompdf/src/Positioner/Inline.php 44
ERROR - 2025-02-11 19:07:19 --> 404 Page Not Found: Robotstxt/index

0

Answered by Mian Saleem 1 week ago

Hello,

If it was running fine there there might be some change on your server that caused this. Please check with your server admin if any thing changed or any versions updated.

I suggest, you start using the v4 as the v3 is no more supported and outdated/reached end of life.

Thank you

0

Answered by SAGAR KUMAR SAHU 4 days ago

As per your instructions i have installed the latest version 4, and here i am getting same issue cron job output is blank for that issue i have to manually need to click on generate invoices so recurring invoices are generating also after due date cross invoices should automatically goes to overdue section that is also not happening, please help , i trust you , please try to help

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.