Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Problema con el ThankOMatic

Aloittaja IFM, marraskuu 07, 2009, 03:54:15 IP

« edellinen - seuraava »

IFM

Bueno, he instalado mi web en local unas 300 veces, he seguido muchas de las soluciones que aqui se han dado, pero no logro instalar correctamente el mod thankomatic.

Mi version del foro es 1.1.10, y subo el paquete a traves de la administracion, y me sale como que esta correctamente instalado.

Primer error -->

Lainaa
La columna 'b.thank_you_automatic' en field list es desconocida
File: C:\Archivos de programa\EasyPHP5.3.0\www\Sources\Subs-Boards.php
Line: 1477

Sale al ir al menu de foros en administracion.

Segundo error -->

LainaaLa columna 'b.thank_you_automatic' en field list es desconocida

Te lo da al intentar entrar en un foro.


He probado muchas de las cosas que aqui se dicen, he isntalado practicamente todas las versiones, y he llegado a la conclusion de que el problema esta en el archivo install_1.x.x.php

El codigo es este:

Lainaa/*****************************************************************
* install.php  Version 1.0.2                                     *
* Special Advanced Version for Easier Handling                   *
* Programmed / Copyright By DIN1031 (http://www.ayu-kult.de/ [nofollow])    *
* for SMF (http://www.simplemachines.org)                        *
*****************************************************************/
/*****************************************************************
* It's free to change and use everywhere who this file is        *
* useable and made his work. You can change the code as you like *
* it. The only thing that i wish is, add the first 7 Lines of    *
* this file                                                      *
* THANKS A LOT                                                   *
*****************************************************************/
/*****************************************************************
* Used for follow Software                                       *
* Programm:      Thank-O-Matic                                   *
* By:            DIN1031 (http://www.ayu-kult.de/ [nofollow])               *
* Copyright:     DIN1031 (http://www.ayu-kult.de/ [nofollow])               *
*****************************************************************/

global $db_prefix, $modSettings;

//This is a way to install the mod without the package parser!
//This is a way to install the mod without the package parser!
$SSI_INSTALL = false;
if(!isset($db_prefix)) {
   require('SSI.php');
   $SSI_INSTALL = true;
}

//I can't install it if this on <<
$old_querycheck = isset($modSettings['disableQueryCheck']) ? $modSettings['disableQueryCheck'] : 0;
$modSettings['disableQueryCheck'] = 1;

// Creat Tables :)
db_query("
CREATE TABLE IF NOT EXISTS {$db_prefix}thank_you_post (
  ID_THX_POST int(10) unsigned NOT NULL auto_increment,
  ID_MSG int(10) unsigned NOT NULL ,
  ID_TOPIC mediumint(8) unsigned NOT NULL ,
  ID_BOARD smallint(5) unsigned NOT NULL ,
  ID_MEMBER mediumint(8) unsigned NOT NULL ,
  memberName varchar(80) NOT NULL ,
  thx_time int(10) unsigned NOT NULL ,
  PRIMARY KEY  (ID_THX_POST),
  INDEX (ID_BOARD),
  INDEX (ID_MSG),
  INDEX (ID_TOPIC),
  INDEX (ID_MEMBER)
) TYPE=MyISAM", __FILE__, __LINE__);

/*This is the array for alter Tables... i use this as my advance installer so i can made some changes quicker *g*
   Table without db_prefix
      array('table', 'rowname', 'rowsetting', 'update value');
   
   This Check if the row exists, if not than creat it :), easy for update handling ;)
*/

$sql_adds = array(
   array("topics", "thank_you_post_locked", "TINYINT(4) unsigned DEFAULT '0' NOT NULL"),
   array("boards", "thank_you_post_enable", "TINYINT(4) unsigned DEFAULT '1' NOT NULL", '1'),
   array("messages", "thank_you_post", "TINYINT(4) unsigned DEFAULT '0' NOT NULL"),
   array("messages", "thank_you_post_counter", "SMALLINT(5) unsigned DEFAULT '0' NOT NULL"),
   array("members", "thank_you_post_made", "mediumint(8) unsigned DEFAULT '0' NOT NULL"),
   array("members", "thank_you_post_became", "mediumint(8) unsigned DEFAULT '0' NOT NULL"),
);

foreach($sql_adds as $rowinfo) {
   
   $table = $rowinfo['0'];
   $rowname = $rowinfo['1'];
   $rowsetting = $rowinfo['2'];   

   //Mistake made... hmmm what should i do? XD Tell him that something not correct!
   if(empty($rowname) || empty($rowsetting)) {
      echo "SQL SMF INSTALLER: Error... rowname or rowsetting not set!";
      die();
   }
   
   //Load the rows ;)
   $request = db_query("SHOW COLUMNS FROM {$db_prefix}{$table}", __FILE__, __LINE__);
   
   $installed = false;
   
   while($row = mysql_fetch_assoc($request) ) {
      $installed = $row['Field'] == $rowname;
      if($installed)
         break;
   }
   
   mysql_free_result($request);
   
   //Not Installed Intall it ;)
   if(!$installed) {
      db_query("ALTER TABLE {$db_prefix}{$table} ADD $rowname $rowsetting", __FILE__, __LINE__);
      
      //I need to change values? Because it's new installed :)
      if(isset($rowinfo['3'])) {
         db_query("
            UPDATE {$db_prefix}{$table}
            SET $rowname = $rowinfo[3]", __FILE__, __LINE__);
      }
   }
}

//Okay Work done ;) (Replace the Varibale back...)
$modSettings['disableQueryCheck'] = $old_querycheck;

//Give a proper answer on ssi install ;)
if($SSI_INSTALL)
   echo 'DB Changes should be made now...';

Todo este codigo no se vuelca en la base de datos, he intentado hacerlo despues de instalarlo, he colocado el archivo y lo he llamado desde el navegador, la pantalla se queda en blanco.
Despues he mirado si en la base de datos ha creado algo de lo que dice el archivo, y no ha creado nada.

Ya no se que hacer mas, alguna idea?

IFM

He echo una prueba mas, me he bajado el smf 1.1.10 y lo he instalado, totalmente limpio y en ingles.

He subido el thankomatic y prosige el mismo error.

Puede ser el install_1.1.x.php, me parece que esta mal o algo, no lo entiendo...

kenet

que version es la que estas instalando


Thomas Alva Edison dijo:

    "No fracasé, sólo descubrí 999 maneras de como no hacer una bombilla."


IFM

He probado con la 1.23 y la 1.25.

La 1.23 al instalarla me daba error en el subs.

La 1.25 sale todo perfectameente y me dan estos errrores.

Despues he probado tambien instalando la version para smf 2... y sigue dando los mismos errores.

Gracias por contestaR:) :)

IFM

Lainaus käyttäjältä: kenet - marraskuu 08, 2009, 07:32:11 AP
que version es la que estas instalando

Kenet, veo que tu tambien la has instalado, tuviste que hacer algun tipo de canvio en el install1_X_X.php o subiste directamente el paquete y funciono a la perfeccion?.

Cres que puede tener algo que ver con la version del phpmyadmin?, yo tengo la 3.2.1 en el servidor local, y la 2.11.8 en el servidor de la web, crees que puede tener algo que ver?, cual tienes tu?.

No entiendo porque no funciona, he probado de todas las maneras posibles.

Advertisement: