Contao-Camp 2024
Ergebnis 1 bis 10 von 10

Thema: After Contao update Element type in article not work !!!

  1. #1
    Contao-Nutzer
    Registriert seit
    01.06.2018.
    Beiträge
    104

    Standard After Contao update Element type in article not work !!!

    Hi everybody,
    I updated a web site from Contao 3.4 to 4.6.10, last PHP version is 7.2.
    I had many problems with old plugins, etc, but next problem is for me very strange.
    I can't add or change any element type in a article:
    element type.PNG
    When I click for example on "New element", and I want to add "Image", I see just "Text" type and can't change it. This field is total "unclickable".
    Maybe somebody had same or similar problem ???
    Thank you in advanced

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.050
    Partner-ID
    10107

    Standard

    This is probably caused by an extension. I am guessing you have manually installed Contao 3 extensions in system/modules? If yes, remove all of them, delete var/cache and then check if the problem still exists.

  3. #3
    Contao-Nutzer
    Registriert seit
    01.06.2018.
    Beiträge
    104

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    This is probably caused by an extension. I am guessing you have manually installed Contao 3 extensions in system/modules? If yes, remove all of them, delete var/cache and then check if the problem still exists.
    I deleted all plugins, but still have same problem.
    I tried with new installation, but also not work.

  4. #4
    Contao-Nutzer
    Registriert seit
    01.06.2018.
    Beiträge
    104

    Standard

    Morning,
    I tried with next steps:
    -in old version I deleted all too old plugins, delete cashe, and create new database
    -installed new Contao installation with fresh plugins, only Rocksolid Columns, Slider and Page Image
    -I had revolutionslider in old version, and I deleted it, but I still have error messages for this plugin!

    After many attempts I still have same problem with Element type.

    My log file this morning:
    Code:
    [2018-12-14 08:37:20] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_route":"contao_frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","alias":"home"},"request_uri":"http://#####################.de/home.html","method":"HEAD"} []
    [2018-12-14 08:37:20] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2018-12-14 08:37:20] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_route":"contao_frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","alias":"home"},"request_uri":"http://####################.de/home.html","method":"GET"} []
    [2018-12-14 08:37:20] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2018-12-14 08:37:21] request.CRITICAL: Uncaught PHP Exception Exception: "Could not find template "j_slider"" at /www/htdocs/####################/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php line 152 {"exception":"[object] (Exception(code: 0): Could not find template \"j_slider\" at /www/htdocs/####################/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:152)"} []
    [2018-12-14 08:37:28] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_route":"contao_frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","alias":"home"},"request_uri":"http://####################.de/home.html","method":"HEAD"} []
    [2018-12-14 08:37:28] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2018-12-14 08:37:28] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_route":"contao_frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","alias":"home"},"request_uri":"http://####################.de/home.html","method":"GET"} []
    [2018-12-14 08:37:28] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2018-12-14 08:37:28] request.CRITICAL: Uncaught PHP Exception Exception: "Could not find template "j_slider"" at /www/htdocs/####################/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php line 152 {"exception":"[object] (Exception(code: 0): Could not find template \"j_slider\" at /www/htdocs/####################/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:152)"} []
    My composer.json(Contao 4.6.11) only this lines:
    Code:
    {
        "type": "project",
        "require": {
            "contao/calendar-bundle": "^4.6",
            "contao/comments-bundle": "^4.6",
            "contao/faq-bundle": "^4.6",
            "contao/listing-bundle": "^4.6",
            "contao/manager-bundle": "4.6.*",
            "contao/news-bundle": "^4.6",
            "contao/newsletter-bundle": "^4.6",
            "madeyourday/contao-rocksolid-columns": "^2.0",
            "madeyourday/contao-rocksolid-slider": "^2.0",
            "terminal42/contao-pageimage": "^3.3"
        },
        "extra": {
            "contao-component-dir": "assets"
        },
        "scripts": {
            "post-install-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ],
            "post-update-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ]
        }
    }
    And also my Source errors(F12):
    Code:
    Refused to execute script from 'http://##########.de/home.html' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    jquery-3.3.1.min.js:2 jQuery.Deferred exception: r.getClientRects is not a function TypeError: r.getClientRects is not a function
        at w.fn.init.offset (https://code.jquery.com/jquery-3.3.1.min.js:2:83688)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (http://##########.de/files/lib/jquery.waypoints.min.js:7:4744)
        at e.add (http://##########.de/files/lib/jquery.waypoints.min.js:7:2807)
        at new t (http://##########.de/files/lib/jquery.waypoints.min.js:7:827)
        at HTMLDivElement.<anonymous> (http://##########.de/files/lib/jquery.waypoints.min.js:7:8466)
        at Function.each (https://code.jquery.com/jquery-3.3.1.min.js:2:2573)
        at w.fn.init.each (https://code.jquery.com/jquery-3.3.1.min.js:2:1240)
        at w.fn.init.waypoint (http://##########.de/files/lib/jquery.waypoints.min.js:7:8337)
        at HTMLDocument.<anonymous> (http://##########.de/home.html:64:13) undefined
    w.Deferred.exceptionHook @ jquery-3.3.1.min.js:2
    jquery-3.3.1.min.js:2 jQuery.Deferred exception: r.getClientRects is not a function TypeError: r.getClientRects is not a function
        at w.fn.init.offset (https://code.jquery.com/jquery-3.3.1.min.js:2:83688)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (http://##########.de/files/lib/jquery.waypoints.min.js:7:4744)
        at e.add (http://##########.de/files/lib/jquery.waypoints.min.js:7:2807)
        at new t (http://##########.de/files/lib/jquery.waypoints.min.js:7:827)
        at HTMLDivElement.<anonymous> (http://##########.de/files/lib/jquery.waypoints.min.js:7:8466)
        at Function.each (https://code.jquery.com/jquery-3.3.1.min.js:2:2573)
        at w.fn.init.each (https://code.jquery.com/jquery-3.3.1.min.js:2:1240)
        at w.fn.init.waypoint (http://##########.de/files/lib/jquery.waypoints.min.js:7:8337)
        at HTMLDocument.<anonymous> (http://##########.de/home.html:113:13) undefined
    w.Deferred.exceptionHook @ jquery-3.3.1.min.js:2
    jquery-3.3.1.min.js:2 Uncaught TypeError: r.getClientRects is not a function
        at w.fn.init.offset (jquery-3.3.1.min.js:2)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (jquery.waypoints.min.js:7)
        at e.add (jquery.waypoints.min.js:7)
        at new t (jquery.waypoints.min.js:7)
        at HTMLDivElement.<anonymous> (jquery.waypoints.min.js:7)
        at Function.each (jquery-3.3.1.min.js:2)
        at w.fn.init.each (jquery-3.3.1.min.js:2)
        at w.fn.init.waypoint (jquery.waypoints.min.js:7)
        at HTMLDocument.<anonymous> (home.html:64)
    jquery-3.3.1.min.js:2 Uncaught TypeError: r.getClientRects is not a function
        at w.fn.init.offset (jquery-3.3.1.min.js:2)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (jquery.waypoints.min.js:7)
        at e.add (jquery.waypoints.min.js:7)
        at new t (jquery.waypoints.min.js:7)
        at HTMLDivElement.<anonymous> (jquery.waypoints.min.js:7)
        at Function.each (jquery-3.3.1.min.js:2)
        at w.fn.init.each (jquery-3.3.1.min.js:2)
        at w.fn.init.waypoint (jquery.waypoints.min.js:7)
        at HTMLDocument.<anonymous> (home.html:113)
    jquery-3.3.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#mmenu], [href=#revolutionslider])
        at Function.oe.error (jquery-3.3.1.min.js:2)
        at oe.tokenize (jquery-3.3.1.min.js:2)
        at oe.select (jquery-3.3.1.min.js:2)
        at Function.oe [as find] (jquery-3.3.1.min.js:2)
        at w.fn.init.find (jquery-3.3.1.min.js:2)
        at new w.fn.init (jquery-3.3.1.min.js:2)
        at w (jquery-3.3.1.min.js:2)
        at HTMLDocument.<anonymous> (home.html:167)
        at l (jquery-3.3.1.min.js:2)
        at c (jquery-3.3.1.min.js:2)
    jquery-3.3.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: a[href=#revolutionslider]
        at Function.oe.error (jquery-3.3.1.min.js:2)
        at oe.tokenize (jquery-3.3.1.min.js:2)
        at oe.select (jquery-3.3.1.min.js:2)
        at Function.oe [as find] (jquery-3.3.1.min.js:2)
        at w.fn.init.find (jquery-3.3.1.min.js:2)
        at new w.fn.init (jquery-3.3.1.min.js:2)
        at w (jquery-3.3.1.min.js:2)
        at HTMLDocument.<anonymous> (home.html:184)
        at l (jquery-3.3.1.min.js:2)
        at c (jquery-3.3.1.min.js:2)
    jquery-3.3.1.min.js:2 Uncaught TypeError: r.getClientRects is not a function
        at w.fn.init.offset (jquery-3.3.1.min.js:2)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (jquery.waypoints.min.js:7)
        at Function.e.refreshAll (jquery.waypoints.min.js:7)
        at window.onload (jquery.waypoints.min.js:7)
    jquery-3.3.1.min.js:2 Uncaught TypeError: r.getClientRects is not a function
        at w.fn.init.offset (jquery-3.3.1.min.js:2)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (jquery.waypoints.min.js:7)
        at Function.e.refreshAll (jquery.waypoints.min.js:7)
        at e.handleResize (jquery.waypoints.min.js:7)
        at t (jquery.waypoints.min.js:7)

  5. #5
    Contao-Nutzer
    Registriert seit
    01.06.2018.
    Beiträge
    104

    Standard Update

    I solved this errors, downgraded jQuery fro 3.1 to 2.2 , and deleted a few scripts for revolutionslider.
    Zitat Zitat von cleanerrr Beitrag anzeigen
    And also my Source errors(F12):
    Code:
    Refused to execute script from 'http://##########.de/home.html' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
    jquery-3.3.1.min.js:2 jQuery.Deferred exception: r.getClientRects is not a function TypeError: r.getClientRects is not a function
        at w.fn.init.offset (https://code.jquery.com/jquery-3.3.1.min.js:2:83688)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (http://##########.de/files/lib/jquery.waypoints.min.js:7:4744)
        at e.add (http://##########.de/files/lib/jquery.waypoints.min.js:7:2807)
        at new t (http://##########.de/files/lib/jquery.waypoints.min.js:7:827)
        at HTMLDivElement.<anonymous> (http://##########.de/files/lib/jquery.waypoints.min.js:7:8466)
        at Function.each (https://code.jquery.com/jquery-3.3.1.min.js:2:2573)
        at w.fn.init.each (https://code.jquery.com/jquery-3.3.1.min.js:2:1240)
        at w.fn.init.waypoint (http://##########.de/files/lib/jquery.waypoints.min.js:7:8337)
        at HTMLDocument.<anonymous> (http://##########.de/home.html:64:13) undefined
    w.Deferred.exceptionHook @ jquery-3.3.1.min.js:2
    jquery-3.3.1.min.js:2 jQuery.Deferred exception: r.getClientRects is not a function TypeError: r.getClientRects is not a function
        at w.fn.init.offset (https://code.jquery.com/jquery-3.3.1.min.js:2:83688)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (http://##########.de/files/lib/jquery.waypoints.min.js:7:4744)
        at e.add (http://##########.de/files/lib/jquery.waypoints.min.js:7:2807)
        at new t (http://##########.de/files/lib/jquery.waypoints.min.js:7:827)
        at HTMLDivElement.<anonymous> (http://##########.de/files/lib/jquery.waypoints.min.js:7:8466)
        at Function.each (https://code.jquery.com/jquery-3.3.1.min.js:2:2573)
        at w.fn.init.each (https://code.jquery.com/jquery-3.3.1.min.js:2:1240)
        at w.fn.init.waypoint (http://##########.de/files/lib/jquery.waypoints.min.js:7:8337)
        at HTMLDocument.<anonymous> (http://##########.de/home.html:113:13) undefined
    w.Deferred.exceptionHook @ jquery-3.3.1.min.js:2
    jquery-3.3.1.min.js:2 Uncaught TypeError: r.getClientRects is not a function
        at w.fn.init.offset (jquery-3.3.1.min.js:2)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (jquery.waypoints.min.js:7)
        at e.add (jquery.waypoints.min.js:7)
        at new t (jquery.waypoints.min.js:7)
        at HTMLDivElement.<anonymous> (jquery.waypoints.min.js:7)
        at Function.each (jquery-3.3.1.min.js:2)
        at w.fn.init.each (jquery-3.3.1.min.js:2)
        at w.fn.init.waypoint (jquery.waypoints.min.js:7)
        at HTMLDocument.<anonymous> (home.html:64)
    jquery-3.3.1.min.js:2 Uncaught TypeError: r.getClientRects is not a function
        at w.fn.init.offset (jquery-3.3.1.min.js:2)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (jquery.waypoints.min.js:7)
        at e.add (jquery.waypoints.min.js:7)
        at new t (jquery.waypoints.min.js:7)
        at HTMLDivElement.<anonymous> (jquery.waypoints.min.js:7)
        at Function.each (jquery-3.3.1.min.js:2)
        at w.fn.init.each (jquery-3.3.1.min.js:2)
        at w.fn.init.waypoint (jquery.waypoints.min.js:7)
        at HTMLDocument.<anonymous> (home.html:113)
    jquery-3.3.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#mmenu], [href=#revolutionslider])
        at Function.oe.error (jquery-3.3.1.min.js:2)
        at oe.tokenize (jquery-3.3.1.min.js:2)
        at oe.select (jquery-3.3.1.min.js:2)
        at Function.oe [as find] (jquery-3.3.1.min.js:2)
        at w.fn.init.find (jquery-3.3.1.min.js:2)
        at new w.fn.init (jquery-3.3.1.min.js:2)
        at w (jquery-3.3.1.min.js:2)
        at HTMLDocument.<anonymous> (home.html:167)
        at l (jquery-3.3.1.min.js:2)
        at c (jquery-3.3.1.min.js:2)
    jquery-3.3.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: a[href=#revolutionslider]
        at Function.oe.error (jquery-3.3.1.min.js:2)
        at oe.tokenize (jquery-3.3.1.min.js:2)
        at oe.select (jquery-3.3.1.min.js:2)
        at Function.oe [as find] (jquery-3.3.1.min.js:2)
        at w.fn.init.find (jquery-3.3.1.min.js:2)
        at new w.fn.init (jquery-3.3.1.min.js:2)
        at w (jquery-3.3.1.min.js:2)
        at HTMLDocument.<anonymous> (home.html:184)
        at l (jquery-3.3.1.min.js:2)
        at c (jquery-3.3.1.min.js:2)
    jquery-3.3.1.min.js:2 Uncaught TypeError: r.getClientRects is not a function
        at w.fn.init.offset (jquery-3.3.1.min.js:2)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (jquery.waypoints.min.js:7)
        at Function.e.refreshAll (jquery.waypoints.min.js:7)
        at window.onload (jquery.waypoints.min.js:7)
    jquery-3.3.1.min.js:2 Uncaught TypeError: r.getClientRects is not a function
        at w.fn.init.offset (jquery-3.3.1.min.js:2)
        at t.(anonymous function) [as offset] (http://##########.de/files/lib/jquery.waypoints.min.js:7:8010)
        at e.refresh (jquery.waypoints.min.js:7)
        at Function.e.refreshAll (jquery.waypoints.min.js:7)
        at e.handleResize (jquery.waypoints.min.js:7)
        at t (jquery.waypoints.min.js:7)
    Now I have only this error in Source:
    Code:
    Refused to execute script from 'http://##########.de/home.html' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

  6. #6
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.050
    Partner-ID
    10107

    Standard

    Zitat Zitat von cleanerrr Beitrag anzeigen
    Morning,
    I tried with next steps:
    -in old version I deleted all too old plugins, delete cashe, and create new database
    -installed new Contao installation with fresh plugins, only Rocksolid Columns, Slider and Page Image
    -I had revolutionslider in old version, and I deleted it, but I still have error messages for this plugin!
    So it was an extension after all that caused this problem . Even though you assured us before that you removed all.

    Regarding your script problem: post a link to your page.

  7. #7
    Contao-Nutzer
    Registriert seit
    01.06.2018.
    Beiträge
    104

    Standard Video

    I tried also update of all templates, but not work.
    For better understanding problem, you can look video:

    I have no idea what can be.

  8. #8
    Contao-Urgestein Avatar von cliffparnitzky
    Registriert seit
    08.10.2010.
    Ort
    Lüneburg
    Beiträge
    2.450
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Just for the explanation of the error:

    The tl_class definition of the fields "Element type" and "Headline" doesn't match. That may be some wrong w50, long and /or others. This results in overlaying boxes (headline over element type).

    When using developing an own extension some days ago, I had to fix the same probleme in my code. This is something that implicitily run well with Contao 3.5 and has to be corrected with Contao 4.

    For the solution:

    I think one possibility is, that Spooky is right ... the error is inside an extension (probably one, that extends the "tl_content").

    Another option may be some DCA modifications in the "dcaconfig.php".

  9. #9
    Contao-Nutzer
    Registriert seit
    01.06.2018.
    Beiträge
    104

    Standard

    Zitat Zitat von cliffen Beitrag anzeigen
    Just for the explanation of the error:

    The tl_class definition of the fields "Element type" and "Headline" doesn't match. That may be some wrong w50, long and /or others. This results in overlaying boxes (headline over element type).

    When using developing an own extension some days ago, I had to fix the same probleme in my code. This is something that implicitily run well with Contao 3.5 and has to be corrected with Contao 4.

    For the solution:

    I think one possibility is, that Spooky is right ... the error is inside an extension (probably one, that extends the "tl_content").

    Another option may be some DCA modifications in the "dcaconfig.php".
    This is my dcaconfig.php:
    Code:
    <?php
    $GLOBALS['TL_DCA']['tl_content']['fields']['headline']['eval'] = array('allowHtml'=>true); 
     
    ?>

  10. #10
    Contao-Nutzer
    Registriert seit
    01.06.2018.
    Beiträge
    104

    Daumen hoch Solved

    Zitat Zitat von cliffen Beitrag anzeigen
    Just for the explanation of the error:

    The tl_class definition of the fields "Element type" and "Headline" doesn't match. That may be some wrong w50, long and /or others. This results in overlaying boxes (headline over element type).

    When using developing an own extension some days ago, I had to fix the same probleme in my code. This is something that implicitily run well with Contao 3.5 and has to be corrected with Contao 4.

    For the solution:

    I think one possibility is, that Spooky is right ... the error is inside an extension (probably one, that extends the "tl_content").

    Another option may be some DCA modifications in the "dcaconfig.php".
    That was problem, dcaconfig.php file.

    I had this line:

    Code:
    <?php
    $GLOBALS['TL_DCA']['tl_content']['fields']['headline']['eval'] = array('allowHtml'=>true); 
     
    ?>
    I found one more project which I updated from 3.5 to 4.6, and compared dcaconfig.php file. This is my first time I see content in this file, but I change content with next lines:
    Code:
    <?php
    
    $GLOBALS['TL_DCA']['tl_content']['fields']['headline']['eval']['allowHtml'] = true;
    $GLOBALS['TL_DCA']['tl_page']['fields']['title']['eval']['allowHtml'] = true;
    $GLOBALS['TL_DCA']['tl_page']['fields']['pageTitle']['eval']['allowHtml'] = true;
    Now element type work normal.

    Thank you very much guys for every words.

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
  •