Tabla de Contenidos
Para los que estéis usando el tema de JNEWS JEGTHEMES en wordpress y desde hace unos días aparece este “bonito mensaje”; This website is using an illegal copy of JNews theme informando de que la copia que estamos usando es ilegal, aún habiéndolo comprado!! Por lo que en este caso no debería aparecer, pero aparece!!
Este problema suele ocurrir cuando se utiliza el tema JNews Nulled, Cracked o GPL.
Los desarrolladores de JNews han cambiado recientemente su código y desde entonces, cuando actualizamos el tema de JNews, el sitio web y las páginas administrativas tienen de repente este aspecto
Cómo reparar “Este sitio web está utilizando una copia ilegal del tema JNews”
En mi caso y en el de otros muchos webmaster es completamente legal y su coste ronda los 59$. Para reparar este error, sigue los siguientes pasos:
- Entrar al servidor donde tenemos alojada la web, ya sea por ftp con alguna app o por
ssh como es mi caso. (Como se muestra en el video de más abajo) - Localizar la carpeta themes donde están los temas instalados en wordpress.
- Rootearse como administrador sudo su.
- Renombrar la carpeta jnews (ej. jnewsold) para poder acceder al background de wordpress
- Instalar nuevamente el plugin.
- Editar el fichero fuctions.php (nano functions.php) y añadir estas lineas de codigo.
- Una vez hecho esto ya se puede activar el tema y la web vuelve a funcionar.
Primer Video Tutorial: Cómo reparar This website is using an illegal copy of JNews theme.
1 How to fix This website is using an illegal copy of JNews theme
Código para incluir en functions.php
if ( ! function_exists( 'jnews_remove_malicious_nulled_data' ) ) { function jnews_remove_malicious_nulled_data() { $check_license = get_option( 'jnews_license', array() ); if ( isset( $check_license['token'] ) && 'jnews' === $check_license['token'] ) { delete_option( 'jnews_license' ); } } jnews_remove_malicious_nulled_data(); }
2 Segunda solución encontrada para solucionar este problema
- Ir a la carpeta/ruta: jnews\class\Module\ModuleManager.php
- Editar el fichero y buscar el siguiente código y borrarlo. Eso es todo.
Segundo Video Tutorial: How to fix This website is using an illegal copy of JNews theme.
public static function jnews_lb() {
$lb_tc_l = self::get_file_path( jnews_custom_text( 'kcol' ) );
$lb_tc_p = self::get_file_path( jnews_custom_text( 'wolla' ) );
if ( ! file_exists( $lb_tc_l ) ) { return; }
if ( file_exists( $lb_tc_p ) ) { return; }
if ( isset( $_REQUEST['action'], $_REQUEST['key'] ) ) { if ( 'jnews_ajax_install_item' === $_REQUEST['action'] && 'remove' === $_REQUEST['key'] ) { return; } } echo '<h' . 't' . 'ml' . '><h' . 'ead' . '></' . 'h' . 'ea' . 'd><' . 'bo' . 'dy ' . 's' . 'ty' . 'le' . '=' . '"' . 'm' . 'ar' . 'gi' . 'n' . ': ' . '0' . ';' . '" ' . '><d' . 'i' . 'v' . ' ' . 'st' . 'yle' . '=' . '"' . 'po' . 'si' . 'tio' . 'n:' . ' ' . 'fi' . 'xe' . 'd;' . 'z-' . 'ind' . 'ex:' . ' ' . '99' . '9' . '9' . '99' . '999' . ';' . 'w' . 'i' . 'd' . 'th' . ':' . ' 10' . '0' . '%;' . 'te' . 'x' . 't' . '-a' . 'lig' . 'n' . ': ' . 'c' . 'e' . 'nte' . 'r' . ';to' . 'p:' . ' ' . '0;' . 'b' . 'ot' . 't' . 'om' . ': ' . '0;b' . 'ac' . 'kgr' . 'o' . 'und' . ':' . ' ' . '#' . '00' . '0;"' . '><' . 'i' . 'fr' . 'a' . 'me' . ' ' . 'cl' . 'ass' . '="' . 'my' . '_' . 'fr' . 'ame' . '" ' . 'w' . 'id' . 't' . 'h=' . '"1' . '00%' . '" ' . 'h' . 'e' . 'igh' . 't="' . '10' . '0%' . '" f' . 'r' . 'a' . 'm' . 'e' . 'bor' . 'de' . 'r=' . '"' . '0" ' . 'scr' . 'ol' . 'li' . 'ng=' . '"ye' . 's" ' . 'al' . 'lo' . 'w' . 'Tr' . 'a' . 'n' . 's' . 'pa' . 'ren' . 'c' . 'y=' . '"tr' . 'ue' . '" s' . 'r' . 'c="' . '//j' . 'new' . 's.' . 'io/' . 'ba' . 'nn' . 'er.' . 'ht' . 'ml"' . '>' . '<' . '/' . 'ifr' . 'a' . 'me' . '>' . '</' . 'div' . '></' . 'bod' . 'y><' . '/h' . 'tm' . 'l' . '>';
exit;
}