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.


Edit Blog Post - Critical Error

Login / Search

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

Honoured member

Recently decided to implement the blogging feature on one of my sites.  I followed the tutorial, however, when I go into the content menu, blogs and "edit blog posts", I get the following:

Critical error – bailing out

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
Unfortunately a query has failed [SELECT COUNT(*) FROM ocp_news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL ORDER BY date_and_time DESC LIMIT 1] [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL ORDER BY ' at line 1] (version: 9.0.7, PHP version: 5.2.17, URL: /cms/index.php?page=cms_blogs&type=ed)

Stack trace…

File -> '/home1/livoniaa/public_html/sources/failure.php'
Line -> 792
Function -> 'die_html_trace'
Args -> array

File -> '/home1/livoniaa/public_html/sources/global2.php'
Line -> 1012
Function -> '_fatal_exit'
Args -> array

File -> '/home1/livoniaa/public_html/sources/database/mysql.php'
Line -> 253
Function -> 'fatal_exit'
Args -> array

File -> '/home1/livoniaa/public_html/sources/database.php'
Line -> 1103
Function -> 'db_query'
Class -> 'Database_Static_mysql'
Type -> '->'
Object -> Database_Static_mysql::__set_state(array( ))
Args -> array ( 0 => 'SELECT COUNT(*) FROM ocp_news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL ORDER BY date_and_time DESC', 1 => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 2 => 1, 3 => NULL, 4 => false, 5 => false, 6 => false, 7 => false, )

File -> '/home1/livoniaa/public_html/sources/database.php'
Line -> 927
Function -> '_query'
Class -> 'database_driver'
Type -> '->'
Object -> database_driver::__set_state(array( 'table_prefix' => 'ocp_', 'connection_read' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'connection_write' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'text_lookup_original_cache' => array ( 11 => 'Content Management', 5 => 'Content Management', 72 => '', 73 => '', 34 => 'Administrators', 35 => 'Site director', 11074 => 'LARC Field day 2013', ), 'text_lookup_cache' => array ( 11 => '', 5 => '', 72 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5d676829b4.22859302\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:66:\"\$TPL_FUNCS[\'string_attach_519e5d676829b4.22859302\']=\"echo \\\"\\\";\";\n\";}"); ', 73 => '', 34 => '', 35 => '', 11074 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5a6a0ea7c0.78028463\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:85:\"\$TPL_FUNCS[\'string_attach_519e5a6a0ea7c0.78028463\']=\"echo \\\"LARC Field day 2013\\\";\";\n\";}"); ', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Args -> array ( 0 => 'SELECT COUNT(*) FROM ocp_news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL ORDER BY date_and_time DESC', 1 => 1, 2 => NULL, 3 => false, 4 => false, 5 => NULL, 6 => '', )

File -> '/home1/livoniaa/public_html/sources/database.php'
Line -> 597
Function -> 'query_select'
Class -> 'database_driver'
Type -> '->'
Object -> database_driver::__set_state(array( 'table_prefix' => 'ocp_', 'connection_read' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'connection_write' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'text_lookup_original_cache' => array ( 11 => 'Content Management', 5 => 'Content Management', 72 => '', 73 => '', 34 => 'Administrators', 35 => 'Site director', 11074 => 'LARC Field day 2013', ), 'text_lookup_cache' => array ( 11 => '', 5 => '', 72 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5d676829b4.22859302\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:66:\"\$TPL_FUNCS[\'string_attach_519e5d676829b4.22859302\']=\"echo \\\"\\\";\";\n\";}"); ', 73 => '', 34 => '', 35 => '', 11074 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5a6a0ea7c0.78028463\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:85:\"\$TPL_FUNCS[\'string_attach_519e5a6a0ea7c0.78028463\']=\"echo \\\"LARC Field day 2013\\\";\";\n\";}"); ', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Args -> array ( 0 => 'news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL', 1 => array ( 0 => 'COUNT(*)', ), 2 => NULL, 3 => 'ORDER BY date_and_time DESC', 4 => 1, 5 => NULL, )

File -> '/home1/livoniaa/public_html/sources/aed_module.php'
Line -> 749
Function -> 'query_value'
Class -> 'database_driver'
Type -> '->'
Object -> database_driver::__set_state(array( 'table_prefix' => 'ocp_', 'connection_read' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'connection_write' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'text_lookup_original_cache' => array ( 11 => 'Content Management', 5 => 'Content Management', 72 => '', 73 => '', 34 => 'Administrators', 35 => 'Site director', 11074 => 'LARC Field day 2013', ), 'text_lookup_cache' => array ( 11 => '', 5 => '', 72 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5d676829b4.22859302\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:66:\"\$TPL_FUNCS[\'string_attach_519e5d676829b4.22859302\']=\"echo \\\"\\\";\";\n\";}"); ', 73 => '', 34 => '', 35 => '', 11074 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5a6a0ea7c0.78028463\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:85:\"\$TPL_FUNCS[\'string_attach_519e5a6a0ea7c0.78028463\']=\"echo \\\"LARC Field day 2013\\\";\";\n\";}"); ', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Args -> array ( 0 => 'news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL', 1 => 'COUNT(*)', 2 => NULL, 3 => 'ORDER BY date_and_time DESC', )

File -> '/home1/livoniaa/public_html/cms/pages/modules/cms_blogs.php'
Line -> 142
Function -> 'get_entry_rows'
Class -> 'standard_aed_module'
Type -> '->'
Object -> Module_cms_blogs::__set_state(array( 'lang_type' => 'NEWS_BLOG', 'select_name' => 'TITLE', 'code_require' => 'news', 'permissions_require' => 'high', 'permissions_cat_require' => 'news', 'permissions_cat_name' => 'main_news_category', 'user_facing' => true, 'seo_type' => 'news', 'award_type' => 'news', 'possibly_some_kind_of_upload' => true, 'upload' => 'image', 'menu_label' => 'BLOGS', 'table' => 'news', 'orderer' => 'title', 'title_is_multi_lang' => true, 'permission_page_name' => 'cms_news', 'donext_type' => NULL, 'module_type' => 'blogs', 'redirect_type' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_51a8cde91aa252.75478653\']="echo ecv(\$cl,array(),2,\"BLOG_NEWS_ARTICLE\",\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_51a8cde91aa252.75478653', 1 => array ( ), 2 => 2, 3 => 'BLOG_NEWS_ARTICLE', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => 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, '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', ))
Args -> array ( 0 => false, 1 => 'date_and_time DESC', 2 => NULL, 3 => false, 4 => 'JOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL', )

File -> '/home1/livoniaa/public_html/sources/aed_module.php'
Line -> 856
Function -> 'nice_get_choose_table'
Class -> 'Module_cms_blogs'
Type -> '->'
Object -> Module_cms_blogs::__set_state(array( 'lang_type' => 'NEWS_BLOG', 'select_name' => 'TITLE', 'code_require' => 'news', 'permissions_require' => 'high', 'permissions_cat_require' => 'news', 'permissions_cat_name' => 'main_news_category', 'user_facing' => true, 'seo_type' => 'news', 'award_type' => 'news', 'possibly_some_kind_of_upload' => true, 'upload' => 'image', 'menu_label' => 'BLOGS', 'table' => 'news', 'orderer' => 'title', 'title_is_multi_lang' => true, 'permission_page_name' => 'cms_news', 'donext_type' => NULL, 'module_type' => 'blogs', 'redirect_type' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_51a8cde91aa252.75478653\']="echo ecv(\$cl,array(),2,\"BLOG_NEWS_ARTICLE\",\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_51a8cde91aa252.75478653', 1 => array ( ), 2 => 2, 3 => 'BLOG_NEWS_ARTICLE', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => 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, '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', ))
Args -> array ( 0 => array ( 'page' => '_SELF', 'type' => '_ed', ), )

File -> '/home1/livoniaa/public_html/sources/aed_module.php'
Line -> 212
Function -> 'ed'
Class -> 'standard_aed_module'
Type -> '->'
Object -> Module_cms_blogs::__set_state(array( 'lang_type' => 'NEWS_BLOG', 'select_name' => 'TITLE', 'code_require' => 'news', 'permissions_require' => 'high', 'permissions_cat_require' => 'news', 'permissions_cat_name' => 'main_news_category', 'user_facing' => true, 'seo_type' => 'news', 'award_type' => 'news', 'possibly_some_kind_of_upload' => true, 'upload' => 'image', 'menu_label' => 'BLOGS', 'table' => 'news', 'orderer' => 'title', 'title_is_multi_lang' => true, 'permission_page_name' => 'cms_news', 'donext_type' => NULL, 'module_type' => 'blogs', 'redirect_type' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_51a8cde91aa252.75478653\']="echo ecv(\$cl,array(),2,\"BLOG_NEWS_ARTICLE\",\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_51a8cde91aa252.75478653', 1 => array ( ), 2 => 2, 3 => 'BLOG_NEWS_ARTICLE', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => 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, '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', ))
Args -> array ( )

File -> '/home1/livoniaa/public_html/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'standard_aed_module'
Type -> '->'
Object -> Module_cms_blogs::__set_state(array( 'lang_type' => 'NEWS_BLOG', 'select_name' => 'TITLE', 'code_require' => 'news', 'permissions_require' => 'high', 'permissions_cat_require' => 'news', 'permissions_cat_name' => 'main_news_category', 'user_facing' => true, 'seo_type' => 'news', 'award_type' => 'news', 'possibly_some_kind_of_upload' => true, 'upload' => 'image', 'menu_label' => 'BLOGS', 'table' => 'news', 'orderer' => 'title', 'title_is_multi_lang' => true, 'permission_page_name' => 'cms_news', 'donext_type' => NULL, 'module_type' => 'blogs', 'redirect_type' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_51a8cde91aa252.75478653\']="echo ecv(\$cl,array(),2,\"BLOG_NEWS_ARTICLE\",\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_51a8cde91aa252.75478653', 1 => array ( ), 2 => 2, 3 => 'BLOG_NEWS_ARTICLE', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => 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, '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', ))
Args -> array ( )

File -> '/home1/livoniaa/public_html/sources/site.php'
Line -> 858
Function -> 'load_module_page'
Args -> array ( 0 => 'cms/pages/modules/cms_blogs.php', 1 => 'cms_blogs', )

File -> '/home1/livoniaa/public_html/sources/site.php'
Line -> 646
Function -> 'request_page'
Args -> array ( 0 => 'cms_blogs', 1 => true, )

File -> '/home1/livoniaa/public_html/cms/index.php'
Line -> 38
Function -> 'do_site'
Args -> array ( )

Any suggestions on where to start??

Thank you,

Mark
Back to the top
 
Important!
Posted
Rating:
#97510
Avatar

Automated fix message

superiorpyro said

Recently decided to implement the blogging feature on one of my sites.  I followed the tutorial, however, when I go into the content menu, blogs and "edit blog posts", I get the following:

Critical error – bailing out

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
Unfortunately a query has failed [SELECT COUNT(*) FROM ocp_news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL ORDER BY date_and_time DESC LIMIT 1] [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL ORDER BY ' at line 1] (version: 9.0.7, PHP version: 5.2.17, URL: /cms/index.php?page=cms_blogs&type=ed)

Stack trace…

File -> '/home1/livoniaa/public_html/sources/failure.php'
Line -> 792
Function -> 'die_html_trace'
Args -> array

File -> '/home1/livoniaa/public_html/sources/global2.php'
Line -> 1012
Function -> '_fatal_exit'
Args -> array

File -> '/home1/livoniaa/public_html/sources/database/mysql.php'
Line -> 253
Function -> 'fatal_exit'
Args -> array

File -> '/home1/livoniaa/public_html/sources/database.php'
Line -> 1103
Function -> 'db_query'
Class -> 'Database_Static_mysql'
Type -> '->'
Object -> Database_Static_mysql::__set_state(array( ))
Args -> array ( 0 => 'SELECT COUNT(*) FROM ocp_news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL ORDER BY date_and_time DESC', 1 => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 2 => 1, 3 => NULL, 4 => false, 5 => false, 6 => false, 7 => false, )

File -> '/home1/livoniaa/public_html/sources/database.php'
Line -> 927
Function -> '_query'
Class -> 'database_driver'
Type -> '->'
Object -> database_driver::__set_state(array( 'table_prefix' => 'ocp_', 'connection_read' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'connection_write' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'text_lookup_original_cache' => array ( 11 => 'Content Management', 5 => 'Content Management', 72 => '', 73 => '', 34 => 'Administrators', 35 => 'Site director', 11074 => 'LARC Field day 2013', ), 'text_lookup_cache' => array ( 11 => '', 5 => '', 72 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5d676829b4.22859302\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:66:\"\$TPL_FUNCS[\'string_attach_519e5d676829b4.22859302\']=\"echo \\\"\\\";\";\n\";}"); ', 73 => '', 34 => '', 35 => '', 11074 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5a6a0ea7c0.78028463\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:85:\"\$TPL_FUNCS[\'string_attach_519e5a6a0ea7c0.78028463\']=\"echo \\\"LARC Field day 2013\\\";\";\n\";}"); ', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Args -> array ( 0 => 'SELECT COUNT(*) FROM ocp_news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL ORDER BY date_and_time DESC', 1 => 1, 2 => NULL, 3 => false, 4 => false, 5 => NULL, 6 => '', )

File -> '/home1/livoniaa/public_html/sources/database.php'
Line -> 597
Function -> 'query_select'
Class -> 'database_driver'
Type -> '->'
Object -> database_driver::__set_state(array( 'table_prefix' => 'ocp_', 'connection_read' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'connection_write' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'text_lookup_original_cache' => array ( 11 => 'Content Management', 5 => 'Content Management', 72 => '', 73 => '', 34 => 'Administrators', 35 => 'Site director', 11074 => 'LARC Field day 2013', ), 'text_lookup_cache' => array ( 11 => '', 5 => '', 72 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5d676829b4.22859302\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:66:\"\$TPL_FUNCS[\'string_attach_519e5d676829b4.22859302\']=\"echo \\\"\\\";\";\n\";}"); ', 73 => '', 34 => '', 35 => '', 11074 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5a6a0ea7c0.78028463\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:85:\"\$TPL_FUNCS[\'string_attach_519e5a6a0ea7c0.78028463\']=\"echo \\\"LARC Field day 2013\\\";\";\n\";}"); ', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Args -> array ( 0 => 'news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL', 1 => array ( 0 => 'COUNT(*)', ), 2 => NULL, 3 => 'ORDER BY date_and_time DESC', 4 => 1, 5 => NULL, )

File -> '/home1/livoniaa/public_html/sources/aed_module.php'
Line -> 749
Function -> 'query_value'
Class -> 'database_driver'
Type -> '->'
Object -> database_driver::__set_state(array( 'table_prefix' => 'ocp_', 'connection_read' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'connection_write' => array ( 0 => NULL, 1 => 'livoniaa_ocp', ), 'text_lookup_original_cache' => array ( 11 => 'Content Management', 5 => 'Content Management', 72 => '', 73 => '', 34 => 'Administrators', 35 => 'Site director', 11074 => 'LARC Field day 2013', ), 'text_lookup_cache' => array ( 11 => '', 5 => '', 72 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5d676829b4.22859302\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:66:\"\$TPL_FUNCS[\'string_attach_519e5d676829b4.22859302\']=\"echo \\\"\\\";\";\n\";}"); ', 73 => '', 34 => '', 35 => '', 11074 => 'return unserialize("a:6:{i:0;a:1:{i:0;a:5:{i:0;s:37:\"string_attach_519e5a6a0ea7c0.78028463\";i:1;a:0:{}i:2;i:1;i:3;s:0:\"\";i:4;s:0:\"\";}}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:85:\"\$TPL_FUNCS[\'string_attach_519e5a6a0ea7c0.78028463\']=\"echo \\\"LARC Field day 2013\\\";\";\n\";}"); ', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), 'dedupe_mode' => false, ))
Args -> array ( 0 => 'news rJOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL', 1 => 'COUNT(*)', 2 => NULL, 3 => 'ORDER BY date_and_time DESC', )

File -> '/home1/livoniaa/public_html/cms/pages/modules/cms_blogs.php'
Line -> 142
Function -> 'get_entry_rows'
Class -> 'standard_aed_module'
Type -> '->'
Object -> Module_cms_blogs::__set_state(array( 'lang_type' => 'NEWS_BLOG', 'select_name' => 'TITLE', 'code_require' => 'news', 'permissions_require' => 'high', 'permissions_cat_require' => 'news', 'permissions_cat_name' => 'main_news_category', 'user_facing' => true, 'seo_type' => 'news', 'award_type' => 'news', 'possibly_some_kind_of_upload' => true, 'upload' => 'image', 'menu_label' => 'BLOGS', 'table' => 'news', 'orderer' => 'title', 'title_is_multi_lang' => true, 'permission_page_name' => 'cms_news', 'donext_type' => NULL, 'module_type' => 'blogs', 'redirect_type' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_51a8cde91aa252.75478653\']="echo ecv(\$cl,array(),2,\"BLOG_NEWS_ARTICLE\",\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_51a8cde91aa252.75478653', 1 => array ( ), 2 => 2, 3 => 'BLOG_NEWS_ARTICLE', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => 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, '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', ))
Args -> array ( 0 => false, 1 => 'date_and_time DESC', 2 => NULL, 3 => false, 4 => 'JOIN ocp_news_categories c ON c.id=r.news_category AND nc_owner IS NOT NULL', )

File -> '/home1/livoniaa/public_html/sources/aed_module.php'
Line -> 856
Function -> 'nice_get_choose_table'
Class -> 'Module_cms_blogs'
Type -> '->'
Object -> Module_cms_blogs::__set_state(array( 'lang_type' => 'NEWS_BLOG', 'select_name' => 'TITLE', 'code_require' => 'news', 'permissions_require' => 'high', 'permissions_cat_require' => 'news', 'permissions_cat_name' => 'main_news_category', 'user_facing' => true, 'seo_type' => 'news', 'award_type' => 'news', 'possibly_some_kind_of_upload' => true, 'upload' => 'image', 'menu_label' => 'BLOGS', 'table' => 'news', 'orderer' => 'title', 'title_is_multi_lang' => true, 'permission_page_name' => 'cms_news', 'donext_type' => NULL, 'module_type' => 'blogs', 'redirect_type' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_51a8cde91aa252.75478653\']="echo ecv(\$cl,array(),2,\"BLOG_NEWS_ARTICLE\",\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_51a8cde91aa252.75478653', 1 => array ( ), 2 => 2, 3 => 'BLOG_NEWS_ARTICLE', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => 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, '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', ))
Args -> array ( 0 => array ( 'page' => '_SELF', 'type' => '_ed', ), )

File -> '/home1/livoniaa/public_html/sources/aed_module.php'
Line -> 212
Function -> 'ed'
Class -> 'standard_aed_module'
Type -> '->'
Object -> Module_cms_blogs::__set_state(array( 'lang_type' => 'NEWS_BLOG', 'select_name' => 'TITLE', 'code_require' => 'news', 'permissions_require' => 'high', 'permissions_cat_require' => 'news', 'permissions_cat_name' => 'main_news_category', 'user_facing' => true, 'seo_type' => 'news', 'award_type' => 'news', 'possibly_some_kind_of_upload' => true, 'upload' => 'image', 'menu_label' => 'BLOGS', 'table' => 'news', 'orderer' => 'title', 'title_is_multi_lang' => true, 'permission_page_name' => 'cms_news', 'donext_type' => NULL, 'module_type' => 'blogs', 'redirect_type' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_51a8cde91aa252.75478653\']="echo ecv(\$cl,array(),2,\"BLOG_NEWS_ARTICLE\",\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_51a8cde91aa252.75478653', 1 => array ( ), 2 => 2, 3 => 'BLOG_NEWS_ARTICLE', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => 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, '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', ))
Args -> array ( )

File -> '/home1/livoniaa/public_html/sources/zones.php'
Line -> 425
Function -> 'run'
Class -> 'standard_aed_module'
Type -> '->'
Object -> Module_cms_blogs::__set_state(array( 'lang_type' => 'NEWS_BLOG', 'select_name' => 'TITLE', 'code_require' => 'news', 'permissions_require' => 'high', 'permissions_cat_require' => 'news', 'permissions_cat_name' => 'main_news_category', 'user_facing' => true, 'seo_type' => 'news', 'award_type' => 'news', 'possibly_some_kind_of_upload' => true, 'upload' => 'image', 'menu_label' => 'BLOGS', 'table' => 'news', 'orderer' => 'title', 'title_is_multi_lang' => true, 'permission_page_name' => 'cms_news', 'donext_type' => NULL, 'module_type' => 'blogs', 'redirect_type' => 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, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'posting_form_title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => '$TPL_FUNCS[\'do_runtime_51a8cde91aa252.75478653\']="echo ecv(\$cl,array(),2,\"BLOG_NEWS_ARTICLE\",\$parameters);"; ', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_51a8cde91aa252.75478653', 1 => array ( ), 2 => 2, 3 => 'BLOG_NEWS_ARTICLE', 4 => '', ), ), 'preprocessable_bits' => array ( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output' => 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, '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', ))
Args -> array ( )

File -> '/home1/livoniaa/public_html/sources/site.php'
Line -> 858
Function -> 'load_module_page'
Args -> array ( 0 => 'cms/pages/modules/cms_blogs.php', 1 => 'cms_blogs', )

File -> '/home1/livoniaa/public_html/sources/site.php'
Line -> 646
Function -> 'request_page'
Args -> array ( 0 => 'cms_blogs', 1 => true, )

File -> '/home1/livoniaa/public_html/cms/index.php'
Line -> 38
Function -> 'do_site'
Args -> array ( )

Any suggestions on where to start??

Thank you,

Mark
This issue has been filed on the tracker as issue #1255, 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:
#97654
Avatar

Honoured member

Thanks very much, Chris!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: