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

[Contao 3.2.9] Neuer Eintrag in Subpalette erzeugt PHP Fehler #400

Closed
cyberlussi opened this issue Apr 14, 2014 · 8 comments
Closed

[Contao 3.2.9] Neuer Eintrag in Subpalette erzeugt PHP Fehler #400

cyberlussi opened this issue Apr 14, 2014 · 8 comments
Assignees
Labels
backend This seems to be a bug in the backend bug A bug! A bug! Fast, squish it! DC_General This ticket originated from or is directly related to DCG testing This ticket is reported to be fixed by a developer and should be tested.
Milestone

Comments

@cyberlussi
Copy link

Ich habe das aktuelle dev-master unter Contao 3.2.9 installiert und lasse mir Fehler durch Contao anzeigen. Beim Anlegen eines Eintrages unter einer Subpalette wirft PHP einen Fehler (Sub-Bereiche für "Galerie hinzufügen" > Neu). Attribut kann hinzugefügt werden, beim Speichern wird wiederum der gleiche Fehler angezeigt und die Ausgabe stoppt (nur Fehler + weißer Hintergrund).

Warning: is_null() expects exactly 1 parameter, 2 given in composer/vendor/metamodels/dc_general/system/modules/generalDriver/DcGeneral/Controller/DefaultController.php on line 3114

#0 [internal function]: __error(2, 'is_null() expec...', '/Users/abc...', 3114, Array)
#1 composer/vendor/metamodels/dc_general/system/modules/generalDriver/DcGeneral/Controller/DefaultController.php(3114): is_null('value', Array)
#2 composer/vendor/metamodels/dc_general/system/modules/generalDriver/DcGeneral/Controller/DefaultController.php(823): DcGeneral\Controller\DefaultController->setParent(Object(DcGeneral\Data\DefaultModel), Object(DcGeneral\Data\DefaultModel), 'self')
#3 composer/vendor/metamodels/dc_general/system/modules/generalDriver/DcGeneral/DC_General.php(2301): DcGeneral\Controller\DefaultController->create()
#4 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/Module.php(176): DcGeneral\DC_General->create()
#5 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/Module.php(196): MetaModels\BackendIntegration\Module->runDC()
#6 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/Module.php(210): MetaModels\BackendIntegration\Module->performNormal()
#7 system/modules/core/classes/Backend.php(272): MetaModels\BackendIntegration\Module->generate()
#8 contao/main.php(142): Contao\Backend->getBackendModule('metamodels')
#9 contao/main.php(293): Main->run()
#10 {main}

Siehe auch https://community.contao.org/de/showthread.php?49584-Stand-MM-Subpaletten

@cyberlussi cyberlussi changed the title Neuer Eintrag in Subpalette erzeugt PHP Fehler [Contao 3.2.9] Neuer Eintrag in Subpalette erzeugt PHP Fehler Apr 21, 2014
@discordier
Copy link
Member

Das Problem sollte mit der neuen tng version bereits behoben sein. Bitte damit gegentesten.

@discordier discordier added this to the 2.0.0 milestone Jun 12, 2014
@discordier discordier added bug and removed bug labels Jun 12, 2014
@cyberlussi
Copy link
Author

Ich kann keinen Test machen, denn sobald ich von contao 3.2.11, metamodels dev-contao3 + bundle_all 1.0.1 auf core dev-tng aktualisiere erhalte ich immer folgendes. Muss ich DC-General getrennt aktualisieren - dachte das passiert automatisch?

Fatal error: Uncaught exception Exception with message Query error: Table 'develop_metamodels.tl_metamodel_dcasetting_condition' doesn't exist (SELECT cond.*, setting.attr_id AS setting_attr_id FROM tl_metamodel_dcasetting_condition AS cond LEFT JOIN tl_metamodel_dcasetting AS setting ON (cond.settingId=setting.id) LEFT JOIN tl_metamodel_dca AS dca ON (setting.pid=dca.id) WHERE dca.id='1' AND setting.published=1 AND cond.enabled=1 ORDER BY sorting ASC) thrown in system/modules/core/library/Contao/Database/Statement.php on line 283

