View Issue Details

IDProjectCategoryView StatusLast Update
0003301Composrcns_cpfspublic2017-06-04 19:23
ReporterJason VerhagenAssigned ToChris Graham 
SeverityMinor-bug 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0003301: Using 'An uploaded picture' CPF, getting stack trace when saving profile.
DescriptionI added a new CPF of type 'An uploaded picture'. After adding this new CPF, going to a profile will have this new CPF blank, as expected. Using the Profile Edit tab, adding an image and saving the profile results in a stack trace stating illegal string offset 'cv_value' line 200 in sources/hooks/systems/fields/picture.php.

Additionally, blanking (not uploading an image) in the Profile Edit tab resulted in an illegal string offset 'cv_value' on line 197 of picture.php.

Also getting the same errors in same function in picture_multi.php as well. Not tested, but I believe the same errors may also occur in the similar CPF upload types (files, videos, etc.).

Additional InformationThe endpoint of the problem is in the inputted_to_field_value function. A couple of tests I did showed inputted_to_field_value function $old_value parameter isn't getting the array it is expecting. It just gets passed a simple variable that contains the picture file pathname, so there is no cv_value array element. Similarly, the same function in picture_multi.php is getting an array, but not in the expected format that includes the cv_value array element. I'm thinking the actual problem is a bit further upstream from here and affects additional CPF upload types.
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2017-06-04 19:23

administrator   ~0005113

Fixed in 026afbb3d

Issue History

Date Modified Username Field Change
2017-05-29 18:32 Jason Verhagen New Issue
2017-06-04 19:23 Chris Graham Note Added: 0005113
2017-06-04 19:23 Chris Graham Status non-assigned => resolved
2017-06-04 19:23 Chris Graham Resolution open => fixed
2017-06-04 19:23 Chris Graham Assigned To => Chris Graham