Categorías
programación WordPress

De repente, sin comentarios

Imagínate. Estás tan feliz un día con tu blog, escribiendo, y al día siguiente te han desaparecido los comentarios.

– Será del Spam Karma –piensas –que se ha comido todos los comentarios, habrá subido el filtro de karma.

Pues no. No hay comentarios. Ninguno. Cero. Vacío.

Base de datos. Tabla wp-comments. ERROR.

Error
consulta SQL: 

SHOW INDEX FROM `wp_comments` ;


MySQL ha dicho: 

#1016 - Can't open file: 'wp_comments.MYI'. (errno: 145) 

¿Y ahora? Tampoco permite hacer copia de la base de datos, dice que está en uso.

Pues justamente eso, intenta realizar cualquier acción a través del SQL en la tabla, y ésta se desbloqueará.

Trivial, sí, pero un engorro y un susto muy grande.

(Gracias, penyaskito, por el aviso).

Categorías
WordPress

Cheap Viagra 2.3.2

Si usas WordPress y todavía no has actualizado a la versión 2.3.3. ¡hazlo ya!

Si no, conseguirás tener un index.php como el mío (o no, porque tengo otros cuantos blogs en 2.3.2. y no pasa en ninguno más):

<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?≫
<font style='position: absolute;overflow: hidden;height: 0;width: 0'≫
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=viagra.htm" title="viagra"≫viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=buy-viagra.htm" title="buy viagra"≫buy viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=generic-viagra.htm" title="generic viagra"≫generic viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=buy-viagra-online.htm" title="buy viagra online"≫buy viagra online</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=buy-viagra.htm" title="buy viagra"≫buy viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=online-viagra.htm" title="online viagra"≫online viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=viagra-online.htm" title="viagra online"≫viagra online</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=cheap-viagra.htm" title="cheap viagra"≫cheap viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=buy-viagra-online-viagra.htm" title="buy viagra online viagra"≫buy viagra online viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=discount-viagra.htm" title="discount viagra"≫discount viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=online-viagra.htm" title="online viagra"≫online viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=order-viagra.htm" title="order viagra"≫order viagra</a≫ 
<a href="http://www.progressivepharm.com" title="order viagra online"≫order viagra online</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=free-viagra.htm" title="free viagra"≫free viagra</a≫ 
<a href="http://www.uapb.edu/pictures/small/~tmp/tmp/viagra/page.php?q=viagra-alternative.htm" title="viagra alternative"≫viagra alternative</a≫ 

Y así hasta la línea 1137.

¡Revisad vuestros index.php!

Es un consejo de RareN, el bióxido al que le pasan cosas raras cada vez que toca un WordPress.

Categorías
código abierto programación WordPress

Errorcillos en WP-µ

Es lo que tiene el software libre. Cuando tienes un problema, en vez de quejarte, lo arreglas ;).

Por si alguien usa WordPress MU también, hemos encontrado un fallito que daba mucho por saco.

Cuando estás autentificado en el sistema, al intentar entrar en la parte de administración de algunos blogs escribiéndolo en la barra de direcciones, te mandaba a cualquier otro sitio menos a donde tú querías ir. Así que le hemos arreglado la dirección para que vaya bien :).

Un sencillo cambio. Da gusto que WordPress trabaje con variables globales de forma tan sencilla.


Just be careful, it can be annoying.

When accessing your WP-µ, you can either use wp-login.php or enter /wp-admin/

If you are not authentified, the system will work correctly. But if you are authentified, it will try to reach wp-admin/ and it will fail.

If you want to patch it:

1. Go to your wp-login.php file in your host.
2. Go to line 213, and make this change:

$redirect_to = 'wp-admin/';
$redirect_to = ABSPATH . 'wp-admin/';

It will work correctly again.


Si alguien tiene algo más que aportar, puede hacerlo desde el mismo foro o puede dejarlo en los comentarios.

EDIT:

Las cosas de escribir muy rápido, que al final no pones todo lo que tienes que poner.

Ahora, bien explicado, lo que le ocurre al WordPressµ es que si intentas entrar en cualquier blog del multiblog con un usuario que no tenga permisos, intenta llevarte de nuevo a la página /wp-admin/. Pero se olvidaron de ponerle una pequeña variable que indica cuál es el dominio en el que estamos para que lo haga bien.

Si alguien tiene algo que aportar, ahora está en el trac.


Just founded a small problem on my system.

Apache/1.3.39 (Unix) mod_perl/1.29 PHP/4.4.7 MySQL/4.1.22

I have installed a WPµ site with multiple blogs and users.

When accessing WP-µ using administrator, or without being authentified, I have no problem at all. But, if you are authentified, and try to enter to another blog where you have no rights, it will try to reach wp-admin/ and it will fail, sending you to page http://wp-admin/ (or, if your DNS works like that, http://www.wp-admin.com).

It also happens if you are not authentified at all and try to enter in other blog of the multiblog where you have not any rights with your user. It means, you try to enter in http://myblog.com/mattsblog/wp-admin/ with the user of /jacksblog/ and it will reach http://wp-admin/

I have found a simple solution.

1. Go to your wp-login.php file in your host.

2. Go to line 213, and make this change:

$redirect_to = 'wp-admin/';
$redirect_to = ABSPATH . 'wp-admin/';

It will work correctly again.


EDIT 2:

Hay que seguir mirando. Elimina el error en algunos blogs, pero no en el principal.

EDIT FINAL:

Solucionado en http://trac.mu.wordpress.org/changeset/1198 (gracias Donncha)