Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other
Author Message
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Sat Aug 16, 2008 1:40 am Reply with quote

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
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Aug 16, 2008 10:26 am Reply with quote

Check http://us.php.net/manual/en/migration5.incompatible.php

array_merge() is mentioned specifically but I'm pretty sure in_array() and some others have changed also.
 
View user's profile Send private message
testy1







PostPosted: Sat Aug 16, 2008 6:45 pm Reply with quote

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
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Aug 19, 2008 6:20 am Reply with quote

testy1, Bob has re-opened his forums and you may want to ask him about this in this forum:

http://forums.nukescripts.net/viewforum.php?f=16

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
testy1







PostPosted: Tue Aug 19, 2008 6:38 am Reply with quote

yer, that section isn't open yet Sad
 
montego







PostPosted: Tue Aug 19, 2008 6:43 am Reply with quote

Yes it is.... The first thread within the forum is locked but the forum itself isn't????
 
testy1







PostPosted: Tue Aug 19, 2008 4:19 pm Reply with quote

Quote:

This is the forum for NukeProject(tm) support ONLY.
Will open upon release of next version.
 
montego







PostPosted: Tue Aug 19, 2008 4:45 pm Reply with quote

testy1, that is not the forum I gave you the link for... Wink I purposely gave you the "Older NSN Scripts" forum as that is the appropriate place to post this question on his older scripts...
 
testy1







PostPosted: Tue Aug 19, 2008 5:17 pm Reply with quote

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.
 
testy1







PostPosted: Tue Aug 19, 2008 5:27 pm Reply with quote

montego wrote:
testy1, that is not the forum I gave you the link for... Wink 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?
 
BobMarion
Former Admin in Good Standing



Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Wed Sep 10, 2008 2:09 pm Reply with quote

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! 
View user's profile Send private message Send e-mail Visit poster's website
testy1







PostPosted: Wed Sep 10, 2008 5:16 pm Reply with quote

It might be just my account but after clearing the cache and cookies it's still not allowing me to post

just so we are on the same page im talking about http://forums.nukescripts.net/viewforum.php?f=16
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©