HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


SVG upload fails as "corrupt or unrecognized image type" + stack trace error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#90471 (In Topic #18286)
Avatar

Well-settled

I created some SVG image files in LibreOffice draw showing some diagrams I want to use on my site wiki.  However, when I try to upload them to a Gallery the first time I got a "corrupt or unrecognized image type" error.  When I went back to try again, there was an indication that the file was present in the gallery folder, but not recognized.  When I clicked the Add Selection to Gallery option and clicked proceed, I got the following stack trace error.  I then got stack trace errors when I tried to delete one of the existing (unrecognized) images, and when I tried to upload a different file.  Does anyone have any idea what might be going on?

Code


Stack trace…

File -> '/home/seeingsh/public_html/bawiki.com/sources/failure.php'
Line -> 693
Function -> 'die_html_trace'
Args -> array ( 0 => 'A file, http://www.bawiki.com/uploads/galleries/Real_Traditional_Waterfall.svg is either corrupt or an unrecognised image file type (version: 9.0, PHP version: 5.3.13, URL: /cms/index.php?page=cms_galleries&type=ss&keep_fatalistic=1&keep_no_swfupload=1)', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/global2.php'
Line -> 1007
Function -> '_fatal_exit'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/site.php'
Line -> 277
Function -> 'fatal_exit'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/images.php'
Line -> 528
Function -> 'attach_message'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/cms/pages/modules/cms_galleries.php'
Line -> 554
Function -> 'convert_image'
Args -> array ( 0 => 'http://www.bawiki.com/uploads/galleries/Real_Traditional_Waterfall.svg', 1 => '/home/seeingsh/public_html/bawiki.com/uploads/galleries_thumbs/Real_Traditional_Waterfall.svg', 2 => -1, 3 => -1, 4 => 200, 5 => false, )

File -> '/home/seeingsh/public_html/bawiki.com/cms/pages/modules/cms_galleries.php'
Line -> 142
Function -> 'ss'
Class -> 'Module_cms_galleries'
Object -> Module_cms_galleries::__set_state(array( 'lang_type' => 'IMAGE', 'select_name_description' => 'DESCRIPTION_IMAGE', 'select_name' => 'IMAGE', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'image', 'upload' => 'image', 'award_type' => 'image', 'menu_label' => 'GALLERIES', 'table' => 'images', 'donext_type' => NULL, 'module_type' => 'galleries', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => Module_cms_galleries_cat::__set_state(array( 'lang_type' => 'GALLERY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'galleries', 'seo_type' => 'gallery', 'upload' => 'image', 'non_integer_id' => true, 'award_type' => 'gallery', 'menu_label' => 'GALLERIES', 'table' => 'galleries', 'javascript' => 'var fn=document.getElementById(\'fullname\'); if (fn) { var form=fn.form; fn.onchange=function() { if ((form.elements[\'name\']) && (form.elements[\'name\'].value==\'\')) form.elements[\'name\'].value=fn.value.toLowerCase().replace(/[^\\w\\d\\.\\-]/g,\'_\').replace(/\\_+$/,\'\'); }; }', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'alt_aed_module' => Module_cms_galleries_alt::__set_state(array( 'lang_type' => 'VIDEO', 'select_name' => 'NAME', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'video', 'upload' => 'file', 'javascript' => '', 'award_type' => 'video', 'menu_label' => 'GALLERIES', 'table' => 'videos', 'donext_type' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'tcpfunc_PARAGRAPH\']="eval(\\$FULL_RESET_VAR_CODE); echo \\"<p\\",\\n (isset(\\$bound_CLASS)?(\\" class=\\\\\\"\\".( isset (\\$bound_CLASS)?(((isset(\\$bound_CLASS->preprocessable_bits)) && (\\$bound_CLASS->pure_lang))?output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"):str_replace(\\$GLOBALS[\'HTML_ESCAPE_1_STRREP\'],\\$GLOBALS[\'HTML_ESCAPE_2\'],output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"))):attach_message(do_lang_tempcode(\'MISSING_TEMPLATE_PARAMETER\',\\"CLASS\\",\\"PARAGRAPH\\"),\\"warn\\")).\\"\\\\\\"\\"):\'\'),\\n \\">\\\\n \\",\\n output_tempcode_parameter( isset (\\$bound_TEXT)?\\$bound_TEXT:NULL,\\"TEXT\\",\\"PARAGRAPH\\"),\\n \\"\\\\n</p>\\\\n\\";"; ', 'seq_parts' => array ( 0 => array ( 0 => 'tcpfunc_PARAGRAPH', 1 => array ( '_GUID' => '', 'TEXT' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_5042a0d1d05032.09192400\']="echo ecv(\\$cl,array(),2,\\"ALSO_AUDIO\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_5042a0d1d05032.09192400', 1 => array ( ), 2 => 2, 3 => 'ALSO_AUDIO', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'CLASS' => NULL, ), 2 => 1, 3 => '', 4 => NULL, ), ), 'preprocessable_bits' => array ( ), 'last_attach' => 'PARAGRAPH', 'pure_lang' => NULL, 'codename' => '(mixed)', 'cached_output' => NULL, )), 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, ))
Type -> '->'
Args -> array ( )

File -> '/home/seeingsh/public_html/bawiki.com/sources/aed_module.php'
Line -> 198
Function -> 'run_start'
Class -> 'Module_cms_galleries'
Object -> Module_cms_galleries::__set_state(array( 'lang_type' => 'IMAGE', 'select_name_description' => 'DESCRIPTION_IMAGE', 'select_name' => 'IMAGE', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'image', 'upload' => 'image', 'award_type' => 'image', 'menu_label' => 'GALLERIES', 'table' => 'images', 'donext_type' => NULL, 'module_type' => 'galleries', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => Module_cms_galleries_cat::__set_state(array( 'lang_type' => 'GALLERY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'galleries', 'seo_type' => 'gallery', 'upload' => 'image', 'non_integer_id' => true, 'award_type' => 'gallery', 'menu_label' => 'GALLERIES', 'table' => 'galleries', 'javascript' => 'var fn=document.getElementById(\'fullname\'); if (fn) { var form=fn.form; fn.onchange=function() { if ((form.elements[\'name\']) && (form.elements[\'name\'].value==\'\')) form.elements[\'name\'].value=fn.value.toLowerCase().replace(/[^\\w\\d\\.\\-]/g,\'_\').replace(/\\_+$/,\'\'); }; }', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'alt_aed_module' => Module_cms_galleries_alt::__set_state(array( 'lang_type' => 'VIDEO', 'select_name' => 'NAME', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'video', 'upload' => 'file', 'javascript' => '', 'award_type' => 'video', 'menu_label' => 'GALLERIES', 'table' => 'videos', 'donext_type' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'tcpfunc_PARAGRAPH\']="eval(\\$FULL_RESET_VAR_CODE); echo \\"<p\\",\\n (isset(\\$bound_CLASS)?(\\" class=\\\\\\"\\".( isset (\\$bound_CLASS)?(((isset(\\$bound_CLASS->preprocessable_bits)) && (\\$bound_CLASS->pure_lang))?output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"):str_replace(\\$GLOBALS[\'HTML_ESCAPE_1_STRREP\'],\\$GLOBALS[\'HTML_ESCAPE_2\'],output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"))):attach_message(do_lang_tempcode(\'MISSING_TEMPLATE_PARAMETER\',\\"CLASS\\",\\"PARAGRAPH\\"),\\"warn\\")).\\"\\\\\\"\\"):\'\'),\\n \\">\\\\n \\",\\n output_tempcode_parameter( isset (\\$bound_TEXT)?\\$bound_TEXT:NULL,\\"TEXT\\",\\"PARAGRAPH\\"),\\n \\"\\\\n</p>\\\\n\\";"; ', 'seq_parts' => array ( 0 => array ( 0 => 'tcpfunc_PARAGRAPH', 1 => array ( '_GUID' => '', 'TEXT' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_5042a0d1d05032.09192400\']="echo ecv(\\$cl,array(),2,\\"ALSO_AUDIO\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_5042a0d1d05032.09192400', 1 => array ( ), 2 => 2, 3 => 'ALSO_AUDIO', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'CLASS' => NULL, ), 2 => 1, 3 => '', 4 => NULL, ), ), 'preprocessable_bits' => array ( ), 'last_attach' => 'PARAGRAPH', 'pure_lang' => NULL, 'codename' => '(mixed)', 'cached_output' => NULL, )), 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, ))
Type -> '->'
Args -> array ( 0 => 'ss', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'standard_aed_module'
Object -> Module_cms_galleries::__set_state(array( 'lang_type' => 'IMAGE', 'select_name_description' => 'DESCRIPTION_IMAGE', 'select_name' => 'IMAGE', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'image', 'upload' => 'image', 'award_type' => 'image', 'menu_label' => 'GALLERIES', 'table' => 'images', 'donext_type' => NULL, 'module_type' => 'galleries', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => Module_cms_galleries_cat::__set_state(array( 'lang_type' => 'GALLERY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'galleries', 'seo_type' => 'gallery', 'upload' => 'image', 'non_integer_id' => true, 'award_type' => 'gallery', 'menu_label' => 'GALLERIES', 'table' => 'galleries', 'javascript' => 'var fn=document.getElementById(\'fullname\'); if (fn) { var form=fn.form; fn.onchange=function() { if ((form.elements[\'name\']) && (form.elements[\'name\'].value==\'\')) form.elements[\'name\'].value=fn.value.toLowerCase().replace(/[^\\w\\d\\.\\-]/g,\'_\').replace(/\\_+$/,\'\'); }; }', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'alt_aed_module' => Module_cms_galleries_alt::__set_state(array( 'lang_type' => 'VIDEO', 'select_name' => 'NAME', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'video', 'upload' => 'file', 'javascript' => '', 'award_type' => 'video', 'menu_label' => 'GALLERIES', 'table' => 'videos', 'donext_type' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'tcpfunc_PARAGRAPH\']="eval(\\$FULL_RESET_VAR_CODE); echo \\"<p\\",\\n (isset(\\$bound_CLASS)?(\\" class=\\\\\\"\\".( isset (\\$bound_CLASS)?(((isset(\\$bound_CLASS->preprocessable_bits)) && (\\$bound_CLASS->pure_lang))?output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"):str_replace(\\$GLOBALS[\'HTML_ESCAPE_1_STRREP\'],\\$GLOBALS[\'HTML_ESCAPE_2\'],output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"))):attach_message(do_lang_tempcode(\'MISSING_TEMPLATE_PARAMETER\',\\"CLASS\\",\\"PARAGRAPH\\"),\\"warn\\")).\\"\\\\\\"\\"):\'\'),\\n \\">\\\\n \\",\\n output_tempcode_parameter( isset (\\$bound_TEXT)?\\$bound_TEXT:NULL,\\"TEXT\\",\\"PARAGRAPH\\"),\\n \\"\\\\n</p>\\\\n\\";"; ', 'seq_parts' => array ( 0 => array ( 0 => 'tcpfunc_PARAGRAPH', 1 => array ( '_GUID' => '', 'TEXT' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_5042a0d1d05032.09192400\']="echo ecv(\\$cl,array(),2,\\"ALSO_AUDIO\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_5042a0d1d05032.09192400', 1 => array ( ), 2 => 2, 3 => 'ALSO_AUDIO', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'CLASS' => NULL, ), 2 => 1, 3 => '', 4 => NULL, ), ), 'preprocessable_bits' => array ( ), 'last_attach' => 'PARAGRAPH', 'pure_lang' => NULL, 'codename' => '(mixed)', 'cached_output' => NULL, )), 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, ))
Type -> '->'
Args -> array ( )

File -> '/home/seeingsh/public_html/bawiki.com/sources/site.php'
Line -> 838
Function -> 'load_module_page'
Args -> array ( 0 => 'cms/pages/modules/cms_galleries.php', 1 => 'cms_galleries', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/site.php'
Line -> 629
Function -> 'request_page'
Args -> array ( 0 => 'cms_galleries', 1 => true, )

File -> '/home/seeingsh/public_html/bawiki.com/cms/index.php'
Line -> 38
Function -> 'do_site'
Args -> array ( )

Back to the top
 
Posted
Rating:
#90472
Avatar

Well-settled

I don't know if it's related, but I tried saving one of my images as a PNG file, uploaded it to the Gallery (successfully) and then used the "Image" option on a Wiki page to add that image.

When I previewed the page the image showed.  When I saved the page, the image showed as a broken link.
Back to the top
 
Posted
Rating:
#90476
Avatar

Community saint

You could better use the attachment option for images


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Important!
Posted
Rating:
#90477
Avatar

Automated fix message

D-Train said

I created some SVG image files in LibreOffice draw showing some diagrams I want to use on my site wiki.  However, when I try to upload them to a Gallery the first time I got a "corrupt or unrecognized image type" error.  When I went back to try again, there was an indication that the file was present in the gallery folder, but not recognized.  When I clicked the Add Selection to Gallery option and clicked proceed, I got the following stack trace error.  I then got stack trace errors when I tried to delete one of the existing (unrecognized) images, and when I tried to upload a different file.  Does anyone have any idea what might be going on?

Code


Stack trace…

File -> '/home/seeingsh/public_html/bawiki.com/sources/failure.php'
Line -> 693
Function -> 'die_html_trace'
Args -> array ( 0 => 'A file, http://www.bawiki.com/uploads/galleries/Real_Traditional_Waterfall.svg is either corrupt or an unrecognised image file type (version: 9.0, PHP version: 5.3.13, URL: /cms/index.php?page=cms_galleries&amp;type=ss&amp;keep_fatalistic=1&amp;keep_no_swfupload=1)', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/global2.php'
Line -> 1007
Function -> '_fatal_exit'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/site.php'
Line -> 277
Function -> 'fatal_exit'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/images.php'
Line -> 528
Function -> 'attach_message'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/cms/pages/modules/cms_galleries.php'
Line -> 554
Function -> 'convert_image'
Args -> array ( 0 => 'http://www.bawiki.com/uploads/galleries/Real_Traditional_Waterfall.svg', 1 => '/home/seeingsh/public_html/bawiki.com/uploads/galleries_thumbs/Real_Traditional_Waterfall.svg', 2 => -1, 3 => -1, 4 => 200, 5 => false, )

File -> '/home/seeingsh/public_html/bawiki.com/cms/pages/modules/cms_galleries.php'
Line -> 142
Function -> 'ss'
Class -> 'Module_cms_galleries'
Object -> Module_cms_galleries::__set_state(array( 'lang_type' => 'IMAGE', 'select_name_description' => 'DESCRIPTION_IMAGE', 'select_name' => 'IMAGE', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'image', 'upload' => 'image', 'award_type' => 'image', 'menu_label' => 'GALLERIES', 'table' => 'images', 'donext_type' => NULL, 'module_type' => 'galleries', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => Module_cms_galleries_cat::__set_state(array( 'lang_type' => 'GALLERY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'galleries', 'seo_type' => 'gallery', 'upload' => 'image', 'non_integer_id' => true, 'award_type' => 'gallery', 'menu_label' => 'GALLERIES', 'table' => 'galleries', 'javascript' => 'var fn=document.getElementById(\'fullname\'); if (fn) { var form=fn.form; fn.onchange=function() { if ((form.elements[\'name\']) && (form.elements[\'name\'].value==\'\')) form.elements[\'name\'].value=fn.value.toLowerCase().replace(/[^\\w\\d\\.\\-]/g,\'_\').replace(/\\_+$/,\'\'); }; }', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'alt_aed_module' => Module_cms_galleries_alt::__set_state(array( 'lang_type' => 'VIDEO', 'select_name' => 'NAME', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'video', 'upload' => 'file', 'javascript' => '', 'award_type' => 'video', 'menu_label' => 'GALLERIES', 'table' => 'videos', 'donext_type' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'tcpfunc_PARAGRAPH\']="eval(\\$FULL_RESET_VAR_CODE); echo \\"<p\\",\\n (isset(\\$bound_CLASS)?(\\" class=\\\\\\"\\".( isset (\\$bound_CLASS)?(((isset(\\$bound_CLASS->preprocessable_bits)) && (\\$bound_CLASS->pure_lang))?output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"):str_replace(\\$GLOBALS[\'HTML_ESCAPE_1_STRREP\'],\\$GLOBALS[\'HTML_ESCAPE_2\'],output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"))):attach_message(do_lang_tempcode(\'MISSING_TEMPLATE_PARAMETER\',\\"CLASS\\",\\"PARAGRAPH\\"),\\"warn\\")).\\"\\\\\\"\\"):\'\'),\\n \\">\\\\n \\",\\n output_tempcode_parameter( isset (\\$bound_TEXT)?\\$bound_TEXT:NULL,\\"TEXT\\",\\"PARAGRAPH\\"),\\n \\"\\\\n</p>\\\\n\\";"; ', 'seq_parts' => array ( 0 => array ( 0 => 'tcpfunc_PARAGRAPH', 1 => array ( '_GUID' => '', 'TEXT' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_5042a0d1d05032.09192400\']="echo ecv(\\$cl,array(),2,\\"ALSO_AUDIO\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_5042a0d1d05032.09192400', 1 => array ( ), 2 => 2, 3 => 'ALSO_AUDIO', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'CLASS' => NULL, ), 2 => 1, 3 => '', 4 => NULL, ), ), 'preprocessable_bits' => array ( ), 'last_attach' => 'PARAGRAPH', 'pure_lang' => NULL, 'codename' => '(mixed)', 'cached_output' => NULL, )), 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, ))
Type -> '->'
Args -> array ( )

File -> '/home/seeingsh/public_html/bawiki.com/sources/aed_module.php'
Line -> 198
Function -> 'run_start'
Class -> 'Module_cms_galleries'
Object -> Module_cms_galleries::__set_state(array( 'lang_type' => 'IMAGE', 'select_name_description' => 'DESCRIPTION_IMAGE', 'select_name' => 'IMAGE', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'image', 'upload' => 'image', 'award_type' => 'image', 'menu_label' => 'GALLERIES', 'table' => 'images', 'donext_type' => NULL, 'module_type' => 'galleries', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => Module_cms_galleries_cat::__set_state(array( 'lang_type' => 'GALLERY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'galleries', 'seo_type' => 'gallery', 'upload' => 'image', 'non_integer_id' => true, 'award_type' => 'gallery', 'menu_label' => 'GALLERIES', 'table' => 'galleries', 'javascript' => 'var fn=document.getElementById(\'fullname\'); if (fn) { var form=fn.form; fn.onchange=function() { if ((form.elements[\'name\']) && (form.elements[\'name\'].value==\'\')) form.elements[\'name\'].value=fn.value.toLowerCase().replace(/[^\\w\\d\\.\\-]/g,\'_\').replace(/\\_+$/,\'\'); }; }', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'alt_aed_module' => Module_cms_galleries_alt::__set_state(array( 'lang_type' => 'VIDEO', 'select_name' => 'NAME', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'video', 'upload' => 'file', 'javascript' => '', 'award_type' => 'video', 'menu_label' => 'GALLERIES', 'table' => 'videos', 'donext_type' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'tcpfunc_PARAGRAPH\']="eval(\\$FULL_RESET_VAR_CODE); echo \\"<p\\",\\n (isset(\\$bound_CLASS)?(\\" class=\\\\\\"\\".( isset (\\$bound_CLASS)?(((isset(\\$bound_CLASS->preprocessable_bits)) && (\\$bound_CLASS->pure_lang))?output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"):str_replace(\\$GLOBALS[\'HTML_ESCAPE_1_STRREP\'],\\$GLOBALS[\'HTML_ESCAPE_2\'],output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"))):attach_message(do_lang_tempcode(\'MISSING_TEMPLATE_PARAMETER\',\\"CLASS\\",\\"PARAGRAPH\\"),\\"warn\\")).\\"\\\\\\"\\"):\'\'),\\n \\">\\\\n \\",\\n output_tempcode_parameter( isset (\\$bound_TEXT)?\\$bound_TEXT:NULL,\\"TEXT\\",\\"PARAGRAPH\\"),\\n \\"\\\\n</p>\\\\n\\";"; ', 'seq_parts' => array ( 0 => array ( 0 => 'tcpfunc_PARAGRAPH', 1 => array ( '_GUID' => '', 'TEXT' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_5042a0d1d05032.09192400\']="echo ecv(\\$cl,array(),2,\\"ALSO_AUDIO\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_5042a0d1d05032.09192400', 1 => array ( ), 2 => 2, 3 => 'ALSO_AUDIO', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'CLASS' => NULL, ), 2 => 1, 3 => '', 4 => NULL, ), ), 'preprocessable_bits' => array ( ), 'last_attach' => 'PARAGRAPH', 'pure_lang' => NULL, 'codename' => '(mixed)', 'cached_output' => NULL, )), 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, ))
Type -> '->'
Args -> array ( 0 => 'ss', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'standard_aed_module'
Object -> Module_cms_galleries::__set_state(array( 'lang_type' => 'IMAGE', 'select_name_description' => 'DESCRIPTION_IMAGE', 'select_name' => 'IMAGE', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'image', 'upload' => 'image', 'award_type' => 'image', 'menu_label' => 'GALLERIES', 'table' => 'images', 'donext_type' => NULL, 'module_type' => 'galleries', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => Module_cms_galleries_cat::__set_state(array( 'lang_type' => 'GALLERY', 'select_name' => 'NAME', 'permissions_require' => 'cat_mid', 'permission_module' => 'galleries', 'seo_type' => 'gallery', 'upload' => 'image', 'non_integer_id' => true, 'award_type' => 'gallery', 'menu_label' => 'GALLERIES', 'table' => 'galleries', 'javascript' => 'var fn=document.getElementById(\'fullname\'); if (fn) { var form=fn.form; fn.onchange=function() { if ((form.elements[\'name\']) && (form.elements[\'name\'].value==\'\')) form.elements[\'name\'].value=fn.value.toLowerCase().replace(/[^\\w\\d\\.\\-]/g,\'_\').replace(/\\_+$/,\'\'); }; }', 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_type' => NULL, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'alt_aed_module' => Module_cms_galleries_alt::__set_state(array( 'lang_type' => 'VIDEO', 'select_name' => 'NAME', 'permissions_require' => 'mid', 'permissions_cat_require' => 'galleries', 'permissions_cat_name' => 'cat', 'user_facing' => true, 'seo_type' => 'video', 'upload' => 'file', 'javascript' => '', 'award_type' => 'video', 'menu_label' => 'GALLERIES', 'table' => 'videos', 'donext_type' => NULL, 'module_type' => NULL, 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => NULL, 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'view_label' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'tcpfunc_PARAGRAPH\']="eval(\\$FULL_RESET_VAR_CODE); echo \\"<p\\",\\n (isset(\\$bound_CLASS)?(\\" class=\\\\\\"\\".( isset (\\$bound_CLASS)?(((isset(\\$bound_CLASS->preprocessable_bits)) && (\\$bound_CLASS->pure_lang))?output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"):str_replace(\\$GLOBALS[\'HTML_ESCAPE_1_STRREP\'],\\$GLOBALS[\'HTML_ESCAPE_2\'],output_tempcode_parameter( isset (\\$bound_CLASS)?\\$bound_CLASS:NULL,\\"CLASS\\",\\"PARAGRAPH\\"))):attach_message(do_lang_tempcode(\'MISSING_TEMPLATE_PARAMETER\',\\"CLASS\\",\\"PARAGRAPH\\"),\\"warn\\")).\\"\\\\\\"\\"):\'\'),\\n \\">\\\\n \\",\\n output_tempcode_parameter( isset (\\$bound_TEXT)?\\$bound_TEXT:NULL,\\"TEXT\\",\\"PARAGRAPH\\"),\\n \\"\\\\n</p>\\\\n\\";"; ', 'seq_parts' => array ( 0 => array ( 0 => 'tcpfunc_PARAGRAPH', 1 => array ( '_GUID' => '', 'TEXT' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_5042a0d1d05032.09192400\']="echo ecv(\\$cl,array(),2,\\"ALSO_AUDIO\\",\\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_5042a0d1d05032.09192400', 1 => array ( ), 2 => 2, 3 => 'ALSO_AUDIO', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => NULL, )), 'CLASS' => NULL, ), 2 => 1, 3 => '', 4 => NULL, ), ), 'preprocessable_bits' => array ( ), 'last_attach' => 'PARAGRAPH', 'pure_lang' => NULL, 'codename' => '(mixed)', 'cached_output' => NULL, )), 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'possibly_some_kind_of_upload' => false, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, )), 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'javascript' => NULL, 'type_code' => 'd', 'catalogue' => false, 'non_integer_id' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'do_preview' => true, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'entries_title' => NULL, 'categories_title' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'posting_field_required' => true, 'donext_category_id' => NULL, 'cached_entry_rows' => NULL, 'cached_max_rows' => NULL, 'table_prefix' => '', 'array_key' => 'id', 'title_is_multi_lang' => true, 'orderer' => NULL, ))
Type -> '->'
Args -> array ( )

File -> '/home/seeingsh/public_html/bawiki.com/sources/site.php'
Line -> 838
Function -> 'load_module_page'
Args -> array ( 0 => 'cms/pages/modules/cms_galleries.php', 1 => 'cms_galleries', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/site.php'
Line -> 629
Function -> 'request_page'
Args -> array ( 0 => 'cms_galleries', 1 => true, )

File -> '/home/seeingsh/public_html/bawiki.com/cms/index.php'
Line -> 38
Function -> 'do_site'
Args -> array ( )

This issue has been filed on the tracker as issue #801, with a fix.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Important!
 
Posted
Rating:
#90478
Avatar

Does anyone have any idea what might be going on?

Might have a little to do with a big assumption you made ;). As described in the "bugfix", IE8 and GD don't support SVG files. I would have just marked this as a non-bug bug I actually wanted to have a little play with this myself :lol:.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#90479
Avatar

D-Train said

I don't know if it's related, but I tried saving one of my images as a PNG file, uploaded it to the Gallery (successfully) and then used the "Image" option on a Wiki page to add that image.

When I previewed the page the image showed.  When I saved the page, the image showed as a broken link.

I'd need more details. I tried myself and couldn't find a problem here, but I wasn't sure precisely what you mean by "Image" option. We have the attachments, the Comcode Image button (when the WYSIWYG is off) and the Image button in CKEditor. The latter two worked for me, the first one related to the File/Media gallery so isn't relavant here. If you'd deleted the image from the galleries in the interim, or somehow you'd used a relative URL, that could explain the problem.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#90481
Avatar

Also a note…

Users without the use_very_dangerous_comcode privilege will be blocked from using SVG uploads. This is because SVG may contain Javascript code which presents a serious security problem.

So we cannot support user-uploaded SVG unless we write a filter, which would take quick some time.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#90485
Avatar

Well-settled

Thanks for all the info.  I hadn't realized that SVG files were a security risk, so I'll go in and remove the ability to use those.

As for the "Image" option I was referring to, I was using the button in CK Editor, and I was using the URL that is shown when you "Edit" a file in a gallery.  I don't want to use the "Attachment" option because I don't want the "download" button and all of the other crap that comes with showing something as an attachment (It's really not a good option for showing an image IMO).

I was hoping to use SVG file because I wanted an image that could scale with the resolution of the user, but I guess I'm likely stuck with PNG for the moment (if I can get that to work).

Back to the top
 
Posted
Rating:
#90488
Avatar

Well-settled

I think I figured out my problem.  It appears that using the link shown when you Edit points to the CMS directory.  But when I viewed the image in the gallery, and copied that URL, it went to the uploads directory.  Using the URL from the Gallery seems to have fixed my issue of an image not displaying.
Back to the top
 
Posted
Rating:
#90491
Avatar

Yes, relative URLs can not be used around like this in the WYSIWYG editor, they are relative to a particular directory and ocPortal may run from lots of directories.

User-uploaded SVG images are a security risk, not admin-uploaded SVG images. However, we're not supporting SVG images so if the hotfix I wrote does not work consistently, it wouldn't be considered a bug.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: