Ergebnis 1 bis 9 von 9

Thema: MM don't work in BE

  1. #1
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Standard MM don't work in BE

    Hi everyone,

    I made a website where I have some simple MM like the one list some people. For now, the lists modules in FE are still working. Some weeks ago, BE was working too but today, I get this pb. I don't think I made any update recently…

    In the BE :

    When I clic on one MM, I get the list of records. Then when I want to edit a record, I get a blank page with message :
    Code:
    Fatal error: Call to a member function parse() on null in /home/eefic/sitev3b/system/modules/generalDriver/templates/dcbe_general_field.html5 on line 3
    If I clic on MetaModels to verify my MM parameters, I see the list of MM with this message first :
    Code:
    Warning: Invalid argument supplied for foreach() in system/modules/generalDriver/templates/dcbe_general_listView_sorting.html5 on line 31
    
    #0 system/modules/generalDriver/templates/dcbe_general_listView_sorting.html5(31): __error(2, 'Invalid argumen...', '/home/eefic/sit...', 31, Array)
    #1 system/modules/core/library/Contao/BaseTemplate.php(88): include('/home/eefic/sit...')
    #2 system/modules/core/library/Contao/Template.php(277): Contao\BaseTemplate->parse()
    #3 system/modules/core/classes/BackendTemplate.php(34): Contao\Template->parse()
    #4 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ActionHandler/AbstractListShowAllHandler.php(88): Contao\BackendTemplate->parse()
    #5 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/View/ActionHandler/AbstractHandler.php(54): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ActionHandler\AbstractListShowAllHandler->process()
    #6 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/View/ActionHandler/AbstractEnvironmentAwareHandler.php(71): ContaoCommunityAlliance\DcGeneral\View\ActionHandler\AbstractHandler->handleEvent(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #7 [internal function]: ContaoCommunityAlliance\DcGeneral\View\ActionHandler\AbstractEnvironmentAwareHandler->handleEvent(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
    #8 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
    #9 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #10 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Controller/DefaultController.php(152): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #11 composer/vendor/metamodels/core/src/MetaModels/BackendIntegration/Module.php(74): ContaoCommunityAlliance\DcGeneral\Controller\DefaultController->handle(Object(ContaoCommunityAlliance\DcGeneral\Action))
    #12 system/modules/core/classes/Backend.php(423): MetaModels\BackendIntegration\Module->generate()
    #13 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('metamodels')
    #14 contao/main.php(20): Contao\BackendMain->run()
    #15 {main}
    If I try to edit one MM, I got the first error again :
    Code:
    Fatal error: Call to a member function parse() on null in /home/eefic/sitev3b/system/modules/generalDriver/templates/dcbe_general_field.html5 on line 3
    I purged everything but still have the pb.

    My configuration :
    Contao 3.5.18 with Composer
    metamodels/core 2.0.0-alpha15
    contao-communitu-alliance/dc-general 2.0.0-beta39
    metamodels/attribute_combinedvalues 2.0.2
    metamodels/bundle_attributes 2.0.1
    metamodels/bundle_filter 2.0.0
    metamodels/bundle_nontranslated 2.0.1
    metamodels/bundle_translated 2.0.1


    Thanks for help.

  2. #2
    Contao-Urgestein Avatar von zonky
    Registriert seit
    19.03.2010.
    Ort
    Berlin, Rdf
    Beiträge
    9.719
    User beschenken
    Wunschliste

    Standard

    Hi Charled,

    it´s possible to update your MM packages?

  3. #3
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Standard

    Hi Zonky,

    This is a production website. So I need to duplicate it before testing it.
    But it was going fine until now…

  4. #4
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Standard

    So I duplicated the website and the db.

    I updated contao-community-alliance/dc-general to 2.0.0-beta40. I deleted and reinstalled mm/bundle_all with Composer. Still have the same problem in the BE.

    When I clic on my MMs, they display their records, when I want to edit a record, I get the error message :
    Code:
    Fatal error: Call to a member function parse() on null in /home/eefic/test/system/modules/generalDriver/templates/dcbe_general_field.html5 on line 3
    .

    One of my MM (Specialities) is used for a select attribute in another one. When clicking on it, there is this error above the list of records :
    Code:
    Warning: Invalid argument supplied for foreach() in system/modules/generalDriver/templates/dcbe_general_listView.html5 on line 28
    
    #0 system/modules/generalDriver/templates/dcbe_general_listView.html5(28): __error(2, 'Invalid argumen...', '/home/eefic/tes...', 28, Array)
    #1 system/modules/core/library/Contao/BaseTemplate.php(88): include('/home/eefic/tes...')
    #2 system/modules/core/library/Contao/Template.php(277): Contao\BaseTemplate->parse()
    #3 system/modules/core/classes/BackendTemplate.php(34): Contao\Template->parse()
    #4 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ActionHandler/AbstractListShowAllHandler.php(88): Contao\BackendTemplate->parse()
    #5 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/View/ActionHandler/AbstractHandler.php(54): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ActionHandler\AbstractListShowAllHandler->process()
    #6 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/View/ActionHandler/AbstractEnvironmentAwareHandler.php(71): ContaoCommunityAlliance\DcGeneral\View\ActionHandler\AbstractHandler->handleEvent(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #7 [internal function]: ContaoCommunityAlliance\DcGeneral\View\ActionHandler\AbstractEnvironmentAwareHandler->handleEvent(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
    #8 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
    #9 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #10 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Controller/DefaultController.php(153): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
    #11 composer/vendor/metamodels/core/src/MetaModels/BackendIntegration/Module.php(74): ContaoCommunityAlliance\DcGeneral\Controller\DefaultController->handle(Object(ContaoCommunityAlliance\DcGeneral\Action))
    #12 system/modules/core/classes/Backend.php(423): MetaModels\BackendIntegration\Module->generate()
    #13 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('metamodel_mm_sp...')
    #14 contao/main.php(20): Contao\BackendMain->run()
    #15 {main}
    I see the same error when I clic on Metamodels itself.

    One more thing : in MetaModels, in my principal MM (Experts) : when I go into the (only) input screen, each field is called Array instead of its name.
    Geändert von Charled (14.09.2017 um 21:55 Uhr)

  5. #5

  6. #6
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Standard

    yes, of course.

  7. #7
    Contao-Fan Avatar von w3scout
    Registriert seit
    20.06.2009.
    Ort
    Stuttgart
    Beiträge
    273
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Zitat Zitat von Charled Beitrag anzeigen
    So I duplicated the website and the db.

    I updated contao-community-alliance/dc-general to 2.0.0-beta40. I deleted and reinstalled mm/bundle_all with Composer. Still have the same problem in the BE.

    When I clic on my MMs, they display their records, when I want to edit a record, I get the error message :
    Code:
    Fatal error: Call to a member function parse() on null in /home/eefic/test/system/modules/generalDriver/templates/dcbe_general_field.html5 on line 3
    .
    Hi,

    delete the generalDriver module. It isn´t neccessary anymore and causes the problems.

    regards

  8. #8
    Contao-Urgestein Avatar von zonky
    Registriert seit
    19.03.2010.
    Ort
    Berlin, Rdf
    Beiträge
    9.719
    User beschenken
    Wunschliste

    Standard

    @Charled: you update your system from Nightly to Composer?

    if so, please note this!
    http://metamodels.readthedocs.io/en/...ld-to-composer

    * delete ALL old MetaModel folders...

  9. #9
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    106

    Standard

    Hello w3scout and Zonky,

    thanks for your new answers. I don't find generaldriver.

    But I finally got my website working again when I could suppress MM with FE editing ß. It was locked by composer but I unlocked it in expert mode.

    On other hand, when displaying dependent packages in package management, I see 2 lines with 2 versions of dc-general :
    - in contao-community-alliance/dc-general 2.0.0-beta40
    - in Contao : contao-community-alliance/dc-general ^3.5.5

    Is it a pb ?

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •