Question: Loading Data From Server

Loading Data From Server

Displayed "Loading data from server" only and did not show any data even there are data in my database. what to do next. How can i fix it?

MS

Manish Shrestha

Asked
Displayed "Loading data from server" only and did not show any data even there are data in my database. what to do next. How can i fix it?
  • MS

    Mian Saleem

    Answered
    Hello,

    Please check your server php error logs and let me know the error details so that I can suggest.

    If you are not sure about server error logs, you can enable app logs by changing the `log_threshold` to 1 in the `app/config/config.php` folder and then try to import again to produce errors. Lastly check the latest error logs in the `app/logs/` folder.

    Thank you
  • MS

    Manish Shrestha

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

    ERROR - 2022-10-11 13:10:35 --> Severity: Warning --> Undefined property: Main::$shop_settings /home/maneestha/web/stockmanagement.xyz/public_html/app/core/MY_Shop_Controller.php 93
    ERROR - 2022-10-11 13:10:35 --> Severity: Warning --> Attempt to read property "warehouse" on null /home/maneestha/web/stockmanagement.xyz/public_html/app/core/MY_Shop_Controller.php 93
    ERROR - 2022-10-11 13:10:49 --> Severity: Warning --> foreach() argument must be of type array|object, bool given /home/maneestha/web/stockmanagement.xyz/public_html/themes/default/admin/views/products/add.php 133
    ERROR - 2022-10-11 13:11:27 --> Severity: Warning --> Undefined array key "combo_item_code" /home/maneestha/web/stockmanagement.xyz/public_html/app/controllers/admin/Products.php 148
    ERROR - 2022-10-11 13:11:27 --> Severity: error --> Exception: sizeof(): Argument #1 ($value) must be of type Countable|array, null given /home/maneestha/web/stockmanagement.xyz/public_html/app/controllers/admin/Products.php 148
    ERROR - 2022-10-11 13:11:34 --> Severity: Warning --> Undefined array key "combo_item_code" /home/maneestha/web/stockmanagement.xyz/public_html/app/controllers/admin/Products.php 148
    ERROR - 2022-10-11 13:11:34 --> Severity: error --> Exception: sizeof(): Argument #1 ($value) must be of type Countable|array, null given /home/maneestha/web/stockmanagement.xyz/public_html/app/controllers/admin/Products.php 148
  • MS

    Mian Saleem

    Answered
    Hello,

    I am not sure why you settings this error. Please try to change the line 148 from `$c = sizeof($_POST['combo_item_code']) - 1;` to `$c = sizeof($_POST['combo_item_code'] ?? []) - 1;` Let me know the result. If still same, please reply in private with your server and site details.

    Thank you
  • Login to Reply