My Calories Calculator Plugin Shows Fatal Error During CSV Import

  • Unknown's avatar

    Hi everyone,

    I’m facing an issue while importing a CSV file using my custom WordPress plugin. As soon as I upload the CSV, I receive the following fatal error:

    Fatal error: Uncaught TypeError: mysqli_stmt::bind_param(): Argument #2 must be passed by reference, value given
    Stack trace:
    #0 /wp-content/plugins/menu-calorie-calculator/includes/database.php(83): mysqli_stmt->bind_param()
    #1 /wp-content/plugins/menu-calorie-calculator/admin/import-csv.php(65): mcc_insert_item()
    ...

    The error points to includes/database.php on line 83, where bind_param() is being called.

    Has anyone experienced this issue before? Could it be because array values are being passed directly to bind_param() instead of variables, or is there another possible cause? I’d appreciate any suggestions or examples of the correct implementation.

    For reference, this issue is occurring on my website (https://whataburgarmenu.com/) while importing menu data via CSV:

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    We can’t help as that site isn’t running on the wordpress.com platform nor can we help with third party plugins.

    You must contact of that plugin.

Log in or create an account to reply