Error en searchTermTagging.php – Warning: array_unique() [function.array-unique]: The argument should be an array
Escrito por Pablo Glanzene 27
Luego de probar el plugin Search Term Tagging 1.0 me encontré con que en las páginas que aun no tienen almacenadas frases provenientes de los buscadores aparece un error: Warning: array_unique() [function.array-unique]: The argument should be an array in /home/username/public_html/wp-content/plugins/searchTermTagging.php on line 118.
Sencillamente trata de crear un array de valores unicos con el resultado de buscar todas las frases de un post, y si en post no tenemos ninguna frase, genera un error. La solución que encontré es bastante facil. Antes de crear el array nos aseguramos que la consulta a nuestra DDBB va a arrojar algún valor de no existir alguno definimos nosotros en forma manual un array con un único valor: “No hay frases”.
function stt_getinfo() { global $post; $post_ID = $post->ID; if (get_post_meta($post_ID, 'searchTerm') <> '') { $arr = array_unique(get_post_meta($post_ID, 'searchTerm')); } else { $arr = array("No hay frases") ;}; if(empty($arr)) { return false; } else { return $arr; } }
Líneas modificadas, antes 118, ahora 118, 119 y 120
Extracto del código arreglado.
Si te resultó útil este artículo no olvides de dejar un comentario o visitar alguno de los auspiciantes. Gracias
Estas frases son generadas con las palabras ingresadas en los buscadores que luego terminan en mi sitio. En algunos casos representan a contenido que si bien existe en mi blog, esta en otro post, por lo que cliqueando en cada una se puede realizar una busqueda y encontrarlo.
- Error en searchTermTagging php
- usar flash-video-player en wordpress
- array por POST
- Warning: array_unique() [function array-unique]: The argument should be an array in
- Warning: array_unique()
- Warning: array_unique() [function array-unique]
- The argument should be an array array_unique
- problema array php
- php problemas con array_unique
- array_unique problemas
- function array-unique
- generar php warning
- valores unicos en un array
- php array warning
- Warning: array_unique() [function array-unique]: The argument should be an array i
- JPG Resizer
- php problema array_unique
- error views imagenes array
- manual de administración CRM vtiger
- searchTermTagging php on line 118
- The argument should be an array in
- The argument should be an array
- The argument should be an array php
- valor unique en php
- integración alternativa outlook vtiger
- searchTermTagging wordpress
- function array flash
- php array valores únicos
- php array_unique(
- php generar warning
- array de eventos php
- array_unique() [function array-unique]: The argument should be an array in
- Warning php personalizar errores
- php array unique
- por qué elegir vtiger
- Warning: array_unique() [function array-unique]: The argument should be an array
- array_unique() [function array-unique]: The argument should be an array
- array dejar valores unicos
- fckeditor valor devolucion
- php 2 array valores únicos
- array_unique(get_post_meta($post_ID searchTerm))
- array_unique() [function array-unique]: The argument should be an array in /home/username/public_html/wp-content/plugins/searchTermTagging php on line 118
- joomla Warning: array_unique() [function array-unique]: The argument should be an array in
- pablo glanz resizer
- yarpp traducir
- linux ñ reemplazada por otros caracteres en vim
- vtiger database utf-8 no enable
- valor de funcionar con lo disponible frases
- personalizar los warning php
- ¿hay fonts modificadas con la ñ y acentos?
- searchTermTagging php
- function array joomla
- wordpress Fatal error install php on line 119
- searchTermTagging
- creando un arreglo en php
- the argument should be array array_unique
- problemas arreglo php
- flash array function parameter
- personalizar warnings php
- dejar valores unicos en un arreglo php
- plugin buscador joomla
- valores unicos array
- array unique
- devolucion de un array en php
- array_unique(): The argument should be an array php
- obtener valores unicos de un array php
- global $arr=array(); en php
- php array_unique
- array imagenes php
- array_unique php vacio
- Argument #2 should be an array
- wordpress error Warning: array_unique() [function array-unique]: The argument should be
- php array functions
- javascripr array_unique
- array_unique problem
- function unique array javascript in array
- array_unique php
- searchterm
- unique php
- vtiger array_unique
- php array_unique problem
- Warning: array_unique() [function array-unique]:
- REGISTROS UNICOS ARRAY PHP
- php matrices registros unicos
- php function personaliza errores
- get_post_meta array_unique
- array js valores unicos
- programa que lea una frase y la ubique en un vector
- personalizar un warning en php
- funcion array unique
- array unique php
- array joomla
- warning: array_unique() [function array-unique]: The argument should be an array boost
- Warning: array_unique() [function array-unique]: The argument should be an array in /
- valores unicos array javascript
- warning search terms tagging 2
- flash array unique
- array valores unicos javascript
- array_unique() php
- WARNING ARRAY PHP
- php array_unique()
- php array unique functions
- warning: array_unique() [function array-unique]: The argument should be an array in
- aparece Warning: array_unique() [function array-unique]: The argument should be an array
- wordpress error Warning: array_unique() [function array-unique]:
- wordpress Warning: array_unique() [function array-unique]:
- warning array_unique function array-unique the argument should be an array
- wpsmf warning: array_unique() [function array-unique]: the argument should be an array in
- error unique php
- warning: array_unique() [function array-unique]: the argument should be an array in
- function array_unique the argument should be an array
- warning: array_unique() [function array-unique]
- warning: array unique ()
- warning array_unique() [function array-unique]: the argument should be an array in


2 comentarios
Enviado por Lutor el 12 mayo 2009 a las 5:25
pablo me tira fatal error , tenes msn?
Enviado por Lutor el 12 mayo 2009 a las 5:32
ya esta pablito igual si queres darme tu msn estaria bueno