View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
2183 | Composr | core_comcode_pages | public | 2016-02-10 05:03 | 2016-02-11 03:52 |
Reporter | PDStig | Assigned To | Chris Graham | ||
Priority | normal | Severity | minor | ||
Status | resolved | Resolution | fixed | ||
Summary | 2183: Composr 10b1: Sometimes depending on the output of a block in a comcode page, saving changes may result in an error. | ||||
Description | Sometimes if you have a block in your comcode page, saving changes may result in a Composr error. | ||||
Steps To Reproduce | 1. Go to the edit screen of a comcode page that contains a block. In my specific instance, it was a miniblock found in sources_custom . The page itself works fine, but when editing it and then saving the changes, it will spit out an error (although the changes themselves got saved). | ||||
Additional Information | PHP WARNING [2] strpos() expects parameter 1 to be string, array given in sources/tempcode.php on line 634 (version: 10 beta1, PHP version: 5.4.45, URL: /cms/index.php?page=cms-comcode-pages&type=__edit) Here is the stack trace: Below is a stack trace revealing the state Composr was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Composr website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information. We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly. File '/home/admin/web/lovinity.org/public_html/sources/failure.php' Line 967 Function 'get_html_trace' Args File '/home/admin/web/lovinity.org/public_html/sources/global2.php' Line 903 Function '_fatal_exit' Args 'PHP WARNING [2] strpos() expects parameter 1 to be string, array given in sources/tempcode.php on line 634' File '/home/admin/web/lovinity.org/public_html/sources/failure.php' Line 271 Function 'fatal_exit' Args 'PHP WARNING [2] strpos() expects parameter 1 to be string, array given in sources/tempcode.php on line 634' File '/home/admin/web/lovinity.org/public_html/sources/global2.php' Line 774 Function '_composr_error_handler' Args 'warning' 2 'strpos() expects parameter 1 to be string, array given' 'sources/tempcode.php' 634 4 Function 'composr_error_handler' Args 2 'strpos() expects parameter 1 to be string, array given' '/home/admin/web/lovinity.org/public_html/sources/tempcode.php' 634 a:1:{s:5:"param";a:2:{i:0;s:0:"";i:1;s:0:"";}} File '/home/admin/web/lovinity.org/public_html/sources/tempcode.php' Line 634 Function 'strpos' Args a:2:{i:0;s:0:"";i:1;s:0:"";} ''' File '/home/admin/web/lovinity.org/public_html/sources/zones.php' Line 200 Function 'kid_gloves_html_escaping_singular' Args a:2:{i:0;s:0:"";i:1;s:0:"";} File '/home/admin/web/lovinity.org/public_html/sources/zones.php' Line 652 Function '_solemnly_leave' Args '<audio controls src=\"http://s9.myradiostream.com:13478/;\"></audio> File '/home/admin/web/lovinity.org/public_html/sources/zones.php' Line 1,316 Function '_load_mini_code' Args 'sources_custom/miniblocks/radio_player.php' a:2:{s:5:"block";s:12:"radio_player";s:5:"cache";s:1:"1";} File '/home/admin/web/lovinity.org/public_html/sources/zones.php' Line 1,365 Function 'do_block_hunt_file' Args 'radio_player' a:2:{s:5:"block";s:12:"radio_player";s:5:"cache";s:1:"1";} File '/home/admin/web/lovinity.org/public_html/sources/zones.php' Line 1,068 Function 'get_block_info_row' Args 'radio_player' a:2:{s:5:"block";s:12:"radio_player";s:5:"cache";s:1:"1";} File '/home/admin/web/lovinity.org/public_html/sources/tempcode.php' Line 1,027 Function 'do_block' Args 'radio_player' a:1:{s:5:"block";s:12:"radio_player";} File '/home/admin/web/lovinity.org/public_html/sources/symbols.php' Line 2,962 Function 'handle_symbol_preprocessing' Args a:4:{i:0;a:0:{}i:1;i:0;i:2;s:5:"BLOCK";i:3;a:1:{i:0;s:18:"block=radio_player";}} a:0:{} File '/home/admin/web/lovinity.org/public_html/sources/tempcode.php(1914) : eval()'d code' Line 1 Function 'ecv_BLOCK' Args 'EN' a:0:{} a:1:{i:0;s:18:"block=radio_player";} File '/home/admin/web/lovinity.org/public_html/sources/tempcode.php' Line 1,914 Function 'eval' File '/home/admin/web/lovinity.org/public_html/cms/pages/modules/cms_comcode_pages.php' Line 901 Function 'evaluate' Class 'Tempcode' Object Tempcode -> ... Type '->' Args File '/home/admin/web/lovinity.org/public_html/cms/pages/modules/cms_comcode_pages.php' Line 165 Function '__edit' Class 'Module_cms_comcode_pages' Object O:24:"Module_cms_comcode_pages":4:{s:5:"title";O:8:"Tempcode":5:{s:18:"code_to_preexecute";a:4:{s:33:"tcpfunc_56bab69f7a7a04.60401769_1";s:666:"$tpl_funcs['tcpfunc_56bab69f7a7a04.60401769_1']=$KEEP_TPL_FUNCS['tcpfunc_56bab69f7a7a04.60401769_1']=recall_named_function('56bab69f7a7ae6.80284357','$parameters,$cl',"extract(\$parameters,EXTR_PREFIX_ALL,'bound'); echo (isset(\$bound_ID)?(\"\\n<a id=\\\"title__\".(empty(\$bound_ID->pure_lang)?htmlspecialchars(otp(isset(\$bound_ID)?\$bound_ID:null,\"ID/SCREEN_TITLE\"),ENT_QUOTES,get_charset()):otp(isset(\$bound_ID)?\$bound_ID:null,\"ID/SCREEN_TITLE\")).\"\\\"></a>\\n\"):''),\n \"\\n\\n<h1 class=\\\"screen_title\\\"\",\n ((ecv_NOT(\$cl,array(),array(ecv_GET(\$cl,array(),array(\"name_set_elsewhere\"))))==\"1\")?(\" itemprop=\\\"name\\\"\"):''),\n \">\\n \";");";s:33:"tcpfunc_56bab69f7a7bf7.12241249_2";s:306:"$tpl_funcs['tcpfunc_56bab69f7a7bf7.12241249_2']=$KEEP_TPL_FUNCS['tcpfunc_56bab69f7a7bf7.12241249_2']=recall_named_function('56bab69f7a7c66.57901840','$parameters,$cl',"extract(\$parameters,EXTR_PREFIX_ALL,'bound'); echo otp(isset(\$bound_TITLE)?\$bound_TITLE:null,\"TITLE/SCREEN_TITLE\"),\n \"\\n\\n \";");";s:33:"tcpfunc_56bab69f7a7d05.69562003_3";s:1981:"$tpl_funcs['tcpfunc_56bab69f7a7d05.69562003_3']=$KEEP_TPL_FUNCS['tcpfunc_56bab69f7a7d05.69562003_3']=recall_named_function('56bab69f7a7d87.42986505','$parameters,$cl',"extract(\$parameters,EXTR_PREFIX_ALL,'bound'); echo (isset(\$bound_AWARDS)?(\"\\n \".((otp(isset(\$bound_AWARDS)?\$bound_AWARDS:null,\"AWARDS/SCREEN_TITLE\")!='')?(\"\\n \".ecv(\$cl,array(),4,\"SET\",array(\"AWARDS_TEXT\",\"\\n <h2>\".\"Award winner\".\"</h2>\\n <p class=\\\"lonely_label\\\">\".ecv(\$cl,array(),2,\"AWARDS_WON\",array(otp(isset(\$bound_AWARDS)?\$bound_AWARDS:null,\"AWARDS/SCREEN_TITLE\"))).\"\\n
Type '->' Args File '/home/admin/web/lovinity.org/public_html/sources/zones.php' Line 780 Function 'run' Class 'Module_cms_comcode_pages' Object O:24:"Module_cms_comcode_pages":4:{s:5:"title";O:8:"Tempcode":5:{s:18:"code_to_preexecute";a:4:{s:33:"tcpfunc_56bab69f7a7a04.60401769_1";s:666:"$tpl_funcs['tcpfunc_56bab69f7a7a04.60401769_1']=$KEEP_TPL_FUNCS['tcpfunc_56bab69f7a7a04.60401769_1']=recall_named_function('56bab69f7a7ae6.80284357','$parameters,$cl',"extract(\$parameters,EXTR_PREFIX_ALL,'bound'); echo (isset(\$bound_ID)?(\"\\n<a id=\\\"title__\".(empty(\$bound_ID->pure_lang)?htmlspecialchars(otp(isset(\$bound_ID)?\$bound_ID:null,\"ID/SCREEN_TITLE\"),ENT_QUOTES,get_charset()):otp(isset(\$bound_ID)?\$bound_ID:null,\"ID/SCREEN_TITLE\")).\"\\\"></a>\\n\"):''),\n \"\\n\\n<h1 class=\\\"screen_title\\\"\",\n ((ecv_NOT(\$cl,array(),array(ecv_GET(\$cl,array(),array(\"name_set_elsewhere\"))))==\"1\")?(\" itemprop=\\\"name\\\"\"):''),\n \">\\n \";");";s:33:"tcpfunc_56bab69f7a7bf7.12241249_2";s:306:"$tpl_funcs['tcpfunc_56bab69f7a7bf7.12241249_2']=$KEEP_TPL_FUNCS['tcpfunc_56bab69f7a7bf7.12241249_2']=recall_named_function('56bab69f7a7c66.57901840','$parameters,$cl',"extract(\$parameters,EXTR_PREFIX_ALL,'bound'); echo otp(isset(\$bound_TITLE)?\$bound_TITLE:null,\"TITLE/SCREEN_TITLE\"),\n \"\\n\\n \";");";s:33:"tcpfunc_56bab69f7a7d05.69562003_3";s:1981:"$tpl_funcs['tcpfunc_56bab69f7a7d05.69562003_3']=$KEEP_TPL_FUNCS['tcpfunc_56bab69f7a7d05.69562003_3']=recall_named_function('56bab69f7a7d87.42986505','$parameters,$cl',"extract(\$parameters,EXTR_PREFIX_ALL,'bound'); echo (isset(\$bound_AWARDS)?(\"\\n \".((otp(isset(\$bound_AWARDS)?\$bound_AWARDS:null,\"AWARDS/SCREEN_TITLE\")!='')?(\"\\n \".ecv(\$cl,array(),4,\"SET\",array(\"AWARDS_TEXT\",\"\\n <h2>\".\"Award winner\".\"</h2>\\n <p class=\\\"lonely_label\\\">\".ecv(\$cl,array(),2,\"AWARDS_WON\",array(otp(isset(\$bound_AWARDS)?\$bound_AWARDS:null,\"AWARDS/SCREEN_TITLE\"))).\"\\n
Type '->' Args File '/home/admin/web/lovinity.org/public_html/sources/site.php' Line 1,151 Function 'load_module_page' Args 'cms/pages/modules/cms_comcode_pages.php' 'cms_comcode_pages' Tempcode -> ... File '/home/admin/web/lovinity.org/public_html/sources/site.php' Line 855 Function 'request_page' Args 'cms_comcode_pages' true NULL NULL false false Tempcode -> ... File '/home/admin/web/lovinity.org/public_html/cms/index.php' Line 54 Function 'do_site' Args Parameters csrf_token 674d03be666cb label_for__title Codename title start require__title 1 label_for__post Comcode page comcode__post 1 file start lang EN zone radio redirect https://lovinity.org/radio/index.php?page=start MAX_FILE_SIZE 16777216 f_face / f_size f_colour post <h1 class="screen_title">The Lovinity Community Radio</h1> <h2><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab">TUNE IN NOW:</kbd></kbd></kbd></kbd></h2> <div style="text-align: center"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="cms_keep_block" title="block">[block]radio_player[/block]</kbd></kbd></kbd></kbd></kbd></div> <kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab">DISCLAIMER: We do not review all of the content that is aired. If you hear something that violates our website rules or is significantly offensive, please report it by filing a <a href="http://lovinity.org/pg/tickets/misc" target="_top">support ticket</a> (you can do so as a guest). Please include the date and time you heard the violating content. </kbd></kbd></kbd></kbd> <h2><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab">Now Playing</kbd></kbd></kbd></kbd></h2> <kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><iframe height="1000px" src="https://dev.lovinity.org/radio/nowplaying.php" width="100%"></iframe> Programming is subject to change without notice. </kbd></kbd></kbd></kbd> <div style="text-align: center"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><span style=" color: #0000CD; ">Radio automation system is powered by <img alt="" src="https://lovinity.org/uploads/filedump/site_images/logo.png" title="" /> </span></kbd></kbd></kbd></kbd></div> <kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"><kbd class="ocp_keep_block" title="big_tab"> </kbd></kbd></kbd></kbd> txtFileName_file1 hidFileID_file1 -1 posting_ref_id 426876177 label_for__validated Validated validated 1 tick_on_form__validated 0 require__validated 0 label_for__parent_page Parent page parent_page require__parent_page 0 label_for__show_as_edit Show as edited tick_on_form__show_as_edit 0 require__show_as_edit 0 label_for__order Order order 0 require__order 0 meta_keywords (array) label_for__meta_keywords (array) require__meta_keywords 0 label_for__meta_description Concise description meta_description require__meta_description 0 label_for__meta_submitter Owner meta_submitter admin require__meta_submitter 1 label_for__meta_add_time Add date/time meta_add_time 2016-02-09 meta_add_time_time 23:23 require__meta_add_time 1 label_for__meta_edit_time Edit date/time meta_edit_time 2016-02-10 meta_edit_time_time 00:01 require__meta_edit_time 0 label_for__meta_url_moniker URL Moniker meta_url_moniker require__meta_url_moniker 0 review_freq on require__ 0 require__review_freq_days 0 require__review_freq_months 0 require__review_freq_years 0 label_for__next_review_time Next review date next_review_time require__next_review_time 0 label_for__auto_action Review date action auto_action leave require__auto_action 1 label_for__display_review_status Display review status tick_on_form__display_review_status 0 require__display_review_status 0 label_for__access_1 Access for Guests access_1 1 tick_on_form__access_1 0 require__access_1 0 label_for__access_3 Access for Super-moderators access_3 1 tick_on_form__access_3 0 require__access_3 0 label_for__access_4 Access for Super-members access_4 1 tick_on_form__access_4 0 require__access_4 0 label_for__access_5 Access for Local hero access_5 1 tick_on_form__access_5 0 require__access_5 0 label_for__access_6 Access for Old timer access_6 1 tick_on_form__access_6 0 require__access_6 0 label_for__access_7 Access for Local access_7 1 tick_on_form__access_7 0 require__access_7 0 label_for__access_8 Access for Regular access_8 1 tick_on_form__access_8 0 require__access_8 0 label_for__access_9 Access for Newbie access_9 1 tick_on_form__access_9 0 require__access_9 0 label_for__access_10 Access for Probation access_10 1 tick_on_form__access_10 0 require__access_10 0 http_referer https://lovinity.org/cms/index.php?page=cms-comcode-pages&type=_edit&page_link=radio%3Astart&redirect=https%3A%2F%2Flovinity.org%2Fradio%2Findex.php%3Fpage%3Dstart post__is_wysiwyg 1 | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||