LiamC

Morning all, what does this error mean? [Emergency] Uncaught TypeError: Return value of Symfony\Component\Filesystem\Filesystem::toIterable() must be an instance of Symfony\Component\Filesystem\iterable, array returned

LiamC

thank you, I did think it may of been something to do with the fact this only ever happens with clients who take pictures from their phone...🤔

LiamC

anyone ever had an issue where images upload landscape?

LiamC

Does anyone know what I have done wrong? 😕

LiamC
  1. $Make = $fields->dataFieldByName("MakeID");
  2. if ($Make) {
  3. $fields->addFieldToTab(
  4. 'Root.Main',
  5. DependentDropdownField::create(
  6. 'ModelID',
  7. 'Model',
  8. function ($val) {
  9. // Return empty list if no value set
  10. if (empty($val)) {
  11. return [];
  12. }
  13. // Else, get the grouped data of makes / models
  14. return $this->dataSource($val);
  15. }
  16. )->setDepends($Make)->setDescription("You must first select a 'Make'")
  17. );
  18. }
LiamC

I am using the dependent dropdown field and the silverstripe loading screen just loads and loads yet if I inspect the page and delete it I can see the dropdown works fine....

LiamC

My searchable fields pre fills out price with £0.00. How can I make it blank? when a customer wants to filter by brand its doing brand and price as £0.00

LiamC
  1. private static $searchable_fields = array(
  2. "Manufacturer.Title",
  3. );
doesnt work