View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011364 | mantisbt | installation | public | 2010-01-08 10:13 | 2012-01-08 11:40 |
Reporter | petrmatula | Assigned To | dhx | ||
Priority | high | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.1 | ||||
Target Version | 1.2.3 | Fixed in Version | 1.2.3 | ||
Summary | 0011364: on installl.php 1.2.0rc2 SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given | ||||
Description | on installl.php 1.2.0rc2 SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given | ||||
Additional Information | Installing Database CREATE TABLE mantis_config_table ( [..] ALTER TABLE mantis_bug_table ADD last_updated_int INTEGER UNSIGNED NOT NULL DEFAULT 1; date_migrate; SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given ALTER TABLE mantis_bug_table DROP COLUMN date_submitted; ALTER TABLE mantis_bug_table CHANGE COLUMN date_submitted_int date_submitted INTEGER UNSIGNED NOT NULL DEFAULT 1; ALTER TABLE mantis_bug_table DROP COLUMN due_date; ALTER TABLE mantis_bug_table CHANGE COLUMN due_date_int due_date INTEGER UNSIGNED NOT NULL DEFAULT 1; ALTER TABLE mantis_bug_table DROP COLUMN last_updated; ALTER TABLE mantis_bug_table CHANGE COLUMN last_updated_int last_updated INTEGER UNSIGNED NOT NULL DEFAULT 1; ALTER TABLE mantis_bugnote_table ADD last_modified_int INTEGER UNSIGNED NOT NULL DEFAULT 1; ALTER TABLE mantis_bugnote_table ADD date_submitted_int INTEGER UNSIGNED NOT NULL DEFAULT 1; date_migrate; SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given ALTER TABLE mantis_bugnote_table DROP COLUMN last_modified; ALTER TABLE mantis_bugnote_table CHANGE COLUMN last_modified_int last_modified INTEGER UNSIGNED NOT NULL DEFAULT 1; ALTER TABLE mantis_bugnote_table ADD INDEX idx_last_mod (last_modified); ALTER TABLE mantis_bugnote_table DROP COLUMN date_submitted; ALTER TABLE mantis_bugnote_table CHANGE COLUMN date_submitted_int date_submitted INTEGER UNSIGNED NOT NULL DEFAULT 1; ALTER TABLE mantis_bug_file_table ADD date_added_int INTEGER UNSIGNED NOT NULL DEFAULT 1; date_migrate; [THIS IS REPEATED SEVERAL TIMES] Your database has not been created yet. Please create the database, then install the tables and data using the information above before proceeding. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
has duplicate | 0011366 | closed | on installl 1.2.0rc2 SYSTEM WARNING: mysqli_real_escape_string() expects parameter 1 to be mysqli, boolean given | |
has duplicate | 0011367 | closed | on installl 1.2.0rc2 with mysqli database type SYSTEM WARNING: mysqli_real_escape_string() expects parameter 1 to be mysqli, | |
has duplicate | 0011368 | closed | on installl 1.2.0rc2 with mysqli database type SYSTEM WARNING: Invalid argument supplied for foreach() | |
has duplicate | 0011778 | closed | atrol | Displaying queries is breaking when upgrading from 1.1.8 to 1.2 |
has duplicate | 0011328 | closed | atrol | on installl.php 1.2.0rc1 SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given |
has duplicate | 0010861 | closed | atrol | Showing SQL statements fail when upgrading |
related to | 0011524 | closed | dregad | 1.2.0rc2 with MS SQL not installable |
Shortened the additional information. |
|
When I install 1.2.0rc2 Ihave three SYSTEM WARNINGs with mysql database type |
|
After updating php 5.3.0 to php 5.3.1 |
|
With php 5.2 Installation Option Type of Database Mysqli SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given Installation Option Type of Database Mysql SYSTEM WARNING: Invalid argument supplied for foreach() |
|
Instalation 1.2.0rc2 on php 5.2 |
|
I,ve tried to install ver. 1.1.8 |
|
I think this is caused by enabeling the checkbox "Print SQL Queries instead of Writing to the Database" |
|
I am no experienced PHP developer, maybe |
|
I have the same problem when I try to install the latest stable version 1.2.1 on my version 1.1.1 |
|
Hi, The reason for this problem is that the install.php page tries to print out SQL code for schema-creation directives that are actually intended to trigger the excution of logic coded in PHP. One way or another, the attempt is bound to fail. What the PHP code does is things like copying data between columns that have had their definitions changed. There is no solution to this except perhaps to express the actions in pure SQL, but that might not be possible in a portable way. Below is a patch in diff -u format to the 1.2.1 stable version of the admin/install.php file that at least cleans up the output by printing an informative comment instead of letting the error printouts mess up the SQL syntax. The patch also includes another useful change, by temporarily disabling the error-reporting subsystem, which otherwise wipes out the page content upon errors, so that the administrator cannot see how far the script managed to run before breaking. --- admin/install.1.2.1.php 2010-05-05 12:08:40.556079300 +0200
|
|
Thanks Otto for the patch and everyone else for reporting and debugging this issue. It should be fixed now, ready for the next release. @ottog: I haven't applied your error disabling patch yet as I have to look into that matter further. I think I'll end up rewriting the installer entirely as it is a big mess at the moment. |
|
MantisBT: master 0caa7aaa 2010-08-12 10:10 Details Diff |
Fix 0011364: htmlentities invalid parameter type on pretend install When pretending to install/upgrade MantisBT by writing SQL queries to output rather than executing them, the following error would be encountered: SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given Now we don't attempt to log upgrade function calls in amongst the dumped query strings. Thanks to Otto Giesenfeld for this patch (modified). |
Affected Issues 0011364 |
|
mod - admin/install.php | Diff File | ||
MantisBT: master-1.2.x a553540e 2010-08-12 10:10 Details Diff |
Fix 0011364: htmlentities invalid parameter type on pretend install When pretending to install/upgrade MantisBT by writing SQL queries to output rather than executing them, the following error would be encountered: SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given Now we don't attempt to log upgrade function calls in amongst the dumped query strings. Thanks to Otto Giesenfeld for this patch (modified). |
Affected Issues 0011364 |
|
mod - admin/install.php | Diff File |