News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

[Resuelto:] Error al agregar cpmfetch en wordpress

Started by diegodk, October 02, 2009, 02:48:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

diegodk

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

diegodk

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

Fabricio Ferrero

Hola diegodk,

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

Saludos!
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)