Fatal error: Call to undefined function contenido()
Moderator: General Moderators
Fatal error: Call to undefined function contenido()
Hello, i need your help plz,
I have moved a site from one server to another, and from that moment i have an error in almost all pages of the site. Except the main page. Down there its the code of one of the pages that gives me the error, and in red i have marked the line that is making the error. That line is equal in every other page that give me error. PLZ help.
The site is http://www.picasso-sg.com
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Picasso Simotal Group</title>
<meta name="title" content="Picasso Simotal Group">
<meta name="keywords" content=" trajes,guantes,escarpines,fusiles,flechas,gomas,ogivas,aletas,tubos,gafas,bolsas,boyas,cuchillos,com binasions,gants,chaussons,arbaletes,flèches,sandows,obus,palmes,tubas,masques,sacs,bouees,couteaux,t -shirts,mute,guanti,calzari,fucili,aste,elastici,ogive,pinne,tubi,maschere,borse,boe,coltelli,wet suits,gloves,socks,guns,spears,rubbers,briles,fins,snorkels,masks,bags,buoys,knives,fatos,luvas,bota s,espindargas,arpões,elásticos,barbatanas,boias,facas">
<meta name="description" content="Fabricación y distribución de material para la práctica de la pesca submarina">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="01-Mar-94 00:00:01 GTM">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="no-cache,no-store,must-revalidate">
<meta name="GOOGLEBOT" CONTENT="index follow">
<meta name="robots" content="index,follow,all">
<meta name="revisit" content="7 days">
<meta name="AUTHOR" content="Abity Comunicación Multimedia, SL - http://WWW.ABITY.COM">
<SCRIPT LANGUAGE="JavaScript1.2" SRC="../../js/scripts_comun.js" TYPE='text/javascript'></SCRIPT>
<link href="../../css/picasso-sg.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="../../js/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="2"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shoc ... n=7,0,19,0',' width','740','height','125','src','barranav_cat1','quality','high','pluginspage','http:// http://www.macromedia.com/go/getflashpl ... ranav_cat1' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shoc ... n=7,0,19,0" width="740" height="125">
<param name="movie" value="barranav_cat1.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="barranav_cat1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="125"></embed>
</object></noscript></td>
</tr>
<tr>
<td colspan="2"><img src="../../images/esp_blanco.gif" width="740" height="2"></td>
</tr>
<tr>
<td valign="top" class="fondoLineaURLIzda"><img src="../../images/esp_blanco.gif" width="23" height="22"></td>
<td width="575" rowspan="2" align="left" valign="top">
<?php
include("cat1_fichas.php");
$contenido();
?> </td>
</tr>
<tr>
<td width="165" valign="top" bgcolor="#407E9F"><table width="165" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="165" valign="top"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shoc ... n=7,0,19,0',' width','165','height','165','src','../../swf/randomimage','quality','high','pluginspage','http:// http://www.macromedia.com/go/getflashpl ... andomimage' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shoc ... n=7,0,19,0" width="165" height="165">
<param name="movie" value="../../swf/randomimage.swf">
<param name="quality" value="high">
<embed src="../../swf/randomimage.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="165" height="165"></embed>
</object></noscript></td>
</tr>
<tr>
<td align="left" valign="top"><img src="../../images/esp_blanco.gif" width="165" height="10"></td>
</tr>
<tr>
<td height="300" align="left" valign="top" class="fondoListadoProductosIzda"><p><a href="cat1.php?contenido=prod_1_9" class="tituloMenuProductos">chicle </a><br>
<a href="cat1.php?contenido=prod_1_5" class="tituloMenuProductos">ghost</a><br>
<a href="cat1.php?contenido=prod_1_4" class="tituloMenuProductos">dark</a><br>
<a href="cat1.php?contenido=prod_1_7" class="tituloMenuProductos">apnos / junior </a><br>
<a href="cat1.php?contenido=prod_1_8" class="tituloMenuProductos">comercial </a></p>
<p><a href="cat1.php?contenido=index" class="tituloMenuProductos">índice</a><br>
</p></td>
</tr>
</table></td>
</tr>
<tr align="center" valign="middle">
<td height="65" colspan="2" class="fondoPiePagima"><table width="720" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="50"><table width="360" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="42"><img src="../../images/logo_picasso_piepagina.gif" width="37" height="24"></td>
<td class="textoPiePagina"><p><strong>©2004-2008 Latomis Imp. Exp., Lda </strong><br>
Zambujal de Baixo - 2970 Castelo Sesimbra (Portugal) <br>
Tel. +35 121 2686122 Fax. +35 121 2682349 </p></td>
</tr>
</table></td>
<td width="50%" height="50" align="right" valign="top" class="textoPiePagina"><a href="../../index.php" class="textoPiePagina">Inicio</a> | <a href="../picasso/legal.php" class="textoPiePagina">Informação Legal</a> | <a href="../picasso/privacidad.php" class="textoPiePagina">Apólice de Privacidade</a> </td>
</tr>
</table></td>
</tr>
<tr align="center" valign="top">
<td height="50" colspan="2" align="left" valign="middle">
<?php
$path= $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']))$path.='?'.$_SERVER['QUERY_STRING'];
echo '<a href="../../it'. substr($path,3) . '"><img src="../../images/ico_idioma_it.gif" alt="italiano" border="0"></a>' .
'<a href="../../fr'. substr($path,3) . '"><img src="../../images/ico_idioma_fr.gif" alt="française" border="0"></a>' .
'<a href="../../es'. substr($path,3) . '"><img src="../../images/ico_idioma_es.gif" alt="español" border="0"></a>' .
'<a href="../../en'. substr($path,3) . '"><img src="../../images/ico_idioma_en.gif" alt="english" border="0"></a>' .
'<a href="../../pt'. substr($path,3) . '"><img src="../../images/ico_idioma_pt.gif" alt="portuguesse" border="0"></a>';
?>
</td>
</tr>
</table>
</body>
</html>
I have moved a site from one server to another, and from that moment i have an error in almost all pages of the site. Except the main page. Down there its the code of one of the pages that gives me the error, and in red i have marked the line that is making the error. That line is equal in every other page that give me error. PLZ help.
The site is http://www.picasso-sg.com
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Picasso Simotal Group</title>
<meta name="title" content="Picasso Simotal Group">
<meta name="keywords" content=" trajes,guantes,escarpines,fusiles,flechas,gomas,ogivas,aletas,tubos,gafas,bolsas,boyas,cuchillos,com binasions,gants,chaussons,arbaletes,flèches,sandows,obus,palmes,tubas,masques,sacs,bouees,couteaux,t -shirts,mute,guanti,calzari,fucili,aste,elastici,ogive,pinne,tubi,maschere,borse,boe,coltelli,wet suits,gloves,socks,guns,spears,rubbers,briles,fins,snorkels,masks,bags,buoys,knives,fatos,luvas,bota s,espindargas,arpões,elásticos,barbatanas,boias,facas">
<meta name="description" content="Fabricación y distribución de material para la práctica de la pesca submarina">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="01-Mar-94 00:00:01 GTM">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="no-cache,no-store,must-revalidate">
<meta name="GOOGLEBOT" CONTENT="index follow">
<meta name="robots" content="index,follow,all">
<meta name="revisit" content="7 days">
<meta name="AUTHOR" content="Abity Comunicación Multimedia, SL - http://WWW.ABITY.COM">
<SCRIPT LANGUAGE="JavaScript1.2" SRC="../../js/scripts_comun.js" TYPE='text/javascript'></SCRIPT>
<link href="../../css/picasso-sg.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="../../js/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="2"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shoc ... n=7,0,19,0',' width','740','height','125','src','barranav_cat1','quality','high','pluginspage','http:// http://www.macromedia.com/go/getflashpl ... ranav_cat1' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shoc ... n=7,0,19,0" width="740" height="125">
<param name="movie" value="barranav_cat1.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="barranav_cat1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="125"></embed>
</object></noscript></td>
</tr>
<tr>
<td colspan="2"><img src="../../images/esp_blanco.gif" width="740" height="2"></td>
</tr>
<tr>
<td valign="top" class="fondoLineaURLIzda"><img src="../../images/esp_blanco.gif" width="23" height="22"></td>
<td width="575" rowspan="2" align="left" valign="top">
<?php
include("cat1_fichas.php");
$contenido();
?> </td>
</tr>
<tr>
<td width="165" valign="top" bgcolor="#407E9F"><table width="165" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="165" valign="top"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shoc ... n=7,0,19,0',' width','165','height','165','src','../../swf/randomimage','quality','high','pluginspage','http:// http://www.macromedia.com/go/getflashpl ... andomimage' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shoc ... n=7,0,19,0" width="165" height="165">
<param name="movie" value="../../swf/randomimage.swf">
<param name="quality" value="high">
<embed src="../../swf/randomimage.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="165" height="165"></embed>
</object></noscript></td>
</tr>
<tr>
<td align="left" valign="top"><img src="../../images/esp_blanco.gif" width="165" height="10"></td>
</tr>
<tr>
<td height="300" align="left" valign="top" class="fondoListadoProductosIzda"><p><a href="cat1.php?contenido=prod_1_9" class="tituloMenuProductos">chicle </a><br>
<a href="cat1.php?contenido=prod_1_5" class="tituloMenuProductos">ghost</a><br>
<a href="cat1.php?contenido=prod_1_4" class="tituloMenuProductos">dark</a><br>
<a href="cat1.php?contenido=prod_1_7" class="tituloMenuProductos">apnos / junior </a><br>
<a href="cat1.php?contenido=prod_1_8" class="tituloMenuProductos">comercial </a></p>
<p><a href="cat1.php?contenido=index" class="tituloMenuProductos">índice</a><br>
</p></td>
</tr>
</table></td>
</tr>
<tr align="center" valign="middle">
<td height="65" colspan="2" class="fondoPiePagima"><table width="720" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" height="50"><table width="360" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="42"><img src="../../images/logo_picasso_piepagina.gif" width="37" height="24"></td>
<td class="textoPiePagina"><p><strong>©2004-2008 Latomis Imp. Exp., Lda </strong><br>
Zambujal de Baixo - 2970 Castelo Sesimbra (Portugal) <br>
Tel. +35 121 2686122 Fax. +35 121 2682349 </p></td>
</tr>
</table></td>
<td width="50%" height="50" align="right" valign="top" class="textoPiePagina"><a href="../../index.php" class="textoPiePagina">Inicio</a> | <a href="../picasso/legal.php" class="textoPiePagina">Informação Legal</a> | <a href="../picasso/privacidad.php" class="textoPiePagina">Apólice de Privacidade</a> </td>
</tr>
</table></td>
</tr>
<tr align="center" valign="top">
<td height="50" colspan="2" align="left" valign="middle">
<?php
$path= $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']))$path.='?'.$_SERVER['QUERY_STRING'];
echo '<a href="../../it'. substr($path,3) . '"><img src="../../images/ico_idioma_it.gif" alt="italiano" border="0"></a>' .
'<a href="../../fr'. substr($path,3) . '"><img src="../../images/ico_idioma_fr.gif" alt="française" border="0"></a>' .
'<a href="../../es'. substr($path,3) . '"><img src="../../images/ico_idioma_es.gif" alt="español" border="0"></a>' .
'<a href="../../en'. substr($path,3) . '"><img src="../../images/ico_idioma_en.gif" alt="english" border="0"></a>' .
'<a href="../../pt'. substr($path,3) . '"><img src="../../images/ico_idioma_pt.gif" alt="portuguesse" border="0"></a>';
?>
</td>
</tr>
</table>
</body>
</html>
Last edited by Acroman on Thu Nov 06, 2008 8:02 am, edited 1 time in total.
Re: Fatal error: Call to undefined function contenido()
Sorry, it was incomplete when i passed it to the forum, i already updated it.
the line is:
$contenido();
the line is:
$contenido();
Re: Fatal error: Call to undefined function contenido()
I'm going to guess you're not trying to use a function reference, so just remove the $.
Re: Fatal error: Call to undefined function contenido()
I already tried. give me another error. -> "Fatal error: Function name must be a string"

