local install problems

richardd

Full time elf
Joined
Jan 3, 2011
Messages
347
Location
Geraldton
When I try to run nutcracker on my local machine, I get the following error in gallery tab

Thoughts????



[SIZE=x-large] ! )[/SIZE][/size] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 77
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr]

[SIZE=x-large]( ! )[/SIZE][/size] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 515
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr] [tr][td]
2​
[/td][td]
0.0097​
[/td][td]
485864​
[/td][td]count_gallery( )[/td][td]..\gallery.php:77[/td][/tr]

[SIZE=x-large]( ! )[/SIZE][/size] Warning: in_array() expects parameter 2 to be array, null given in C:\wamp\www\nutcracker\effects\gallery.php on line 525
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr] [tr][td]
2​
[/td][td]
0.0097​
[/td][td]
485864​
[/td][td]count_gallery( )[/td][td]..\gallery.php:77[/td][/tr] [tr][td]
3​
[/td][td]
0.0415​
[/td][td]
493144​
[/td][td]in_array ( )[/td][td]..\gallery.php:525[/td][/tr]
Code:
count_gallery: select count(*) cnt from gallery where effect_class in ('xx')
0 gif's in Library, Start,end=1,50Click on these links to display the next group of effects
[SIZE=x-large]( ! )[/SIZE][/size] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 85
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr]

[SIZE=x-large]( ! )[/SIZE][/size] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 85
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr]
[list type=decimal]
[*]1 - 50
[/list]
[SIZE=x-large]( ! )[/SIZE][/size] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 114
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr]

[SIZE=x-large]( ! )[/SIZE][/size] Warning: in_array() expects parameter 2 to be array, null given in C:\wamp\www\nutcracker\effects\gallery.php on line 412
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr] [tr][td]
2​
[/td][td]
0.0425​
[/td][td]
494120​
[/td][td]gallery( )[/td][td]..\gallery.php:114[/td][/tr] [tr][td]
3​
[/td][td]
0.0425​
[/td][td]
494264​
[/td][td]get_from_gallery( )[/td][td]..\gallery.php:197[/td][/tr] [tr][td]
4​
[/td][td]
0.0428​
[/td][td]
494584​
[/td][td]in_array ( )[/td][td]..\gallery.php:412[/td][/tr]

[SIZE=x-large]( ! )[/SIZE][/size] Notice: Undefined variable: effect_string in C:\wamp\www\nutcracker\effects\gallery.php on line 417
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr] [tr][td]
2​
[/td][td]
0.0425​
[/td][td]
494120​
[/td][td]gallery( )[/td][td]..\gallery.php:114[/td][/tr] [tr][td]
3​
[/td][td]
0.0425​
[/td][td]
494264​
[/td][td]get_from_gallery( )[/td][td]..\gallery.php:197[/td][/tr]

[SIZE=x-large]( ! )[/SIZE][/size] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 418
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr] [tr][td]
2​
[/td][td]
0.0425​
[/td][td]
494120​
[/td][td]gallery( )[/td][td]..\gallery.php:114[/td][/tr] [tr][td]
3​
[/td][td]
0.0425​
[/td][td]
494264​
[/td][td]get_from_gallery( )[/td][td]..\gallery.php:197[/td][/tr]

[SIZE=x-large]( ! )[/SIZE][/size] Notice: Undefined variable: effect_string in C:\wamp\www\nutcracker\effects\gallery.php on line 430
[tr][td][/td][td][/td][td][/td][td][/td][td]
Call Stack​
[/td][/tr] [tr][td]
#​
[/td][td]
Time​
[/td][td]
Memory​
[/td][td]
Function​
[/td][td]
Location​
[/td][/tr] [tr][td]
1​
[/td][td]
0.0016​
[/td][td]
208984​
[/td][td]{main}( )[/td][td]..\gallery.php:0[/td][/tr] [tr][td]
2​
[/td][td]
0.0425​
[/td][td]
494120​
[/td][td]gallery( )[/td][td]..\gallery.php:114[/td][/tr] [tr][td]
3​
[/td][td]
0.0425​
[/td][td]
494264​
[/td][td]get_from_gallery( )[/td][td]..\gallery.php:197[/td][/tr]
Code:
get_from_gallery: select * from gallery where effect_class in () order by member_id,effect_class, fullpath
Error on select * from gallery where effect_class in () order by member_id,effect_class, fullpath
 

smeighan

Dedicated elf
Joined
Jan 19, 2012
Messages
1,109
Location
4217 Greenfinch Dr CO 80126
richardd said:
When I try to run nutcracker on my local machine, I get the following error in gallery tab

Thoughts? ???



[SIZE=x-large] ! )[/SIZE] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 77
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0
[SIZE=x-large]( ! )[/SIZE] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 515
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0

