Welcome Visitor, Please Login or Register Now |
|
Sunday, December 22, 2024 03:32 AM |
|
ppch |
Registered Member |
Posts: 120 |
Joined: 02-06-06 12:38 PM |
Location: Italy |
|
|
|
|
|
|
|
|
Great problem at auctionawy database |
Edit Delete Quote |
First Post Posted on: 03-18-12 07:47 AM |
|
|
|
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 |
Administrator Team Member |
Posts: 5381 |
Joined: 12-22-24 03:32 AM |
Location: knxoville, TN, USA |
|
|
|
|
|
|
|
|
Re: Great problem at auctionawy database |
Edit Delete Quote |
Reply #: 1 Posted on: 03-18-12 07:55 AM |
|
|
|
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 Collapse
|
#!/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 not, write 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->do($Query);# || &DB_Exit($Query."<br />Line ". __LINE__ . ", File ". __FILE__);
$Query = qq!ALTER TABLE Forum_Users_Info ADD LastVisit INT!;
$dbh->do($Query);
$Time = time;
$Query = qq!UPDATE Forum_Users_Info SET LastVisit=$Time!;
$dbh->do($Query);
$Query = qq!ALTER TABLE Forum_Forums MODIFY COLUMN Forum BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
$dbh->do($Query);
$Query = qq!ALTER TABLE Forum_Topics MODIFY COLUMN Topic BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
$dbh->do($Query);
$Query = qq!ALTER TABLE Forum_Posts MODIFY COLUMN Post BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
$dbh->do($Query);
$Query = qq!ALTER TABLE Forum_Search MODIFY COLUMN Cash BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
$dbh->do($Query);
$Query = qq!ALTER TABLE Forum_Groups MODIFY COLUMN GroupID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
$dbh->do($Query);
$Query = qq!ALTER TABLE PrivMsgs MODIFY COLUMN ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
$dbh->do($Query);
$Query = qq!ALTER TABLE Forum_CommunityBoards MODIFY COLUMN Board BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
$dbh->do($Query);
$Query = qq!ALTER TABLE Forum_Smileys MODIFY COLUMN ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY!;
$dbh->do($Query);
print " Done<br />";
#----------------------------------------------------------------
print "Updating configuration... ";
&Create_Forum_Config_Table;
$Query = qq!SELECT Name, Value FROM Forum_Config!;
$sth = $dbh->prepare($Query);
$sth->execute;
undef %Config;
while(($Name, $Value) = $sth->fetchrow_array) {
$Config{$Name} = $Value;
}
$sth->finish;
if (%Config) {
&UpdateSettings(%Config);
}
print " Done<br />";
print "Dropping table Forum_Config... <br />";
$Query = qq!DROP TABLE Forum_Config!;
$dbh->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->do($Query) || &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;";
&ModLoad("DBI");
&ModLoad("Time::Local");
&GetForm;
&Get_Cookies;
$ScriptURL = &ScriptURL;
&Read_Configuration;
srand (time | $$);
&LoadLangFile($Global{LanguageForumFile});
&DB_Start;
&ReadSettings;
}
#==========================================================
|
|
Mewsoft Support www.mewsoft.com
|
|
|
|
|
|
ppch |
Registered Member |
Posts: 120 |
Joined: 02-06-06 12:38 PM |
Location: Italy |
|
|
|
|
|
|
|
|
Re: Great problem at auctionawy database |
Edit Delete Quote |
Reply #: 2 Posted on: 03-19-12 04:49 AM |
|
|
|
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 |
|
|
|
|
|
ppch |
Registered Member |
Posts: 120 |
Joined: 02-06-06 12:38 PM |
Location: Italy |
|
|
|
|
|
|
|
|
Re: Great problem at auctionawy database |
Edit Delete Quote |
Reply #: 4 Posted on: 03-19-12 10:22 AM |
|
|
|
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 |
Registered Member |
Posts: 120 |
Joined: 02-06-06 12:38 PM |
Location: Italy |
|
|
|
|
|
|
|
|
Re: Great problem at auctionawy database |
Edit Delete Quote |
Reply #: 5 Posted on: 03-19-12 11:20 PM |
|
|
|
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 |
|
|
|
|
|
|
|
Mewsoft and Mewsoft Logos are registered trademarks.
® Corporation. All Rights Reserved.
Copyright -
Privacy -
Terms of Use
| Page Load: 0.8422 Seconds |
|