PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Suggestions (http://www.photopost.com/forum/classifieds-suggestions/)
-   -   Installation routine (http://www.photopost.com/forum/classifieds-suggestions/133043-installation-routine.html)

Big Tom August 25th, 2007 07:15 PM

Installation routine
 
I had some problems with the installation - actually the load of the database (very likely cause by timeouts because of server load at my webhoster). Re-running the installation script did not work because the tables were already there. My suggestions:
Insert this right after the
// SQL queries array
$query = array();
lines
Quote:

$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}admlog ";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}favorites";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}laston";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}categories";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}comments";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}products";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}settings";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}sort";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}admingroups";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}notify";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}users";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}ipcache";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}iponline";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}adtypes";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}feedback";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}stats";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}payments";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}bidding";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}bids";
$query[] = "DROP TABLE IF EXISTS zipData";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}cache";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}extrafields";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}productextras";
$query[] = "DROP TABLE IF EXISTS {$pp_db_prefix}currency";
Second suggestion:

Add a line
Quote:

print "<b>1 - Line: ".$iquery."</b><br />";
right after this in the upgrade/install file
for ( $x=0; $x < count($query); $x++) {
$iquery = $query[$x];
$iquery = str_replace( ";", "", $iquery );

That avoids timeouts and shows that something is still going on....

Last but not least: Add the prefix to to zipcode table...

Tom

Big Tom June 28th, 2008 08:50 PM

Looks like the latest (06-2008) install file has the same issues.:mad:

Tom

Chuck S June 28th, 2008 10:07 PM

what issue is that you get duplicate errors if you run through install twice that does not indicate an error with the install


All times are GMT -5. The time now is 10:23 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97