forum.coppermine-gallery.net

Support => Español (Spanish) => Closed boards => Language Specific Support => cpg1.4.x Español (Spanish) => Topic started by: diegodk on October 02, 2009, 02:48:53 am

Title: [Resuelto:] Error al agregar cpmfetch en wordpress
Post by: diegodk on October 02, 2009, 02:48:53 am
hola trato de agregar el last images con el cpmfetch  a mi wordpress y me sale error

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/demilova/public_html/sitio/wp-content/themes/Infinity-theme/left.php on line 5

Warning: include(http://demilovato.com.mx/galeria/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/demilova/public_html/sitio/wp-content/themes/Infinity-theme/left.php on line 5

Warning: include() [function.include]: Failed opening 'http://demilovato.com.mx/galeria/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/demilova/public_html/sitio/wp-content/themes/Infinity-theme/left.php on line 5

Fatal error: Class 'cpm' not found in /home/demilova/public_html/sitio/wp-content/themes/Infinity-theme/left.php on line 6


y el codigo que pongo es este

<?php
  include "http://demilovato.com.mx/galeria/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("http://demilovato.com.mx/galeria/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

espero me peudan ayudar gracias
Title: Re: Error al agregar cpmfetch en wordpress
Post by: diegodk on October 02, 2009, 11:18:13 pm
lo pude solucionar solo agregue este código
<?php
  include "/home/demilova/public_html/galeria/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("/home/demilova/public_html/galeria/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(2,2);
  $objCpm->cpm_close();
?>

de todos modos gracias
Saludos
Title: Re: Error al agregar cpmfetch en wordpress
Post by: Fabricio Ferrero on October 13, 2009, 05:10:41 pm
Hola diegodk,

Disculpá la demora en contestar. Muchas gracias por volver y solucionar el tema, sirve para futuras referencias.

Saludos!