Question: The Script Installed On Server

The Script Installed On Server

I need your support to solve below issue DataTables warning: table id=prTables - Ajax error. For more information about this error, please see http://datatables.net/tn/7

A

Amad

Asked
I need your support to solve below issue

DataTables warning: table id=prTables - Ajax error. For more information about this error, please see http://datatables.net/tn/7
  • MS

    Mian Saleem

    Answered
    Hello,

    May I know on which page you are getting this error? You can check server error logs and let me know the error details so that I can suggest.

    Thank you
  • A

    Amad

    Answered
    its hosted on hostinger.com where shall I find the error logs please ?
  • MS

    Mian Saleem

    Answered
    Hello,

    I mean on which page of the Simple POS. You can check with your server admin for error log location.

    If you need, you can enable app logs by changing the `log_threshold` to 1 in `app/config/config.php` and the visit page again to produce error. Lastly check the latest log file in the `app/logs/` folder.

    Thank you
  • A

    Amad

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







    Please find below the error

    ERROR - 2021-07-07 23:20:34 --> Severity: Warning --> sizeof(): Parameter must be an array or an object that implements Countable /home/u985469793/domains/giftomarket.com/public_html/shohra/themes/default/views/dashboard.php 138
    ERROR - 2021-07-07 23:20:40 --> Severity: error --> Exception: Too few arguments to function Products::get_products(), 0 passed in /home/u985469793/domains/giftomarket.com/public_html/shohra/lib/core/CodeIgniter.php on line 532 and exactly 1 expected /home/u985469793/domains/giftomarket.com/public_html/shohra/app/controllers/Products.php 307
  • A

    Amad

    Answered
    ERROR - 2021-07-07 23:22:27 --> Severity: error --> Exception: Too few arguments to function Products::get_products(), 0 passed in /home/u985469793/domains/giftomarket.com/public_html/shohra/lib/core/CodeIgniter.php on line 532 and exactly 1 expected /home/u985469793/domains/giftomarket.com/public_html/shohra/app/controllers/Products.php 307
  • MS

    Mian Saleem

    Answered
    Hello,

    You can remove the themes/default/views/dashboard.php line 138. It should be commented already. This isn't the issue just a warning.

    `Too few arguments to function` is the cause but no idea why store id is not being passed. Please let me know your Simple POS version and your php version. If you can share the install url with admin login details so that I can have look.

    _You can add private reply by enableing the `PRIVATE for Staff only` at top right of reply section._

    Thank you
  • Login to Reply