#0 system/modules/core/library/Contao/Database/Statement.php(254): Contao\Database\Statement->query()
#1 [internal function]: Contao\Database\Statement->execute('1')
#2 system/modules/core/library/Contao/Database/Statement.php(502): call_user_func_array(Array, Array)
#3 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/ViewCombinations.php(256): Contao\Database\Statement->executeUncached('1')
#4 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/ViewCombinations.php(344): MetaModels\BackendIntegration\ViewCombinations::fetchInputScreenDetails()
#5 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/ViewCombinations.php(420): MetaModels\BackendIntegration\ViewCombinations::bufferModels()
#6 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/Dca/MetaModelDcaBuilder.php(292): MetaModels\BackendIntegration\ViewCombinations::getStandaloneInputScreens()
#7 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/Boot.php(169): MetaModels\Dca\MetaModelDcaBuilder->injectBackendMenu()
#8 system/initialize.php(233): MetaModels\BackendIntegration\Boot::perform()
#9 contao/main.php(24): require_once('/Users/c...')
#10 {main}

@discordier
Copy link
Member

Oops. Da scheint die runonce noch nicht gelaufen zu sein und somit der upgrade Prozess noch nicht komplett zu sein.
Ich schaue die Tage danach.

@discordier
Copy link
Member

Please test latest version.

@cyberlussi
Copy link
Author

Update auf dev-tng klappt einwandfrei. Allerdings beim Klick auf mein in der alten MM Version erstelltes MM diesmal ein anderer Fehler:

Fatal error: Uncaught exception ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException with message Property sorting is not registered. thrown in composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/DataDefinition/Definition/DefaultPropertiesDefinition.php on line 116

#0 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/BaseView.php(354): ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\DefaultPropertiesDefinition->getProperty('sorting')
#1 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ListView.php(191): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BaseView->getGroupingMode()
#2 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ListView.php(326): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ListView->viewList(Object(ContaoCommunityAlliance\DcGeneral\Data\DefaultCollection))
#3 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ListView->showAll()
#4 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/BaseView.php(155): call_user_func_array(Array, Array)
#5 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BaseView->handleAction(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#6 composer/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(164): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#7 composer/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(53): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#8 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Event/EventPropagator.php(120): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#9 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Event/EventPropagator.php(72): ContaoCommunityAlliance\DcGeneral\Event\EventPropagator->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#10 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Controller/DefaultController.php(122): ContaoCommunityAlliance\DcGeneral\Event\EventPropagator->propagate('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), Array)
#11 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/Module.php(210): ContaoCommunityAlliance\DcGeneral\Controller\DefaultController->handle(Object(ContaoCommunityAlliance\DcGeneral\Action))
#12 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/Module.php(233): MetaModels\BackendIntegration\Module->runDC()
#13 composer/vendor/metamodels/core/src/system/modules/metamodels/MetaModels/BackendIntegration/Module.php(251): MetaModels\BackendIntegration\Module->performNormal()
#14 system/modules/core/classes/Backend.php(272): MetaModels\BackendIntegration\Module->generate()
#15 contao/main.php(142): Contao\Backend->getBackendModule('metamodel_mm_ku...')
#16 contao/main.php(293): Main->run()
#17 {main}

@discordier
Copy link
Member

Bitte hierzu ein neues Ticket.
Kannst du ggf. einen dump der mm Tabellenstruktur beifygen?

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

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

@cyberlussi
Copy link
Author

Dank des "DC General Tree BackendView Ultimate" funktioniert das, musste nur die Reihenfolge in der BE Formulardefinition für das MM neu ordnen ... ich habe allerdings einen negativen Effekt im BE Eingabe nun beobachtet.
Ich muss aber erstmal schauen, ob es ein Problem meines Setups ist oder nicht (das MM hat schon einige core updates erlebt : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This seems to be a bug in the backend bug A bug! A bug! Fast, squish it! DC_General This ticket originated from or is directly related to DCG testing This ticket is reported to be fixed by a developer and should be tested.
Projects
None yet
Development

No branches or pull requests

3 participants