View Issue Details

IDProjectCategoryView StatusLast Update
0009017mantisbtbugtrackerpublic2008-11-21 16:08
Reporterdialexia Assigned Tojreese  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformwindowsOSXP pro 
Product Version1.1.1 
Target Version1.1.5Fixed in Version1.1.5 
Summary0009017: SYSTEM WARNING implode() [function.implode]: Bad arguments.
Description

Originally reported in mantis forum under HELP

SYSTEM WARNING
implode() [function.implode]: Bad arguments.

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Results from debuging:

Full path: C:\Inetpub\mantis-1.1.1\core\gpc_api.php
Line: 120
Variable Value Type
p_var_name custom_field_2 string
p_custom_field_type 7 string
p_default Coding string
t_values Coding string

Filename Line Function Args
C:\Inetpub\mantis-1.1.1\core\gpc_api.php 120 implode ( '|', 'Coding' )
C:\Inetpub\mantis-1.1.1\bug_report.php

Thanx vboctor for your help!

Tagspatch
Attached Files
mantis custom feilds.doc (125,952 bytes)
mantis.bmp (905,574 bytes)
screen dump 1.2.0a2.doc (159,744 bytes)

Relationships

parent of 0009815 closedthraxisp gpc_get_string_array() sometimes returns non-arrays 

Activities

dyawlak

dyawlak

2008-04-16 05:00

reporter   ~0017609

Has anyone found a solution for this as I'm getting the same issue

Thanks

grangeway

grangeway

2008-05-04 06:02

reporter   ~0017759

Hello,

Can you enlighten me as to what sort of custom field setup you've got generating this?

Paul

dialexia

dialexia

2008-05-06 08:40

reporter   ~0017777

Nothing was modified directly in any files, all modification were made from the web interface of mantis.

In which file would I find these changes?

ljarman

ljarman

2008-05-30 11:58

reporter   ~0017957

Last edited: 2008-05-30 12:03

Paul,

I'm getting the same error when I submit a report. The project contains a custom field. Please see the attached mantis.bmp file for custom field description.

If the three check boxes are left blank when the report is submitted, then the error occurs. If at least one of the check boxes are selected, then the error does not occur.

Thanks,
Larry

Maritanna

Maritanna

2008-06-09 06:26

reporter   ~0018039

I have the same warning after adding checkbox custom field.

giesen

giesen

2008-08-15 08:07

reporter   ~0019167

Hi,

I have fix this problem on my local System(s).

Just change line 119 in core\gpc_api.php from
if( null !== $t_values && '' != $t_values) {
to
if( null !== $t_values && '' != $t_values && is_array($t_values)) {
It works for both mantis-1.1.1 and mantis-1.1.2.

grangeway

grangeway

2008-08-16 18:48

reporter   ~0019169

Hello,

Having just tested this against 1.2.0a2, this doesn't seem to be an issue in the alpha releases. (afaict)

Paul

dialexia

dialexia

2008-08-22 18:10

reporter   ~0019210

Thanx giesen!!!!!

I modified the gpc_api file as you said, and it worked!

Bravo:)

Thom Botterill

Thom Botterill

2008-08-25 20:09

reporter   ~0019222

Hello,

Having just tested this against 1.2.0a2, this is still an issue for me (screen dump attached

Cheers

Thom

slankes

slankes

2008-11-09 11:50

reporter   ~0019822

I just tested this against HEAD - I am unable to reproduce the error.

I suggest applying the fix to 1.1.5 and closing this as fixed.

vboctor

vboctor

2008-11-11 03:33

manager   ~0019840

I was not able to reproduce on 1.1.x. Please provide exact steps to reproduce the issue. I would appreciate if someone can repro on an empty database with Mantis 1.1.4.

jreese

jreese

2008-11-11 11:46

reporter   ~0019843

Fixes for problem with implode() have been committed to master and master-1.1.x; however, I'm leaving this open as thraxisp and paulr both believe there is a bigger root problem with gpc_get_string_array().

vboctor

vboctor

2008-11-14 01:59

manager   ~0019882

Marked this issue as resolved to show up in 1.1.5 changelog and opened a separate issue for analysing the root cause.

Related Changesets

MantisBT: master 4cc4e363

2008-11-11 09:42

jreese


Details Diff
Fix 0009017: make sure we call implode() on an array. Affected Issues
0009017
mod - core/gpc_api.php Diff File

MantisBT: master-1.1.x 84190edf

2008-11-11 09:42

jreese


Details Diff
Fix 0009017: make sure we call implode() on an array. Affected Issues
0009017
mod - core/gpc_api.php Diff File