Welcome Visitor, Please Login or Register Now Friday, April 26, 2024 07:11 PM 
Forums Index > Mewsoft Products > Auctionawy > Great problem at auctionawy database
New Topic   New Reply
Search for:
Author Message
ppch ppch's personal page
Registered Member
Posts: 120 Display member's posts
Joined: 02-06-06 12:38 PM
Location: Italy
Member Offline
View Member's Profile Visit member's website passaparolach Send private message YIM Messenger: topanka63 MSN Messenger: topanka63@hotmail.com
 
Back to top
Great problem at auctionawy database Edit Delete Reply with quote Quote
First Post Posted on: 03-18-12 07:47 AM next post first post
I have installed the new boardawy forum , and have auctionawy plugin activated, with new database for forum have problem at auctionawy. When have a new customer , this user receive a error database message becouse the auction database dont have the last visit table in the database. this is the image:
mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-26-24 07:11 PM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: Great problem at auctionawy database Edit Delete Reply with quote Quote
Reply #: 1 Posted on: 03-18-12 07:55 AM next post previous post

Did you ever read the upgrade topic, it sys call the upgrade file Upgrade3.cgi from your browser once, which will do all the sql changes required. Upload this file from the latest boardawy version to your cgi-bin/forum folder and call it once from the browser.


Code: Perl    Select All    Expand All
#!/usr/bin/perl
#!C:\perl\bin\perl.exe
=Copyright Infomation
==========================================================
    Program Name    : Mewsoft Boardawy
    Program Author   : Dr. Elsheshtawy, Ahmed Amin, Ph.D. Physics
    Home Page          : http://www.mewsoft.com
   Email                    : support@mewsoft.com
   Products               : Auction, Classifieds, Directory, etc. Integrated
   Copyrights © 2005-2009 Mewsoft® Corporation. All rights reserved.
==========================================================
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if notwrite to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
==========================================================
=cut
#==========================================================
$| = 1;
print "Content-type: text/html\n\n";
use CGI::Carp qw(fatalsToBrowser)
#==========================================================
BEGIN {
   undef %Param;
   undef %Global;
   undef @User_Fields;
   undef %Cookies;
}
#==========================================================
BEGIN {
   use FindBin qw($Bin $Script)
   $Bin ||= ".";
   use lib "$Bin/lib";
   unshift @INC$Bin;
   unshift @INC"$Bin/mewsoft";
   $Global{CGI_Dir} = $Bin;
   $Global{MainProg} = $Script;
}
#==========================================================
use Configuration;
use ForumTables;

&MyProgramStart;
#==========================================================
   &Update_SQL_Tables;
   &Quit;
#==========================================================
#==========================================================
sub Update_SQL_Tables{
my ($Query);
   
   #goto step10;

   print "Updating  Forum_Users_Info Table...";
   $Query = qq!ALTER TABLE Forum_Users_Info DROP LastVist!;
   $dbh-&gt;do($Query);# || &amp;DB_Exit($Query."<br />Line ". __LINE__ . ", File ". __FILE__);

   $Query = qq!ALTER TABLE Forum_Users_Info ADD LastVisit INT!;
   $dbh-&gt;do($Query);
   
   $Time = time;
   $Query = qq!UPDATE Forum_Users_Info SET LastVisit=$Time!;
   $dbh-&gt;do($Query);
   
   $Query = qq!ALTER TABLE Forum_Forums MODIFY COLUMN Forum BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
   $dbh-&gt;do($Query);

   $Query = qq!ALTER TABLE Forum_Topics MODIFY COLUMN Topic BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
   $dbh-&gt;do($Query);

   $Query = qq!ALTER TABLE Forum_Posts MODIFY COLUMN Post BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
   $dbh-&gt;do($Query);

   $Query = qq!ALTER TABLE Forum_Search MODIFY COLUMN Cash BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
   $dbh-&gt;do($Query);

   $Query = qq!ALTER TABLE Forum_Groups MODIFY COLUMN GroupID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
   $dbh-&gt;do($Query);

   $Query = qq!ALTER TABLE PrivMsgs MODIFY COLUMN ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
   $dbh-&gt;do($Query);

   $Query = qq!ALTER TABLE Forum_CommunityBoards MODIFY COLUMN Board BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
   $dbh-&gt;do($Query);

   $Query = qq!ALTER TABLE Forum_Smileys MODIFY COLUMN ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
   $dbh-&gt;do($Query);
   
   print "  Done<br />";
   #----------------------------------------------------------------
   print "Updating configuration... ";
   &amp;Create_Forum_Config_Table;

   $Query = qq!SELECT Name, Value FROM Forum_Config!;
   $sth = $dbh-&gt;prepare($Query);
   $sth-&gt;execute;
    undef %Config;
   while(($Name$Value) = $sth-&gt;fetchrow_array) {
         $Config{$Name} = $Value;
   }
   $sth-&gt;finish;
   if (%Config) {
      &amp;UpdateSettings(%Config);
   }
   print " Done<br />";
   
   print "Dropping table Forum_Config... <br />";
   $Query = qq!DROP TABLE Forum_Config!;
   $dbh-&gt;do($Query);
   print " Done<br />";
   #----------------------------------------------------------------
   #----------------------------------------------------------------
step10:
   print "Updating  Forum_Whos_Online Table...";
   $Query = qq!ALTER TABLE Forum_Whos_Online ADD Action VARCHAR(50), ADD Forum INT, ADD Topic INT, ADD Post INT!;
   $dbh-&gt;do($Query) || &amp;DB_Exit($Query."<br />Line "__LINE__ . ", File "__FILE__);
   print " Done<br />";

}
#==========================================================
sub MyProgramStart {

   eval "use General;";
   eval "use DisplayMgr;";
   eval "use Mewsoft;";
   eval "use SQLlib;";
   eval "use Banners;";
   eval "use ForumLib;";
   &amp;ModLoad("DBI");
   &amp;ModLoad("Time::Local");

   &amp;GetForm;
   &amp;Get_Cookies;
   $ScriptURL = &amp;ScriptURL;
   &amp;Read_Configuration;

   srand (time | $$);

   &amp;LoadLangFile($Global{LanguageForumFile});
   &amp;DB_Start;
   &amp;ReadSettings;
}
#==========================================================