2

0.0097
485864​
count_gallery( )..\gallery.php:77
[SIZE=x-large]( ! )[/SIZE] Warning: in_array() expects parameter 2 to be array, null given in C:\wamp\www\nutcracker\effects\gallery.php on line 525
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0

2

0.0097
485864​
count_gallery( )..\gallery.php:77

3

0.0415
493144​
in_array ( )..\gallery.php:525
Code:
count_gallery: select count(*) cnt from gallery where effect_class in ('xx')
0 gif's in Library, Start,end=1,50Click on these links to display the next group of effects
[SIZE=x-large]( ! )[/SIZE] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 85
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0
[SIZE=x-large]( ! )[/SIZE] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 85
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0
[SIZE=x-large]( ! )[/SIZE] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 114
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0
[SIZE=x-large]( ! )[/SIZE] Warning: in_array() expects parameter 2 to be array, null given in C:\wamp\www\nutcracker\effects\gallery.php on line 412
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0

2

0.0425
494120​
gallery( )..\gallery.php:114

3

0.0425
494264​
get_from_gallery( )..\gallery.php:197

4

0.0428
494584​
in_array ( )..\gallery.php:412
[SIZE=x-large]( ! )[/SIZE] Notice: Undefined variable: effect_string in C:\wamp\www\nutcracker\effects\gallery.php on line 417
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0

2

0.0425
494120​
gallery( )..\gallery.php:114

3

0.0425
494264​
get_from_gallery( )..\gallery.php:197
[SIZE=x-large]( ! )[/SIZE] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 418
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0

2

0.0425
494120​
gallery( )..\gallery.php:114

3

0.0425
494264​
get_from_gallery( )..\gallery.php:197
[SIZE=x-large]( ! )[/SIZE] Notice: Undefined variable: effect_string in C:\wamp\www\nutcracker\effects\gallery.php on line 430
Call Stack​

#
Time​
Memory​
Function​
Location​

1

0.0016
208984​
{main}( )..\gallery.php:0

2

0.0425
494120​
gallery( )..\gallery.php:114

3

0.0425
494264​
get_from_gallery( )..\gallery.php:197
Code:
get_from_gallery: select * from gallery where effect_class in () order by member_id,effect_class, fullpath
Error on select * from gallery where effect_class in () order by member_id,effect_class, fullpath
 

smeighan

Dedicated elf
Joined
Jan 19, 2012
Messages
1,109
Location
4217 Greenfinch Dr CO 80126
This is because there are no animated gifs om your machine.


I did not include the 3000 animated gifs with the zip file.


Once you are local u no longer get to see what everyone else is doing


I have been asked if I could provide those animated his. I am thinking how to do that.


Two choices
1) download the 500mbyte file with the gifs
2) have a button that walks thru all 3000 entries in your database and rebuilds them


I will let u know
 

twinkleclaus

New elf
Joined
Jan 6, 2011
Messages
44
What about throwing it up on a Dropbox account specific for Nutcracker and share it out?
 

dpitts

Apprentice elf
Joined
Aug 18, 2011
Messages
68
Location
Falcon, CO
Sean is working on a local install button that will recreate animated gifs to populate the local copy with gallery.
 

smeighan

Dedicated elf
Joined
Jan 19, 2012
Messages
1,109
Location
4217 Greenfinch Dr CO 80126
dpitts said:
Sean is working on a local install button that will recreate animated gifs to populate the local copy with gallery.


Thats right, 3000 animated gifs as around 2.5 gbytes. Those animated gifs get written to 500 time pers day. If i used a dropbox, i would need to check how fast i can naviagte through the directory structure.


I could do this, but firt projects, single strand targets, horiz matrix.


easier is to make a button that will recreate the gifss from the database user_effects_dtl.
The bad things is this could take 12-24 hours to run. You would only do it once.


drop box has the advantage to always stay current, just need to verify it can perform everything i need. i also estimate that i will need close to 4gbytes by nov. dont know if there is a cost for that size.


thanks
 

twinkleclaus

New elf
Joined
Jan 6, 2011
Messages
44
Yeah, it costs for 4GB. Sounds like a button is the way to go. Click and let run overnight!
I also posted in another thread that the members SQL table is populated with user info and passwords. The php crypt function doesn't salt md5 hashes, and I easily found 12 username/password combos from pre computed hashes for most that I spot checked. Since people often reuse passwords elsewhere (forums, email, banks), this is probably not a good thing to distribute. Is it possible to set the passwords to a fixed value and anonymize the user info (in all the tables) before uploading for distribution?

(also, I saw some opportunities for SQL injection. When I get a chance, I'll look closer an PM them to you. Certainly don't want your web host compromised!)
 
Top