Re: Fatal error: Call to undefined function contenido()
Is the function name actually 'contenido'? There's no accents or anything on any of the letters?
Re: Fatal error: Call to undefined function contenido()
Contenido is not a function:
Code: Select all
<td height="300" align="left" valign="top" class="fondoListadoProductosIzda"><p><a href="cat1.php?contenido=prod_1_9" class="tituloMenuProductos">chicle </a><br>
<a href="cat1.php?contenido=prod_1_5" class="tituloMenuProductos">ghost</a><br>
<a href="cat1.php?contenido=prod_1_4" class="tituloMenuProductos">dark</a><br>
<a href="cat1.php?contenido=prod_1_7" class="tituloMenuProductos">apnos / junior </a><br>
<a href="cat1.php?contenido=prod_1_8" class="tituloMenuProductos">comercial </a></p>
<p><a href="cat1.php?contenido=index" class="tituloMenuProductos">índice</a><br>Re: Fatal error: Call to undefined function contenido()
i don't know php a lot... can you guys help me do this?
i don't even know what is or isn't a function... :s
i don't even know what is or isn't a function... :s
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Fatal error: Call to undefined function contenido()
It looks like you are using a variable function name. This is totally acceptable in PHP but terribly confusing.
In the included file I would guess that there is a procedure somewhere that sets the variable $contenido to a value. Where is that being done? What is it being set to? Does a function exist with the name of the value of $contenido?
In the included file I would guess that there is a procedure somewhere that sets the variable $contenido to a value. Where is that being done? What is it being set to? Does a function exist with the name of the value of $contenido?