Mewsoft Support
www.mewsoft.com

ppch ppch's personal page
Registered Member
Posts: 120 Display member's posts
Joined: 02-06-06 12:38 PM
Location: Italy
Member Offline
View Member's Profile Visit member's website passaparolach Send private message YIM Messenger: topanka63 MSN Messenger: topanka63@hotmail.com
 
Back to top
Re: Great problem at auctionawy database Edit Delete Reply with quote Quote
Reply #: 2 Posted on: 03-19-12 04:49 AM next post previous post
Hi Mew i have uploaded Upgrade3.cgi and have run this file, but the error persist. Note the error is on the auctionawy database , the Upgrade3.cgi run on the forum database. I need cancel the forum database? Need restart the auctionawy database?Need upgrade the auctionawy database ?? It's very important restart the correct and originary database. regards Francesco
mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-26-24 07:11 PM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: Great problem at auctionawy database Edit Delete Reply with quote Quote
Reply #: 3 Posted on: 03-19-12 08:03 AM next post previous post

The Users tables shared between all interated products.

Admin->database & sql manager, ->SQL commander, run these 2 lines, each line separately:

ALTER TABLE Forum_Users_Info DROP LastVist

ALTER TABLE Forum_Users_Info ADD LastVisit INT

This will do it.


Mewsoft Support
www.mewsoft.com

ppch ppch's personal page
Registered Member
Posts: 120 Display member's posts
Joined: 02-06-06 12:38 PM
Location: Italy
Member Offline
View Member's Profile Visit member's website passaparolach Send private message YIM Messenger: topanka63 MSN Messenger: topanka63@hotmail.com
 
Back to top
Re: Great problem at auctionawy database Edit Delete Reply with quote Quote
Reply #: 4 Posted on: 03-19-12 10:22 AM next post previous post
ALTER TABLE Forum_Users_Info DROP LastVist When i run this comand the sistem done Mysql error if i sign LastVisit the sistem run ALTER TABLE Forum_Users_Info DROP LastVisit ty
ppch ppch's personal page
Registered Member
Posts: 120 Display member's posts
Joined: 02-06-06 12:38 PM
Location: Italy
Member Offline
View Member's Profile Visit member's website passaparolach Send private message YIM Messenger: topanka63 MSN Messenger: topanka63@hotmail.com
 
Back to top
Re: Great problem at auctionawy database Edit Delete Reply with quote Quote
Reply #: 5 Posted on: 03-19-12 11:20 PM last post previous post
Mew i have resolved , verify the code in the database command : the Mot LastVist is errated and the sistem dont Drop a inesistente table , i have add a new table called LastVist with the comand: ALTER TABLE Forum_Users_Info ADD LastVist INT Best regards Francesco
Page 1 of 1
Go to page:

New Topic   New Reply Mark Unread
Jump to:  
Delete   Move     Lock   +Favorits   +Notify   Print