Hi there,

I was just testing this module out and noticed when click on VSF wysiwyg button to select and insert an image, I get the following errors:

Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Warning: Cannot use a scalar value as an array in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).
Notice: Array to string conversion in vsf_manualcrop_visual_select_file_results_alter() (line 151 of /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module).

I'm not sure how to fix it at the moment, but I thought I would report it.

Comments

gmclelland created an issue. See original summary.

  • rudiedirkx committed 0847a7c on 7.x-1.x
    Issue #2606776: Manual Crop integration shows errors
    
rudiedirkx’s picture

Status: Active » Fixed
StatusFileSize
new1.28 KB

Wow, that was unnecessarily verbose =) but thanks nonetheless.

That was some shamefully bad coding on my part. Refactoring without checking dependencies and then creating a new release without thinking. Mea culpa!

I've committed the fix to dev. Could you try the next dev release, or check out the repo, or apply the attached patch. Please let me know if this fixes it for you. And of course if the Manual Crop support works!

gmclelland’s picture

That fixed the error message I was getting, but now when I try to insert the image using a Manual Crop image style it gives the following error:

Fatal error: Call to undefined function manualcrop_croptool_prepare_form() in /Users/glenn/websites/imce/sites/all/modules/contrib/visual_select_file/submodules/vsf_manualcrop/vsf_manualcrop.module on line 71

I'm using the latest version of the manualcrop module.

Hope that helps

rudiedirkx’s picture

StatusFileSize
new1.55 KB

Ah yes, support was for 1.4, because that's the version we use.

I've added 1.5 support, I think. Try it out. Apply attached patch after #3.

gmclelland’s picture

Thank you, that seems to fix the problem.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.