{"id":119,"date":"2020-12-06T22:54:36","date_gmt":"2020-12-07T01:54:36","guid":{"rendered":"https:\/\/blog.galsoft.duckdns.org\/?p=119"},"modified":"2020-12-06T22:54:36","modified_gmt":"2020-12-07T01:54:36","slug":"solucionar-error-phpmyadmin-count-parameter-must-be-an-array-or-an-object-that-implements-countable","status":"publish","type":"post","link":"https:\/\/blog.galsoft.com.ar\/?p=119","title":{"rendered":"Solucionar Error phpMyAdmin. count(): Parameter must be an array or an object that implements Countable"},"content":{"rendered":"<p id=\"852d\">La \u00faltima vez que he instalado un\u00a0<a href=\"https:\/\/www.ubuntu.com\/download\/desktop\">servidor web en Ubuntu 18.04<\/a>, me ha salido un mensaje de error en phpMyAdmin, concretamente el error:\u00a0<strong>Warning in .\/libraries\/sql.lib.php#601<\/strong><br><strong>count(): Parameter must be an array or an object that implements Countable.<\/strong><\/p>\n<p id=\"7384\">Para corregir el error\u00a0<strong>count(): Parameter must be an array or an object that implements Countable<\/strong> , o m\u00e1s bien warning, porque en principio, se puede usar normalmente phpMyAdmin, con la incomodidad de tener que pulsar en ignorar cada vez que muestra este aviso, hay que editar (como administrador) el archivo:<\/p>\n<pre class=\"wp-block-preformatted\">\/usr\/share\/phpmyadmin\/libraries\/sql.lib.php<\/pre>\n<p id=\"23c5\">Aqu\u00ed buscamos la l\u00ednea:<\/p>\n<pre class=\"wp-block-preformatted\">(count($analyzed_sql_results['select_expr'] == 1)<\/pre>\n<p id=\"76b3\">Y lo vamos a reemplazar por:<\/p>\n<pre class=\"wp-block-preformatted\">(count($analyzed_sql_results['select_expr']) == 1<\/pre>\n<p id=\"e595\">Ahora, recargamos web de phpMyAdmin y ya no debe mostrar m\u00e1s el error.<\/p>\n<p>Fuente:<\/p>\n<p><a href=\"https:\/\/medium.com\/@carlosferrerhernandez\/solucionar-error-phpmyadmin-count-parameter-must-be-an-array-f3cbde971cb4\">https:\/\/medium.com\/@carlosferrerhernandez\/solucionar-error-phpmyadmin-count-parameter-must-be-an-array-f3cbde971cb4<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>La \u00faltima vez que he instalado un\u00a0servidor web en Ubuntu 18.04, me ha salido un mensaje de error en phpMyAdmin, concretamente el error:\u00a0Warning in .\/libraries\/sql.lib.php#601count(): Parameter must be an array or an object that implements Countable. Para corregir el error\u00a0count(): Parameter must be an array or an object that implements Countable , o m\u00e1s bien [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[1,2,10,12],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-linux","category-php","category-programacion","category-windows","entry"],"_links":{"self":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":1,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":120,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions\/120"}],"wp:attachment":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}