Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geodistance bug? Class name must be a valid object or a string #12

Closed
max-admina opened this issue Sep 27, 2019 · 6 comments
Closed

geodistance bug? Class name must be a valid object or a string #12

max-admina opened this issue Sep 27, 2019 · 6 comments
Assignees
Milestone

Comments

@max-admina
Copy link

Ich wollte bei einer neuen MM-Installation in Contao 4.4.x eine Umkreissuche bauen und habe entsprechend zusätzlich zu metamodels/bundle_all auch metamodels/attribute_geodistance per Contao Manager installiert.

Hier ist der ganze Vorgang detailliert beschrieben und zeigt auch anhand von Screenshots was ich konfiguriert hatte:
https://community.contao.org/de/showthread.php?76053-Neuer-Datensatz-in-MetaModel-Class-name-must-be-a-valid-object-or-a-string

Zonky meinte im Forum, dass geodistance eigentlich auch perimetersearch mit installieren sollte und vielleicht dabeit derzeit etwas schief geht.

@zonky2
Copy link
Contributor

zonky2 commented Sep 27, 2019

wenn das Attribut "geodistance" in der Eingabemaske vorhanden ist kommt

Symfony\Component\Debug\Exception\FatalThrowableError:
Class name must be a valid object or a string

  at vendor/contao-community-alliance/dc-general/src/Contao/View/Contao2BackendView/Subscriber/WidgetBuilder.php:409
  at ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Subscriber\WidgetBuilder->buildWidget(object(DefaultProperty), object(Model))
     (vendor/contao-community-alliance/dc-general/src/Contao/View/Contao2BackendView/Subscriber/WidgetBuilder.php:112)
  at ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Subscriber\WidgetBuilder->handleEvent(object(BuildWidgetEvent), 'dc-general.view.contao2backend.build-widget', object(TraceableEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(BuildWidgetEvent), 'dc-general.view.contao2backend.build-widget', object(TraceableEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:214)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'dc-general.view.contao2backend.build-widget', object(BuildWidgetEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.view.contao2backend.build-widget', object(BuildWidgetEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:143)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('dc-general.view.contao2backend.build-widget', object(BuildWidgetEvent))
     (vendor/contao-community-alliance/dc-general/src/Contao/View/Contao2BackendView/ContaoWidgetManager.php:265)
  at ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoWidgetManager->getWidget('geo_distance', null)
     (vendor/contao-community-alliance/dc-general/src/Contao/View/Contao2BackendView/ContaoWidgetManager.php:355)
  at ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ContaoWidgetManager->renderWidget('geo_distance', false, null)
     (vendor/contao-community-alliance/dc-general/src/Contao/View/Contao2BackendView/EditMask.php:493)
  at ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\EditMask->buildFieldSet(object(ContaoWidgetManager), object(Palette), null)
     (vendor/contao-community-alliance/dc-general/src/Contao/View/Contao2BackendView/EditMask.php:804)
  at ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\EditMask->execute()
     (vendor/contao-community-alliance/dc-general/src/Contao/View/Contao2BackendView/ActionHandler/EditHandler.php:120)
  at ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ActionHandler\EditHandler->process(object(DefaultEnvironment))
     (vendor/contao-community-alliance/dc-general/src/Contao/View/Contao2BackendView/ActionHandler/EditHandler.php:82)
  at ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ActionHandler\EditHandler->handleEvent(object(ActionEvent), 'dc-general.action', object(TraceableEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ActionEvent), 'dc-general.action', object(TraceableEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:214)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'dc-general.action', object(ActionEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.action', object(ActionEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:143)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('dc-general.action', object(ActionEvent))
     (vendor/contao-community-alliance/dc-general/src/Controller/DefaultController.php:158)
  at ContaoCommunityAlliance\DcGeneral\Controller\DefaultController->handle(object(Action))
     (vendor/metamodels/core/src/BackendIntegration/Module.php:74)
  at MetaModels\BackendIntegration\Module->generate()
     (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:423)
  at Contao\Backend->getBackendModule('metamodel_mm_staff', null)
     (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:132)
  at Contao\BackendMain->run()
     (vendor/contao/core-bundle/src/Controller/BackendController.php:55)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app_dev.php:64)

@zonky2 zonky2 added the bug label Sep 27, 2019
@zonky2 zonky2 added this to the 2.1.3 milestone Sep 27, 2019
@max-admina
Copy link
Author

Danke.

@stefanheimes stefanheimes modified the milestones: 2.1.3, 2.1.4 Feb 23, 2020
@zonky2
Copy link
Contributor

zonky2 commented Jun 25, 2020

@discordier @stefanheimes solche Attribute sollten m.E. gar nicht zur Verfügung stehen - siehe MetaModels/core#621

stefanheimes added a commit that referenced this issue Jun 25, 2020
- Add a simple field definition for the dca
- This should fix the problem mention in #12
@stefanheimes
Copy link
Member

Should be fix with the latest version.

@zonky2
Copy link
Contributor

zonky2 commented Jun 26, 2020

@max-admina bitte mit der Änderung mal testen!

@MiniModel
Copy link
Member

This issue has been labeled with testing but got no feedback.

We are reliant on feedback to prove a ticket fixed as we can not tell if the ticket has been
resolved if we receive no feedback.
I will close this ticket now, as I assume it has been resolved.
If the ticket should still be valid, please feel free to reopen it.

@max-admina could you please have a final look at this and tell if your issue has been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants