Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

laizem

estou ficando seco de tanto ler

Recommended Posts

estou tendo um problema nessa linha , mas não encontro solução:

\index.php on line 44 que se refere a isso:

44 ---> $ins_fotos->setTable("fotos");

$ins_fotos->addColumn("fotos", "FILE_TYPE", "FILES", "fotos");

$ins_fotos->addColumn("id", "NUMERIC_TYPE", "POST", "id");

$ins_fotos->setPrimaryKey("id", "NUMERIC_TYPE");

 

 

ajuda -me por favor

Compartilhar este post


Link para o post
Compartilhar em outros sites

estou tendo um problema nessa linha , mas não encontro solução:

\index.php on line 44 que se refere a isso:

44 ---> $ins_fotos->setTable("fotos");

$ins_fotos->addColumn("fotos", "FILE_TYPE", "FILES", "fotos");

$ins_fotos->addColumn("id", "NUMERIC_TYPE", "POST", "id");

$ins_fotos->setPrimaryKey("id", "NUMERIC_TYPE");

 

 

ajuda -me por favor

 

Poste o código completo para melhor visualização, e também utilize as tag

[code]

Compartilhar este post


Link para o post
Compartilhar em outros sites

Que problema?

 

aparece erro? qual ?

não duplique tópicos.

http://forum.imasters.com.br/index.php?/topic/386350-call-to-undefined-method/

Compartilhar este post


Link para o post
Compartilhar em outros sites

boa noite!

então as nessa form eu consigo pegar a foto redimencionar registra no servidor e vejo numa pagina.

tudo acontece mas aparecem esses erros logo de cara:

Strict Standards: Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context in C:\Arquivos de programas\EasyPHP-5.3.2\www\includes\tng\tNG.class.php on line 179

 

Strict Standards: Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context in C:\Arquivos de programas\EasyPHP-5.3.2\www\includes\tng\tNG.class.php on line 226

 

Strict Standards: Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context in C:\Arquivos de programas\EasyPHP-5.3.2\www\includes\tng\tNG.class.php on line 240

 

Strict Standards: Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context in C:\Arquivos de programas\EasyPHP-5.3.2\www\includes\tng\tNG.class.php on line 195

 

Strict Standards: Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context in C:\Arquivos de programas\EasyPHP-5.3.2\www\includes\tng\tNG_fields.class.php on line 333

 

Strict Standards: Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context in C:\Arquivos de programas\EasyPHP-5.3.2\www\includes\tng\tNG_insert.class.php on line 111

 

Strict Standards: Non-static method tNG_log::log() should not be called statically, assuming $this from incompatible context in C:\Arquivos de programas\EasyPHP-5.3.2\www\includes\tng\tNG_fields.class.php on line 312

 

 

o codigo e esse:

<?php require_once('Connections/novas.php'); ?>
<?php
// Load the common classes
require_once('includes/common/KT_common.php');

// Load the tNG classes
require_once('includes/tng/tNG.inc.php');

// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");

// Make unified connection variable
$conn_novas = new KT_connection($novas, $database_novas);

// Start trigger
$formValidation = new tNG_FormValidation();
$tNGs->prepareValidation($formValidation);
// End trigger

//start Trigger_ImageUpload trigger
//remove this line if you want to edit the code by hand 
function Trigger_ImageUpload(&$tNG) {
$uploadObj = new tNG_ImageUpload($tNG);
$uploadObj->setFormFieldName("novas");
$uploadObj->setDbFieldName("novas");
$uploadObj->setFolder("fotos/");
$uploadObj->setResize("true", 600, 0);
$uploadObj->setMaxSize(1500);
$uploadObj->setAllowedExtensions("jpg, jpeg, png, bmp");
$uploadObj->setRename("auto");
return $uploadObj->Execute();
}
//end Trigger_ImageUpload trigger

// Make an insert transaction instance
$ins_jpgs = new tNG_insert($conn_novas);
$tNGs->addTransaction($ins_jpgs);
// Register triggers
$ins_jpgs->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
$ins_jpgs->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$ins_jpgs->registerTrigger("END", "Trigger_Default_Redirect", 99, "index.php");
$ins_jpgs->registerTrigger("AFTER", "Trigger_ImageUpload", 97);
// Add columns
$ins_jpgs->setTable("jpgs");
$ins_jpgs->addColumn("novas", "FILE_TYPE", "FILES", "novas");
$ins_jpgs->setPrimaryKey("id", "NUMERIC_TYPE");

// Execute all the registered transactions
$tNGs->executeTransactions();

// Get the transaction recordset
$rsjpgs = $tNGs->getRecordset("jpgs");
$row_rsjpgs = mysql_fetch_assoc($rsjpgs);
$totalRows_rsjpgs = mysql_num_rows($rsjpgs);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>..Novas Fotos..</title>
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="includes/common/js/base.js" type="text/javascript"></script>
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<script src="includes/skins/style.js" type="text/javascript"></script>
<?php echo $tNGs->displayValidationRules();?>
</head>

<body>
<?php
echo $tNGs->getErrorMsg();
?>
<form action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" method="post" enctype="multipart/form-data" name="form1" id="form1">
<table align="center" cellpadding="2" cellspacing="0" class="KT_tngtable">
<tr>
<td class="KT_th"><label for="novas">
<div align="center">Novas:</div>
</label></td>
<td><div align="center">
<input type="file" name="novas" id="novas" size="32" />
<?php echo $tNGs->displayFieldError("jpgs", "novas"); ?> </div></td>
</tr>
<tr class="KT_buttons">
<td colspan="2"><div align="center">
<input type="submit" name="KT_Insert1" id="KT_Insert1" value="colocar" /> 
</div></td>
</tr>
</table>
<div align="center"></div>
<div align="center"></div>
</form>
<p> </p>
</body>
</html>

 

obrigado pela ajuda.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Esses endereços de "includes" e "require_once" estão corretos? verifique se os arquivos solicitados estão nos endereços correspondentes...

 

Depois poste as linhas onde aparecem os erros (para facilitar poste dentro das tags

 )

 

Até mais

 

Douglas

Compartilhar este post


Link para o post
Compartilhar em outros sites

179 [ tNG_log::log('tNG' . $this->transactionType, 'executeTransaction', 'begin')]essa é uma das linhas

 

function executeTransaction() {

tNG_log::log('tNG' . $this->transactionType, 'executeTransaction', 'begin');

if ($this->started) {

tNG_log::log('tNG' . $this->transactionType, 'executeTransaction', 'end');

return false;

}

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.