منتدى استراحات زايد

منتدى استراحات زايد (http://vb.ma7room.com/index.php)
-   منتدى أخبار المواقع والمنتديات العربية والأجنبية (http://vb.ma7room.com/forumdisplay.php?f=183)
-   -   Forum Problem with upgrade 3.8.x to 4.0 (http://vb.ma7room.com/showthread.php?t=459637)

محروم.كوم 07-20-2010 05:30 AM

Forum Problem with upgrade 3.8.x to 4.0
 
Alright, this is a stupid problem, I did try to look in the sticky posts for a similar error, if there was I must have missed it and I apologies for this in advance.

The importing went alright, untill step 11 of the upgrade_400a1.php file. It actually did complete everything except this part (see below). Now I realize that it only got to filedataid 163809 instead of finishing. And before someone says it, yes I have been patient and been waiting, but my firefox decided to crash (even though I was not surfing anything else) and after restoring the session. It showed the other steps as completed but displayed a Database Error (as below) for last thing.

I did make a SQL Back up, however. I got 1.5M attachments on my forum and it took me already a good 12 hours to process all these attachments through the upgrade script. Seeing this forum has to stay online for me to make any sort of money for hosting back. I was wondering or it would be possible to fix this problem with a sql query or something along these lines to continue on with the upgrade process that it was trying to complete. So I can on to step 12?

I hope someone has an idea, I thank you in advance for your time.

Error:
Quote:
Database error in vBulletin 3.8.5:

Invalid SQL:
UPDATE attachment SET filedataid = 163809 WHERE filedataid IN ();

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Error Number : 1064
Request Date : Tuesday, July 20th 2010 @ 02:33:46 AM
Error Date : Tuesday, July 20th 2010 @ 02:34:07 AM
Script : http://forumurl/install/upgrade_400a1.php?step=11
Referrer : http://forumurl/install/upgrade_400a...10&startat=746
IP Address : xx.xxx.x.47
Username :
Classname : vB_Database_MySQLi
MySQL Version : 5.0.51a-community-log

Part it crashed at:
Quote:
$db->query_write("UPDATE " . TABLE_PREFIX . "filedata SET refcount = $refcount WHERE filedataid = $filedataid");
$db->query_write("UPDATE " . TABLE_PREFIX . "attachment SET filedataid = $filedataid WHERE filedataid IN (" . implode(",", array_keys($killfiles)) . ")");
$db->query_write("DELETE FROM " . TABLE_PREFIX . "filedata WHERE filedataid IN (" . implode(",", array_keys($killfiles)) . ")");
foreach ($killfiles AS $filedataid => $userid)
{
if ($vbulletin->GPC['attachtype'] == ATTACH_AS_FILES_NEW)
{
$path = $vbulletin->options['attachpath'] . '/' . implode('/', preg_split('//', $userid, -1, PREG_SPLIT_NO_EMPTY));
}
else
{
$path = $vbulletin->options['attachpath'] . '/' . $userid;
}
@unlink($path . '/' . $filedataid . '.attach');
@unlink($path . '/' . $filedataid . '.thumb');
}
}
}

if ($vbulletin->GPC['step'] == 12)
{
$db->query_write("
UPDATE " . TABLE_PREFIX . "setting
SET value = 'ssl'
WHERE varname = 'smtp_tls' AND value = '1'
");


الساعة الآن 12:17 AM

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir


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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227