Hello, I've just downloaded and installed SSP (6.x-1.0-beta5) along with the latest version of SlideshowPro Standalone (1.9.8.2).
I then uploaded "slideshowpro.swf" and "param.xml" to a directory on the server, and entered the path at /admin/settings/ssp. Under "example", I see the SlideShowPro interface (though there is no thumbnail - just a blank screen). So far so good, it would seem....
However, when I navigate to /admin (or similar), I get this message now:
warning: Invalid argument supplied for foreach() in /home/svennor4/public_html/sites/all/modules/ssp/ssp.module on line 132.
I'm guessing this is a new issue with beta5, as no one has reported it previously.
Thanks for any advice/assistance,
Jim
Comments
Comment #1
jimmb commentedWell - I've looked through some other issues here, and noticed that the directory with "slideshowpro.swf" doesn't need any other files (contrary to the SlideShowPro Standalone install instructions). So I removed "param.xml" and that warning disappeared.
For a moment. However, I went back to /admin/settings/ssp to see if the thumbnail was now showing in the "example" area. It wasn't, though ImageCache has been set up correctly AFAIK. Anyway, when I go back to /admin, the warning appears again
If I refresh the page, it disappears. This cycle seems to repeat indefinitely if I follow the above browsing sequence. Very strange....
Jim
Comment #2
jimmb commentedOne last thing I should mention is I flushed the ImageCache "ssp_thumbnail" preset, but the thumbnail still isn't showing under "example" at /admin/settings/ssp.
I apologize also that this thread is turning into 2 separate questions....
Thanks,
Jim
Comment #3
liam mcdermott commentedMarked #649836: Warning: Invalid argument in ...ssp.module as a duplicate of this. Also, this seems like a bug, I've seen the same error too.
Comment #4
kylebrowning commentedFixed in Beta7
Comment #5
jimmb commentedThanks for fixing that Kyle - the warning has disappeared now.
(Though right after installing when I went to /admin/reports/status, I initially saw:
warning: Invalid argument supplied for foreach() in /home/svennor4/public_html/sites/all/modules/ssp/ssp.module on line 88.But when i refreshed the page it disappeared and hasn't returned :)
However, the thumbnail is still not showing under "example" at /admin/settings/ssp
It *is* showing like normal at /admin/build/imagecache/ssp_thumbnail
I'm pretty sure everything is set up correctly, and I am seeing the SSP player, just not the thumbnail. Any suggestions on this would be much appreciated!
Jim
Comment #6
kylebrowning commentedSOunds like the path is wrong.
Can you give me any more info, maybe a web link?
Comment #7
jimmb commentedSure, I'd be glad to...
Imagecache "ssp_thumbnail" preview is at:
http://www.svenskaskolanwashingtondc.org/sites/default/files/imagecache/...
The .swf file is at:
http://svenskaskolanwashingtondc.org/public_html/sites/default/files/sli...
The "Path to SlideshowPro SWF File" at /admin/settings/ssp is:
/sites/default/files/slideshow/slideshowpro.swf
Let me know if you'd like any other paths. I'll be glad to make you a temporary admin acct. as well.
Best,
Jim
Comment #8
kylebrowning commentedYeha, i get file not found for the.swf
http://skitch.com/kylebrowning/nkdki/page-not-found-the-swedish-school-f...
Comment #9
kylebrowning commentedAlso another thing to try, its the absolute path, so add the /public_html/ to it
But, that file doesnt exist, just FYI
"/public_html/sites/default/files/slideshow/slideshowpro.swf"
Comment #10
jimmb commentedOkay thanks - in this case "public_html" was messing up the file path.
The .swf's correct path is:
http://www.svenskaskolanwashingtondc.org/sites/default/files/slideshow/s...
However, that's still consistent with the path I entered at /admin/settings/ssp
I also tried:
/public_html/sites/default/files/slideshow/slideshowpro.swf
sites/default/files/slideshow/slideshowpro.swf
But both gave a totally black screen.
Regards,
Jim
Comment #11
kylebrowning commentedIs there anything else in the slideshow folder? It should just be slideshowpro.swf
Comment #12
jimmb commentedNo, I have deleted all other files in that directory. The only thing there now is "slideshowpro.swf".
Comment #13
kylebrowning commentedCan you point me to a test slideshow node?
Comment #14
jimmb commentedhttp://www.svenskaskolanwashingtondc.org/en/node/230
Comment #15
kylebrowning commentedThat looks like its working to me, has only one image though
http://skitch.com/kylebrowning/nkdtb/juice-the-swedish-school-for-children
Comment #16
jimmb commentedYeah, I guess the thumbnail issue doesn't really matter as long as the actual image nodes are showing up.
I just uploaded another image (http://www.svenskaskolanwashingtondc.org/en/node/231), which naturally is only showing on that node.
How do I see see a version of SlideShowPro where all images are available? Do I need to use a view for that?
Thanks,
Jim
Comment #17
kylebrowning commentedHave you set the option to be thumbnails?
http://skitch.com/kylebrowning/nkd11/slideshow-settings-login-as-sspdemo...
Comment #18
jimmb commentedThanks for the suggestion.... I've done so now, uploaded some images to that node, and it's working great :)
One interesting thing now is the preview at /admin/settings/ssp is just showing a black screen (not even the player w/out the thumbnail as before). But I'm also not going to worry about that as long as the slideshow itself is working.
Thanks again for your help!
Jim
Comment #19
rontec76 commentedI just updated to the beta7 release and I'm getting a "# warning: Invalid argument supplied for foreach() in /public_html/sites/all/modules/ssp/ssp.module on line 88."
I may be wrong on this but it seem to me the $type variable is not getting set correctly?
On line 85 I see:
but I don't see "include/content.crud" anywhere in the module folder.
Also, it seems all of my existing slideshows have stopped loading with this update. Not sure that is spawned by this error or another.
I'm still investigating.
Thnx
Comment #20
rontec76 commentedjust a follow up on this...
in ssp.module in function _get_node_field_type if I manually set up the $field_list variable then everything works fine. so I'm assuming that maybe 'include/contents.crud' contains a content_types function?
anyway...thanks for the hard work and let me know if I can help.
Comment #21
kylebrowning commentedDownload the dev version for me when it gets regenerated, that should fix the error message.
However, it seems you dont have any fields on the content type
As for this....
module_load_include('inc', 'content', 'include/content.crud');That includes a cck file so that I have access to the function, content_types();
Comment #22
rontec76 commentedIt's working now. Thanks for your response.
Comment #23
kylebrowning commentedrontect76, What did you do to get it working?
Can you describe the issue you had?
Just helps me to determine if it was something I could make easier or clearer on my part.