View Issue Details

IDProjectCategoryView StatusLast Update
0011966mantisbtattachmentspublic2013-11-21 18:14
Reportertisc Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformLinuxOSopenSUSEOS Version11.1
Product Version1.2.1 
Summary0011966: Uploading files does not work wity mysqli DB interface
Description

We recently updated to Mantis 1.2.1 (from 1.1.8) and file uploads stopped working. The content column ended up empty in the database table (all files are stored in database). To error messages are displayed anywhere except of the when trying to download:
PHP Parse error: syntax error, unexpected T_LNUMBER in /path/to/mantisbt-1.2.1/file_download.php, on line 5, referer: https://etc...

Previously uploaded files worked file (and have content in database).

Steps To Reproduce

Try uploading a file.

Additional Information

The fix for us was to switch from mysqli to mysql. Everything worked fine after we removed the "i". So it might be a DB layer problem. I'm reporting it anyway so other affected users might come across this.

Software versions:
apache2-mod_php5-5.2.13-0.1.1
php5-5.2.13-0.1.1
php5-pear-5.2.13-0.1.1
php5-mysql-5.2.13-0.1.1

TagsNo tags attached.

Activities

termitt

termitt

2010-08-18 13:01

reporter   ~0026353

I could confirm this behavior. Since update to 1.2.2 (from 1.1.8) upload fails.
Size is correctly set but no content is in database (BLOB is empty).
Turning from "mysqli" to "mysql" solved the issue.

Configuration:
Win 2003 SP2 (Standard Edition),
IIS v6.0.3790.3959
PHP v5.2.10.10 (php5isapi) (mysql and mysqli extensions are same version)
MySQL 4.1.22

atrol

atrol

2013-11-11 14:45

developer   ~0038530

This issue is not reproducible with the current version of MantisBT.

We recommend that you upgrade to the latest stable version [1]; if after doing so the problem persists, do not hesitate to reopen the issue, with additional relevant information.

[1] https://sourceforge.net/projects/mantisbt/files/mantis-stable/