Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Error Web - - Call to a member function fetchrow() on a non-object  (Visto 1030 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline MichaelxD Posteado: July 23, 2018, 07:11:52 PM

  • Colaborador
  • +1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 263
  • Gracias recibida: 473
  • ve
Citar
Fatal error: Call to a member function fetchrow() on a non-object in C:\web\htdocs\modules\user\profile.php on line 17
 

Code: [Select]
<?
if(!isset($_GET['op'])){
require("../includes/denied.php");
denied('profile');
}
?>
<?
require("config.php");
if ($_GET['profile']==NULL){jump('index.php');}
$account_get = "$_GET[profile]";
$account_get = str_replace(";","",$account_get);
$account_get = str_replace("'","",$account_get);
$profile_sql = $db->Execute("Select country,gender,age,avatar,hide_profile,y,msn,aim,icq,skype from memb_info where memb___id='$account_get'");
$profile_info = $profile_sql->fetchrow();
$profile_info_check = $profile_sql->numrows();
if($profile_info_check <= 0 ) {jump('index.php');}
if($profile_info[4] == '1'){jump('index.php');}
if($profile_info[0] == '0'){$profile_info[0] = "No configurado.";}
if($profile_info[3] == NULL){$profile_info[3] = "images/no_avatar.jpg";}
if($profile_info[1] == 'male'){$profile_info[1] = "<table><tr><td>Masculino</td><td><img src='images/male.gif'></td></tr></table>";}
elseif($profile_info[1] == 'female'){$profile_info[1] = "<table><tr><td>Femenino</td><td><img src='images/female.gif'></td></tr></table>";}
?>

<div align="center">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <table width="335" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="335"><fieldset>
        <legend>Perfil Solicitado </legend>
        <div align="center">
          <table width="200" border="0" cellspacing="4" cellpadding="0">
            <tr>
              <td width="49">País</td>
              <td width="139"><div align="left"><? echo("$profile_info[0]"); ?></div></td>
            </tr>
            <tr>
              <td>Edad</td>
              <td><div align="left"><? echo("$profile_info[2]"); ?></div></td>
            </tr>
            <tr>
              <td>Género</td>
              <td><div align="left"><? echo("$profile_info[1]"); ?></div></td>
            </tr>
            <tr>
              <td>Avatar</td>
              <td><div align="left"><img  width="100" height="100" src="<? echo("$profile_info[3]"); ?>"></div></td>
            </tr>
          </table>
          <table width="200" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <table width="200" border="0" cellspacing="4" cellpadding="0">
            <tr>
              <td><div align="center">Mensajerías Instantáneas</div></td>
            </tr>
          </table>
          <table width="232" border="0" cellspacing="4" cellpadding="0">
            <tr>
              <td width="42"><div align="left">Y!:</div></td>
              <td width="178"><div align="left"><? echo("$profile_info[5]"); ?></div></td>
            </tr>
            <tr>
              <td><div align="left">MSN:</div></td>
              <td><div align="left"><? echo("$profile_info[6]"); ?></div></td>
            </tr>
            <tr>
              <td><div align="left">IRC:</div></td>
              <td><div align="left"><? echo("$profile_info[7]"); ?></div></td>
            </tr>
            <tr>
              <td><div align="left">ICQ:</div></td>
              <td><div align="left"><? echo("$profile_info[8]"); ?></div></td>
            </tr>
            <tr>
              <td><div align="left">Skype:</div></td>
              <td><div align="left"><? echo("$profile_info[9]"); ?></div></td>
            </tr>
          </table>
        </div>
      </fieldset></td>
    </tr>
  </table>
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>


Quien tiene alguna idea de como arreglar este detalle?

Gracias:


Offline ZabiinoOo #1 Posteado: July 23, 2018, 07:24:56 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.314
  • Gracias recibida: 126207
  • pe
Amigo tenes que decir que cmsweb estas usando, que servidor web estas usando, y dar mas informacion para poder darte una solución detallada




Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Offline Cartman #2 Posteado: July 23, 2018, 07:34:22 PM

  • Php Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 304
  • Gracias recibida: 11354
  • pe
me parece un error de cache no actualiza
puedes intentar sacando la linea requerida
Citar
require("../includes/denied.php");

usas muweb 0. ?



Offline MichaelxD #3 Posteado: July 23, 2018, 07:50:22 PM

  • Colaborador
  • +1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 263
  • Gracias recibida: 473
  • ve
me parece un error de cache no actualiza
puedes intentar sacando la linea requerida
Citar
require("../includes/denied.php");

usas muweb 0. ?

Si, muweb 0.4 con xampp lo borre pero no funciono  :D


Offline Cartman #4 Posteado: July 23, 2018, 08:33:43 PM

  • Php Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 304
  • Gracias recibida: 11354
  • pe
te aseguraste que la instalacion se hizo sin errores ?
prueba esto reemplazando ..
psd : realiza backup y si no funciona muestrame tu index solo el codigo despues del <? session_start();

config.php
Code: [Select]
<?
error_reporting(E_ALL ^E_NOTICE ^E_WARNING);

$muweb['connection'] = 'mssql';

$muweb['localhost'] = '127.0.0.1';

$muweb['dbhost'] = '127.0.0.1';

$muweb['database'] = 'MuOnline';

$muweb['dbuser'] = 'sa';

$muweb['dbpassword'] = 'MICLAVE';


require("includes/muweb.php");

?>

profile.php
Code: [Select]
<?
if(!isset($_GET['op'])){
require("../includes/denied.php");
denied('profile');
}
?>
<?
require("config.php");
if ($_GET['profile']==NULL){jump('index.php');}
$account_get = "$_GET[profile]";
$account_get = str_replace(";","",$account_get);
$account_get = str_replace("'","",$account_get);
$profile_sql = $db->Execute("Select country,gender,age,avatar,hide_profile,y,msn,aim,icq,skype from memb_info where memb___id='$account_get'");
$profile_info = $profile_sql->fetchrow();
$profile_info_check = $profile_sql->numrows();
if($profile_info_check <= 0 ) {jump('index.php');}
if($profile_info[4] == '1'){jump('index.php');}
if($profile_info[0] == '0'){$profile_info[0] = "Not Set";}
if($profile_info[3] == NULL){$profile_info[3] = "images/no_avatar.jpg";}
if($profile_info[1] == 'male'){$profile_info[1] = "<table><tr><td>Male</td><td><img src='images/male.gif'></td></tr></table>";}
elseif($profile_info[1] == 'female'){$profile_info[1] = "<table><tr><td>Female</td><td><img src='images/female.gif'></td></tr></table>";}
?>

<div align="center">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <table width="335" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="335"><fieldset>
        <legend><? echo($_GET['profile']); echo("&nbsp;Profile"); ?></legend>
        <div align="center">
          <table width="200" border="0" cellspacing="4" cellpadding="0">
            <tr>
              <td width="49">Country</td>
              <td width="139"><div align="left"><? echo("$profile_info[0]"); ?></div></td>
            </tr>
            <tr>
              <td>Age</td>
              <td><div align="left"><? echo("$profile_info[2]"); ?></div></td>
            </tr>
            <tr>
              <td>Gender</td>
              <td><div align="left"><? echo("$profile_info[1]"); ?></div></td>
            </tr>
            <tr>
              <td>Avatar</td>
              <td><div align="left"><img  width="100" height="100" src="<? echo("$profile_info[3]"); ?>"></div></td>
            </tr>
          </table>
          <table width="200" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <table width="200" border="0" cellspacing="4" cellpadding="0">
            <tr>
              <td><div align="center">Instant Mess Contact</div></td>
            </tr>
          </table>
          <table width="232" border="0" cellspacing="4" cellpadding="0">
            <tr>
              <td width="42"><div align="left">Y!:</div></td>
              <td width="178"><div align="left"><? echo("$profile_info[5]"); ?></div></td>
            </tr>
            <tr>
              <td><div align="left">MSN:</div></td>
              <td><div align="left"><? echo("$profile_info[6]"); ?></div></td>
            </tr>
            <tr>
              <td><div align="left">AIM:</div></td>
              <td><div align="left"><? echo("$profile_info[7]"); ?></div></td>
            </tr>
            <tr>
              <td><div align="left">ICQ:</div></td>
              <td><div align="left"><? echo("$profile_info[8]"); ?></div></td>
            </tr>
            <tr>
              <td><div align="left">Skype:</div></td>
              <td><div align="left"><? echo("$profile_info[9]"); ?></div></td>
            </tr>
          </table>
        </div>
      </fieldset></td>
    </tr>
  </table>
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>





Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
15 Replies
2900 Views
Last post May 26, 2020, 05:55:54 PM
by kayito
0 Replies
742 Views
Last post January 26, 2021, 11:46:03 PM
by zodiacddos
9 Replies
2493 Views
Last post August 08, 2021, 06:26:05 PM
by onlinezajzaj
1 Replies
1728 Views
Last post August 21, 2023, 04:12:42 PM
by wellwisher22
0 Replies
288 Views
Last post March 14, 2023, 01:17:56 AM
by OpineL