x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Reply
 
LinkBack Thread Tools Display Modes
x10Hosting Member

Join Date: Jul 2008
Posts: 5
Credits: 368
SoulEaterARG is on a distinguished road
Quote  
07-16-2008, 05:45 PM
Problema con Cutenews :S

Hola gente como van? bueno escribo aqui porque tengo un problemita que no me deja avanzar en nada.. :S con el cutenews, este es el error:
Code:
Catchable fatal error: Object of class template could not be converted to string in /home/seater/public_html/noticias/inc/functions.inc.php on line 20
este codigo sale cuando integro el cutenews en la web mediante
PHP Code:
<?PHP include("noticias/show_news.php"); ?>
al principio pense que era por la version php, pero me pase al intermedio pero aun asi sigue sin tirar las noticias.. :S
desde ya gracias y hasta luego..
Reply With Quote
SoulEaterARG is offlineReport Post
♫ ¤- Spanish Sr AM -¤ ♫

GM Punk's Avatar

Join Date: Jan 2008
Posts: 3,561
Credits: 24,414
GM Punk has a spectacular aura about
Location: university

Send a message via MSN to GM Punk
Quote  
07-16-2008, 06:05 PM
Re: Problema con Cutenews :S

lo que pasa es ke debes utilizar este codigo:
PHP Code:
<?PHP include("/home/seater/public_html/noticias/show_news.php"); ?>
Si te fijas, aki incluyes la ruta desde el directorio "home" hasta donde esta el cutenews


salu2
__________________

Importante:
☻A toda la comunidad hispana, lean atentamente: "Nuevo Sistema de Soporte"☻

About Me | Sobre Mi
× PM × E-Mail × Donar ×
Tambien pueden contactarme cuando me vean en IRC.

Last edited by GM Punk; 07-16-2008 at 06:06 PM.
Reply With Quote
GM Punk is offlineReport Post
x10Hosting Member

Join Date: Jul 2008
Posts: 5
Credits: 368
SoulEaterARG is on a distinguished road
Quote  
07-17-2008, 01:30 PM
Re: Problema con Cutenews :S

Gracias lo voy a probar..enseguida les cuento que pasa..




Sigue sin funcionar.. :S y con el mismo error.. :S

Last edited by SoulEaterARG; 07-17-2008 at 01:33 PM.
Reply With Quote
SoulEaterARG is offlineReport Post
x10 Lieutenant

Join Date: May 2006
Posts: 391
Credits: 10,309
eZakto will become famous soon enough
Location: Salta, Argentina.

Quote  
07-17-2008, 02:02 PM
Re: Problema con Cutenews :S

Podrías postear las líneas de la 15 a la 25 del archivo functions.inc.php?
__________________
eZakto
Reply With Quote
eZakto is offlineReport Post
x10Hosting Member

Join Date: Jul 2008
Posts: 5
Credits: 368
SoulEaterARG is on a distinguished road
Quote  
07-17-2008, 02:10 PM
Re: Problema con Cutenews :S

okas ahora te las paso ..
Edit:
PHP Code:

//----------------------------------
// Sanitize Variables
//----------------------------------
if( isset($template) and $template != "" and !eregi("^[_a-zA-Z0-9-]{1,}$"$template)){ die("invalid template characters"); }
if( isset(
$archive) and $archive != "" and !eregi("^[_a-zA-Z0-9-]{1,}$"$archive)){ die("invalid archive characters"); }



if(
$PHP_SELF == ""){ $PHP_SELF $HTTP_SERVER_VARS["PHP_SELF"]; } 

Last edited by SoulEaterARG; 07-17-2008 at 02:10 PM. Reason: Automerged Doublepost
Reply With Quote
SoulEaterARG is offlineReport Post
x10 Lieutenant

Join Date: May 2006
Posts: 391
Credits: 10,309
eZakto will become famous soon enough
Location: Salta, Argentina.

Quote  
07-17-2008, 02:48 PM
Re: Problema con Cutenews :S

¿Qué se supone que es $template?
Si se trata de un objeto, si dicho objeto no tiene el método __toString entonces no puede ser tratado como una cadena de texto, que es lo que estás haciendo.

Saludos.
__________________
eZakto
Reply With Quote
eZakto is offlineReport Post
x10Hosting Member

Join Date: Jul 2008
Posts: 5
Credits: 368
SoulEaterARG is on a distinguished road
Quote  
07-17-2008, 02:54 PM
Re: Problema con Cutenews :S

bueno ya descubri el problema.. :S, lo que pasa es que tengo un include y un codigo php antes para que llame el foro por que tengo el sistema de usuarios integrado al del foro..
Alguna idea sobre lo que puedo hacer?

Last edited by SoulEaterARG; 07-17-2008 at 04:59 PM.
Reply With Quote
SoulEaterARG is offlineReport Post
x10 Lieutenant

Join Date: May 2006
Posts: 391
Credits: 10,309
eZakto will become famous soon enough
Location: Salta, Argentina.

Quote  
07-17-2008, 07:16 PM
Re: Problema con Cutenews :S

Ese error se debe a que estás tratando al un objeto como cadena, y no puedes.
Cito de php.net:
Quote:
[As of (at least) PHP 5.2, you can no longer convert an object to a string unless it has a __toString method. Converting an object without this method now gives the error:

PHP Catchable fatal error: Object of class <classname> could not be converted to string in <file> on line <line>

Try this code to get the same results as before:

PHP Code:
<?php

if (!is_object($value) || method_exists($value'__toString')) {
    
$string = (string)$value;
} else {
    
$string 'Object';
}

?>
__________________
eZakto
Reply With Quote
eZakto is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
{Tutorial} Using CuteNews Zenax Tutorials 1 02-09-2008 06:34 PM
Problema con Cutenews Kansy Soporte 6 11-27-2007 11:11 AM
CuteNews News Installation WoWChat The Marketplace 0 10-16-2007 06:12 PM
Problema con cutenews yearzero Soporte 2 09-28-2007 12:08 PM
Problema con hosting, ftp, acceso... MaZice Soporte 2 08-26-2007 05:26 AM


All times are GMT -5. The time now is 08:43 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Mortgages | Loans | Currency Converter | Per Insurance | Adverse Credit Remortgage