davelens / fork-slideshows

Slideshows module for Fork CMS
Do What The F*ck You Want To Public License
1 stars 0 forks source link

Something went wrong when adding slideshows widget to a page #5

Open ffechner opened 10 years ago

ffechner commented 10 years ago

Hi, on an Fork 3.6.6 I added the slideshows module to quickly add an easily manageable slideshow and run into the following problem:

SpoonTemplateException » Main

Message If you provide one argument it needs to be an array File /var/www/lgks-test/htdocs/vendor/spoon/library/spoon/template/template.php Line 151 Date Thu, 03 Jul 2014 11:31:31 +0200 URL http://10.0.0.10/de/beispielseite Referring URL http://10.0.0.10/de/das-landgut Request Method GET User-agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.76.4 (KHTML, like Gecko) Version/7.0.4 Safari/537.76.4 PHP error call_user_func_array() expects parameter 1 to be a valid callback, second array member is not a valid method

SpoonTemplateException » Trace

File /var/www/lgks-test/htdocs/frontend/modules/slideshows/widgets/index.php Line 164 Class SpoonTemplate Function assign Argument(s) array(2) { [0] => string(5) "items" [1] => NULL } File /var/www/lgks-test/htdocs/frontend/modules/slideshows/widgets/index.php Line 51 Class FrontendSlideshowsWidgetIndex Function parse ...

bart-webleads commented 10 years ago

The error message is trying to tell you that there are no items (images) to assign to the template variable "items"

ffechner commented 10 years ago

But there are actually 5 images assigned to that slideshow including a title and a caption / description. the slideshow as set image dimensions is from type "basic" which is the default template that comes with the module.

bart-webleads commented 10 years ago

Yep, but the frontend doesn't show/load them. Work you're way up.

Look at the getData() function, add some var_dump() calls to see when thing go wrong...

ffechner commented 10 years ago

OK, stupid fix. I clicked every module association in settings > modules > slideshows on and saved this and off and saved again, removed and added the widget to the page again and it worked then. Strange behavior :) Is there an documentation about the settings for the module and how to work with these associations and what to set / write models... for that e.a. an example?

bart-webleads commented 10 years ago

Not sure what you mean, but there is no documenation that I know of... (I always look in de the code)