Question: Cron Job After Update

Cron Job After Update

After i updated to version 3.4.41 i cant use the cron job. When i trie to run it, it redirect me to the blank page with error 500

EH

Einnlleinhatt Ha

Asked
After i updated to version 3.4.41 i cant use the cron job. When i trie to run it, it redirect me to the blank page with error 500
  • EG

    Enyinnaya Gift

    Answered
    Can you show a sample of the last error log file, just after you try running the cron job.

    You can access the log via `\app\logs` folder
  • EH

    Einnlleinhatt Ha

    Answered
    **[Enyinnaya Gift](/u/giftedhands4real)** I got this error.

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

    ERROR - 2020-11-10 16:08:50 --> Could not find the language line "cancelled"

    ERROR - 2020-11-10 16:08:50 --> Could not find the language line "cancelled"

    ERROR - 2020-11-10 16:08:54 --> Severity: Error --> Allowed memory size of 536870912 bytes exhausted (tried to allocate 88080640 bytes) C:\laragon\www\store\system\database\drivers\mysqli\mysqli_utility.php 196"
  • EG

    Enyinnaya Gift

    Answered
    **[Einnlleinhatt Ha](/u/einnlleinhatt)** You will need to increase your server php `memory_limit` size.

    That can be found in your Server `php.ini` file or php configuration if you're using cpanel.
  • EH

    Einnlleinhatt Ha

    Answered
    **[Enyinnaya Gift](/u/giftedhands4real)** Should i ignore the language thing ? I have checked the php.ini file and look up for the memory_limit size is 512mb. Should i increase it to 1024mb ?
  • EG

    Enyinnaya Gift

    Answered
    **[Einnlleinhatt Ha](/u/einnlleinhatt)** The language error is not a show stopper, you can resolve that by following the instances of the language lines in `sma_lang` file in `app\language\english\sma_lang.php` to add `cancelled` after the last line.

    512mb is not bad, can you share a screenshot of the your php configuration.

    You can also try increasing it to see if it solves the problem.
  • EH

    Einnlleinhatt Ha

    Answered
    **[Enyinnaya Gift](/u/giftedhands4real)** I increase it to 1024 and it fixed.
  • EG

    Enyinnaya Gift

    Answered
    **[Einnlleinhatt Ha](/u/einnlleinhatt)** Alright.

    Just in case you need any modifications on the system.

    You can reach me via `[email protected]`.

    I am an **independent developer** that knows the system well.
  • MS

    Mian Saleem

    Answered
    **[Enyinnaya Gift](/u/giftedhands4real)** Do you have big database? The 512mb should be enough :(
  • EH

    Einnlleinhatt Ha

    Answered
    **[Mian Saleem](/u/saleem)** Im not sure it can be considered as a big database but we have been running using this system for about maybe 6 months.
  • MS

    Mian Saleem

    Answered
    **[Einnlleinhatt Ha](/u/einnlleinhatt)** Can you check the total records in the `sma_products`, `sma_sales`, `sma_sale_items`, `sma_purchases` & `sma_purchase_items` tables?
  • Login to Reply