Question: Problem Product Has Multiple Variants

Problem Product Has Multiple Variants

Add Product > When I add some product without using the multiple variants field then Product add But when I Use the multiple variants field then do not add product with show error. Bellow th

PA

Parvez Ahmed

Asked
Add Product > When I add some product without using the multiple variants field then Product add But when I Use the multiple variants field then do not add product with show error. Bellow the Screen short
  • MS

    Mian Saleem

    Answered
    Hello,

    Please check your server error logs for 500 error details and let me know 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 `app/config/config.php` and then try again to produce errors. Lastly check the latest log file in `app/logs/` folder.

    Thank you
  • PA

    Parvez Ahmed

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

    ERROR - 2022-07-29 12:21:04 --> Severity: Warning --> Undefined property: Main::$shop_settings C:\xampp\htdocs\pos\app\core\MY_Shop_Controller.php 93
    ERROR - 2022-07-29 12:21:04 --> Severity: Warning --> Attempt to read property "warehouse" on null C:\xampp\htdocs\pos\app\core\MY_Shop_Controller.php 93
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "username"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "password"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "first_name"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "last_name"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "username"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "email"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "phone"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "company"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "gender"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "password"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "confirm_password"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "first_name"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "last_name"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "username"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "email"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "phone"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "company"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "gender"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "product_code"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "product_name"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "cname"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "barcode_symbology"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "product_unit"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "product_price"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "contact_person"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "company"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "email_address"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "address"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "city"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "phone"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "first_name"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "last_name"
    ERROR - 2022-07-29 12:21:04 --> Could not find the language line "email"
    ERROR - 2022-07-29 12:21:04 --> Severity: Warning --> Undefined property: stdClass::$user_language C:\xampp\htdocs\pos\app\controllers\Main.php 16
    ERROR - 2022-07-29 12:22:03 --> Severity: Warning --> Undefined array key "attr_name" C:\xampp\htdocs\pos\app\controllers\admin\Products.php 122
    ERROR - 2022-07-29 12:22:03 --> Severity: error --> Exception: sizeof(): Argument #1 ($value) must be of type Countable|array, null given C:\xampp\htdocs\pos\app\controllers\admin\Products.php 122
    ERROR - 2022-07-29 12:25:01 --> Severity: Warning --> Undefined array key "attr_name" C:\xampp\htdocs\pos\app\controllers\admin\Products.php 122
    ERROR - 2022-07-29 12:25:01 --> Severity: error --> Exception: sizeof(): Argument #1 ($value) must be of type Countable|array, null given C:\xampp\htdocs\pos\app\controllers\admin\Products.php 122
  • MS

    Mian Saleem

    Answered
    Hello,

    What version are you using? Can you try this on live demo and let me know the result.

    Thank you
  • Login to Reply