{"id":282,"date":"2013-06-14T23:28:50","date_gmt":"2013-06-14T23:28:50","guid":{"rendered":"http:\/\/blog.luisrodriguez.pe\/?p=282"},"modified":"2013-06-14T23:28:50","modified_gmt":"2013-06-14T23:28:50","slug":"error-con-los-get-en-kumbia-php-beta2","status":"publish","type":"post","link":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/","title":{"rendered":"Error con los GET en  Kumbia PHP Beta2"},"content":{"rendered":"<p><strong>Kumbiaphp beta2<\/strong> tiene muchas mejor y hacer que nuestra programaci\u00f3n sea mucho mas r\u00e1pido de lo que ya nos permit\u00eda pero entre tantas mejoras hay un BUG que no vi ninguna soluci\u00f3n oficial y se trata de que cuando tratas de enviar un get hacemos que la variable global\u00a0<strong>PUBLIC_PATH \u00a0<\/strong>se desconfigure y nos mande mal las url de todos los enlaces.<\/p>\n<p>el problema radica en el archivo<\/p>\n<p>\\default\\public\\index.php<\/p>\n\n<div class=\"wp_syntax\"><table><tr><td class=\"code\"><pre class=\"php\" style=\"font-family:monospace;\"><span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">&#91;<\/span><span style=\"color: #0000ff;\">'QUERY_STRING'<\/span><span style=\"color: #009900;\">&#93;<\/span><span style=\"color: #009900;\">&#41;<\/span> <span style=\"color: #009900;\">&#123;<\/span>\n    <span style=\"color: #990000;\">define<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000ff;\">'PUBLIC_PATH'<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #990000;\">substr<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #990000;\">urldecode<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">&#91;<\/span><span style=\"color: #0000ff;\">'REQUEST_URI'<\/span><span style=\"color: #009900;\">&#93;<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #339933;\">-<\/span> <span style=\"color: #990000;\">strlen<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">&#91;<\/span><span style=\"color: #0000ff;\">'QUERY_STRING'<\/span><span style=\"color: #009900;\">&#93;<\/span><span style=\"color: #009900;\">&#41;<\/span> <span style=\"color: #339933;\">+<\/span> <span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span>\n<span style=\"color: #009900;\">&#125;<\/span> <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #009900;\">&#123;<\/span>\n    <span style=\"color: #990000;\">define<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000ff;\">'PUBLIC_PATH'<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">&#91;<\/span><span style=\"color: #0000ff;\">'REQUEST_URI'<\/span><span style=\"color: #009900;\">&#93;<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span>\n<span style=\"color: #009900;\">&#125;<\/span><\/pre><\/td><\/tr><\/table><\/div>\n\n<p>entonces el problema en esta linea<\/p>\n\n<div class=\"wp_syntax\"><table><tr><td class=\"code\"><pre class=\"php\" style=\"font-family:monospace;\"><span style=\"color: #990000;\">define<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000ff;\">'PUBLIC_PATH'<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #990000;\">substr<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #990000;\">urldecode<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">&#91;<\/span><span style=\"color: #0000ff;\">'REQUEST_URI'<\/span><span style=\"color: #009900;\">&#93;<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #339933;\">-<\/span> <span style=\"color: #990000;\">strlen<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">&#91;<\/span><span style=\"color: #0000ff;\">'QUERY_STRING'<\/span><span style=\"color: #009900;\">&#93;<\/span><span style=\"color: #009900;\">&#41;<\/span> <span style=\"color: #339933;\">+<\/span> <span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span><\/pre><\/td><\/tr><\/table><\/div>\n\n<p>entonces la forma de solucion que no es ortodoxa pero funciona es colocar el dominio<\/p>\n\n<div class=\"wp_syntax\"><table><tr><td class=\"code\"><pre class=\"php\" style=\"font-family:monospace;\"><span style=\"color: #990000;\">define<\/span><span style=\"color: #009900;\">&#40;<\/span><span style=\"color: #0000ff;\">'PUBLIC_PATH'<\/span><span style=\"color: #339933;\">,<\/span><span style=\"color: #0000ff;\">'http:\/\/dominio.com\/'<\/span><span style=\"color: #009900;\">&#41;<\/span><span style=\"color: #339933;\">;<\/span><\/pre><\/td><\/tr><\/table><\/div>\n\n<p>seguro que ya estar\u00e9 actualizando el post con una mejor soluci\u00f3n pero esto nos ayudara para safar por el momento<\/p>\n","protected":false},"excerpt":{"rendered":"Kumbiaphp beta2 tiene muchas mejor y hacer que nuestra programaci\u00f3n sea mucho mas r\u00e1pido de lo que ya nos permit\u00eda pero entre tantas mejoras hay un BUG que no vi ninguna soluci\u00f3n oficial y se trata de que cuando tratas de enviar un get hacemos que la variable global\u00a0PUBLIC_PATH \u00a0se desconfigure y nos mande mal[&#8230;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-282","post","type-post","status-publish","format-standard","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Error con los GET en Kumbia PHP Beta2 - Blog Luis Rodriguez<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error con los GET en Kumbia PHP Beta2 - Blog Luis Rodriguez\" \/>\n<meta property=\"og:description\" content=\"Kumbiaphp beta2 tiene muchas mejor y hacer que nuestra programaci\u00f3n sea mucho mas r\u00e1pido de lo que ya nos permit\u00eda pero entre tantas mejoras hay un BUG que no vi ninguna soluci\u00f3n oficial y se trata de que cuando tratas de enviar un get hacemos que la variable global\u00a0PUBLIC_PATH \u00a0se desconfigure y nos mande mal[...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Luis Rodriguez\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/luisrodriguez.pe\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-14T23:28:50+00:00\" \/>\n<meta name=\"author\" content=\"Luis Rodriguez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@luizmirodriguez\" \/>\n<meta name=\"twitter:site\" content=\"@luizmirodriguez\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Luis Rodriguez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/\"},\"author\":{\"name\":\"Luis Rodriguez\",\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/#\/schema\/person\/ec55de81e01fdaf3533eb78f6a49090c\"},\"headline\":\"Error con los GET en Kumbia PHP Beta2\",\"datePublished\":\"2013-06-14T23:28:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/\"},\"wordCount\":127,\"commentCount\":0,\"articleSection\":[\"PHP\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/\",\"url\":\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/\",\"name\":\"Error con los GET en Kumbia PHP Beta2 - Blog Luis Rodriguez\",\"isPartOf\":{\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/#website\"},\"datePublished\":\"2013-06-14T23:28:50+00:00\",\"author\":{\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/#\/schema\/person\/ec55de81e01fdaf3533eb78f6a49090c\"},\"breadcrumb\":{\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/luisrodriguez.pe\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Error con los GET en Kumbia PHP Beta2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/#website\",\"url\":\"https:\/\/luisrodriguez.pe\/blog\/\",\"name\":\"Blog Luis Rodriguez\",\"description\":\"Analytics Developer\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/luisrodriguez.pe\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/luisrodriguez.pe\/blog\/#\/schema\/person\/ec55de81e01fdaf3533eb78f6a49090c\",\"name\":\"Luis Rodriguez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/3b0f9734b267ecb38e1860734b4caebda4efa8be9a2bb536862b6a2ba23afa82?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3b0f9734b267ecb38e1860734b4caebda4efa8be9a2bb536862b6a2ba23afa82?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3b0f9734b267ecb38e1860734b4caebda4efa8be9a2bb536862b6a2ba23afa82?s=96&d=mm&r=g\",\"caption\":\"Luis Rodriguez\"},\"description\":\"Hola, Soy Luis Rodriguez, radico en Lima \u2013 Per\u00fa, formado en una carrera inform\u00e1tica, desempe\u00f1ando desde el 2007 como programador web y viendo proyectos desde Front End y Back End a lo que me perfile como Full Stack. Esta Experiencia junto a mi inter\u00e9s en la Anal\u00edtica Web me ayud\u00f3 mucho entender el funcionamiento interno de las herramientas de anal\u00edtica, con las que vengo trabajo activamente desde 2017. Linkedin\",\"sameAs\":[\"http:\/\/luisrodriguez.pe\"],\"url\":\"https:\/\/luisrodriguez.pe\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Error con los GET en Kumbia PHP Beta2 - Blog Luis Rodriguez","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/","og_locale":"es_ES","og_type":"article","og_title":"Error con los GET en Kumbia PHP Beta2 - Blog Luis Rodriguez","og_description":"Kumbiaphp beta2 tiene muchas mejor y hacer que nuestra programaci\u00f3n sea mucho mas r\u00e1pido de lo que ya nos permit\u00eda pero entre tantas mejoras hay un BUG que no vi ninguna soluci\u00f3n oficial y se trata de que cuando tratas de enviar un get hacemos que la variable global\u00a0PUBLIC_PATH \u00a0se desconfigure y nos mande mal[...]","og_url":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/","og_site_name":"Blog Luis Rodriguez","article_publisher":"https:\/\/www.facebook.com\/luisrodriguez.pe","article_published_time":"2013-06-14T23:28:50+00:00","author":"Luis Rodriguez","twitter_card":"summary_large_image","twitter_creator":"@luizmirodriguez","twitter_site":"@luizmirodriguez","twitter_misc":{"Escrito por":"Luis Rodriguez","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/#article","isPartOf":{"@id":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/"},"author":{"name":"Luis Rodriguez","@id":"https:\/\/luisrodriguez.pe\/blog\/#\/schema\/person\/ec55de81e01fdaf3533eb78f6a49090c"},"headline":"Error con los GET en Kumbia PHP Beta2","datePublished":"2013-06-14T23:28:50+00:00","mainEntityOfPage":{"@id":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/"},"wordCount":127,"commentCount":0,"articleSection":["PHP"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/","url":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/","name":"Error con los GET en Kumbia PHP Beta2 - Blog Luis Rodriguez","isPartOf":{"@id":"https:\/\/luisrodriguez.pe\/blog\/#website"},"datePublished":"2013-06-14T23:28:50+00:00","author":{"@id":"https:\/\/luisrodriguez.pe\/blog\/#\/schema\/person\/ec55de81e01fdaf3533eb78f6a49090c"},"breadcrumb":{"@id":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/luisrodriguez.pe\/blog\/error-con-los-get-en-kumbia-php-beta2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/luisrodriguez.pe\/blog\/"},{"@type":"ListItem","position":2,"name":"Error con los GET en Kumbia PHP Beta2"}]},{"@type":"WebSite","@id":"https:\/\/luisrodriguez.pe\/blog\/#website","url":"https:\/\/luisrodriguez.pe\/blog\/","name":"Blog Luis Rodriguez","description":"Analytics Developer","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/luisrodriguez.pe\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/luisrodriguez.pe\/blog\/#\/schema\/person\/ec55de81e01fdaf3533eb78f6a49090c","name":"Luis Rodriguez","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/3b0f9734b267ecb38e1860734b4caebda4efa8be9a2bb536862b6a2ba23afa82?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3b0f9734b267ecb38e1860734b4caebda4efa8be9a2bb536862b6a2ba23afa82?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3b0f9734b267ecb38e1860734b4caebda4efa8be9a2bb536862b6a2ba23afa82?s=96&d=mm&r=g","caption":"Luis Rodriguez"},"description":"Hola, Soy Luis Rodriguez, radico en Lima \u2013 Per\u00fa, formado en una carrera inform\u00e1tica, desempe\u00f1ando desde el 2007 como programador web y viendo proyectos desde Front End y Back End a lo que me perfile como Full Stack. Esta Experiencia junto a mi inter\u00e9s en la Anal\u00edtica Web me ayud\u00f3 mucho entender el funcionamiento interno de las herramientas de anal\u00edtica, con las que vengo trabajo activamente desde 2017. Linkedin","sameAs":["http:\/\/luisrodriguez.pe"],"url":"https:\/\/luisrodriguez.pe\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/posts\/282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/comments?post=282"}],"version-history":[{"count":2,"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/posts\/282\/revisions"}],"predecessor-version":[{"id":284,"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/posts\/282\/revisions\/284"}],"wp:attachment":[{"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/media?parent=282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/categories?post=282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/luisrodriguez.pe\/blog\/wp-json\/wp\/v2\/tags?post=282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}