1. New to Christmas lighting? Get started with the AusChristmasLighting 101 Manual:
    auschristmaslighting.com/wiki/AusChristmasLighting-101

local install problems

Discussion in 'xLights (Nutcracker)' started by richardd, Sep 9, 2012.

  1. richardd

    richardd Full Time Elf

    Joined:
    Jan 3, 2011
    Messages:
    216
    Likes Received:
    2
    Location:
    Geraldton
    When I try to run nutcracker on my local machine, I get the following error in gallery tab

    Thoughts????



    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [SIZE=x-large] ! )[/SIZE][/size] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 77
    [/td][/tr] [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]
    [/table]
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [SIZE=x-large]( ! )[/SIZE][/size] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 515
    [/td][/tr] [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]
    [/table]
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [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
    [/td][/tr] [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]
    [/table]
    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
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [SIZE=x-large]( ! )[/SIZE][/size] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 85
    [/td][/tr] [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]
    [/table]
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [SIZE=x-large]( ! )[/SIZE][/size] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 85
    [/td][/tr] [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]
    [/table] [list type=decimal]
    [*]1 - 50
    [/list]
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [SIZE=x-large]( ! )[/SIZE][/size] Notice: Undefined variable: effect_class_selected in C:\wamp\www\nutcracker\effects\gallery.php on line 114
    [/td][/tr] [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]
    [/table]
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [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
    [/td][/tr] [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]
    [/table]
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [SIZE=x-large]( ! )[/SIZE][/size] Notice: Undefined variable: effect_string in C:\wamp\www\nutcracker\effects\gallery.php on line 417
    [/td][/tr] [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]
    [/table]
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [SIZE=x-large]( ! )[/SIZE][/size] Warning: Invalid argument supplied for foreach() in C:\wamp\www\nutcracker\effects\gallery.php on line 418
    [/td][/tr] [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]
    [/table]
    [table][tr][td][/td][td][/td][td][/td][td][/td][td]
    [SIZE=x-large]( ! )[/SIZE][/size] Notice: Undefined variable: effect_string in C:\wamp\www\nutcracker\effects\gallery.php on line 430
    [/td][/tr] [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]
    [/table]
    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
     
  2. smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,064
    Likes Received:
    9
    Location:
    4217 Greenfinch Dr CO 80126
     
  3. smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,064
    Likes Received:
    9
    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
     
  4. twinkleclaus

    twinkleclaus New Elf

    Joined:
    Jan 6, 2011
    Messages:
    44
    Likes Received:
    0
    What about throwing it up on a Dropbox account specific for Nutcracker and share it out?
     
  5. dpitts

    dpitts Apprentice Elf

    Joined:
    Aug 18, 2011
    Messages:
    66
    Likes Received:
    1
    Location:
    Falcon, CO
    Sean is working on a local install button that will recreate animated gifs to populate the local copy with gallery.
     
  6. smeighan

    smeighan Dedicated Elf

    Joined:
    Jan 19, 2012
    Messages:
    1,064
    Likes Received:
    9
    Location:
    4217 Greenfinch Dr CO 80126

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

    twinkleclaus New Elf

    Joined:
    Jan 6, 2011
    Messages:
    44
    Likes Received:
    0
    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!)
     

Share This Page