Author |
Message |
testy1
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 06, 2008
Posts: 484
|
Posted:
Sat Aug 16, 2008 1:40 am |
|
after trying to install nsn projects ( NukeProject_200_70-79 ) i get the following warning and the install seems to fail, also note i have not changed the error reporting to recieve the warning.
Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in nsnpj_installer\install.php on line 72
|
the code specific to this is
Code:
71. // nsnwb conversion
72. if(in_array($prefix."_nsnwb_config", $nsnwb)) {
73. $filler = $db->sql_query("SELECT * FROM `".$prefix."_nsnwb_config` ORDER BY `config_name`");
74. while($frow = $db->sql_fetchrow($filler)) {
75. $result = $db->sql_query("UPDATE `".$prefix."_nsnpj_config` SET `config_value`='".$frow['config_value']."' WHERE `config_name`='".$frow['config_name']."'");
76. if(!$result) { echo "- Update ".$prefix."_nsnpj_config failed<br>\n"; $message = ""; }
77. }
78. }
|
i would say this is also relevant to it
Code:
$result = $db->sql_query("SHOW TABLE STATUS LIKE '".$prefix."_nsnw%'");
while($row = $db->sql_fetchrow($result)) { $nsnwb[] = $row['Name']; }
|
specifically
Code:
$nsnwb[] = $row['Name'];
|
my details:
php version 5.2.6
mysql 5.0.51b
any ideas |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Aug 16, 2008 10:26 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 16, 2008 6:45 pm |
|
me and arrays are like steven seagal and arts and craft.....they just dont mix,
i changed
Code:
if(in_array($prefix."_nsnwb_config", $nsnwb)) {
|
To:
Code:
if(isset($nsnwb) && in_array($prefix."_nsnwb_config", $nsnwb)) {
|
now it seems that if you select a new install it checks if the table's are present and if so does an upgrade otherwise it just completes a fresh install, i would think it would be better to have a seperate option for the upgrade?
anyway it seems to work thanks for the help |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Aug 19, 2008 6:20 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 19, 2008 6:38 am |
|
yer, that section isn't open yet ![Sad](modules/Forums/images/smiles/icon_sad.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 19, 2008 6:43 am |
|
Yes it is.... The first thread within the forum is locked but the forum itself isn't???? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 19, 2008 4:19 pm |
|
Quote: |
This is the forum for NukeProject(tm) support ONLY.
Will open upon release of next version.
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 19, 2008 4:45 pm |
|
testy1, that is not the forum I gave you the link for... I purposely gave you the "Older NSN Scripts" forum as that is the appropriate place to post this question on his older scripts... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 19, 2008 5:17 pm |
|
oh ok, i thought project 2 was released this year, i will post it there anyway because what i have provided here is not a fix but a work around even though it will probably be fixed in the next release knowing nukescripts tks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 19, 2008 5:27 pm |
|
montego wrote: | testy1, that is not the forum I gave you the link for... I purposely gave you the "Older NSN Scripts" forum as that is the appropriate place to post this question on his older scripts... |
Maybe its just me but i still cant post there either, you can post in other forums just not projects or the older nsn scripts one? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
BobMarion
Former Admin in Good Standing
![](modules/Forums/images/avatars/4a8223e348325d1641ec3.png)
Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Wed Sep 10, 2008 2:09 pm |
|
Try the forum now. I reset the permissions on it and it should allow you in. |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 10, 2008 5:16 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|