Keethu Posted December 17, 2019 Share Posted December 17, 2019 Hi, Actually I am working on text annotation tool, for this I have downloaded from github (https://github.com/ag-sc/SANTO), after ran the code I am getting error while uploading file into tool like Warning*: array_combine(): Both parameters should have an equal number of elements in *C:\xampp\htdocs\SANTO\blocks\importpub.ui.inc.php* on line *141* *Fatal error*: Uncaught mysqli_sql_exception: Column 'Text' cannot be null in C:\xampp\htdocs\SANTO\blocks\importpub.ui.inc.php:145 Stack trace: #0 C:\xampp\htdocs\SANTO\blocks\importpub.ui.inc.php(145): mysqli_stmt->execute() #1 C:\xampp\htdocs\SANTO\index2.php(36): include('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\SANTO\index2.php(54): action_include('importpub.ui') #3 {main} thrown in *C:\xampp\htdocs\SANTO\blocks\importpub.ui.inc.php* on line *145* Please can anyone please help me how to fix this issue, actually they have given readme file I didn't get the solution. Thank you in advance. Quote Link to comment https://forums.phpfreaks.com/topic/309696-warning-array_combine-both-parameters-should-have-an-equal-number-of-elements/ Share on other sites More sharing options...
Barand Posted December 17, 2019 Share Posted December 17, 2019 1. array_combine(), as it says on the tin, combines two arrays. These arrays must be of equal length. Yours are not. 2. Sounds like you are attempting to insert a record but not providing the data for a required field (column 'Text'). You need to either provide a value alter the table to define a default value 3. RTFM Quote Link to comment https://forums.phpfreaks.com/topic/309696-warning-array_combine-both-parameters-should-have-an-equal-number-of-elements/#findComment-1572575 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.