Results 1 to 35 of 35

Thread: Mate Theme - Error after logging into admin pane

  1. #1
    User
    Join Date
    09-15-19.
    Posts
    39

    Default Mate Theme - Error after logging into admin pane

    Hello!
    I have installed Mate Theme 4.8 for Contao 4.8.
    The front end is OK.
    When I try to log in into backend I get an error, see the screenshot in attachment.

    Attachment 285

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Just read the hints on the screenshot!

    How can I fix the issue?

    Open the current log file in the var/logs directory and find the associated error message (usually the last one)
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    09-15-19.
    Posts
    39

    Default Mate Theme - Error after logging into admin pane

    Thanks for reply!

    I reinstalled now again the theme (imported the db and created new user for back end) but the system did not create any new log.

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Please post the last relevant entries from the log file in var/logs.
    Contao Community Moderator
    → Support options

  5. #5
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    I installed now from 0 last version of Contao.
    Since I install the projects on DevilBox the project files should be in project-name-folder > htdocs
    So, I install composer in project-name-folder (contao4)

    Code:
    wget https://getcomposer.org/installer -O composer-setup.php
    
    php composer-setup.php
    
    php composer.phar create-project contao/managed-edition htdocs
    
    mv composer.phar htdocs
    
    # Define the vhost to serve files (Apache Settings)
        DocumentRoot "/shared/httpd/contao4/htdocs/web"
        <Directory "/shared/httpd/contao4/htdocs/web">
            DirectoryIndex index.php index.html index.htm
        
            AllowOverride All
            Options All
        
            RewriteEngine on
            RewriteBase /
        
            Order allow,deny
            Allow from all
            Require all granted
        </Directory>
    
    http://contao4/contao/install
    Install mae_event_categories extension

    Code:
    php composer.phar require marebe1602/mae_event_categories
    
    http://contao4.loc/contao/install
    Install Mate Template. After installation, in admin panel I click the first green button then the second one. After that I run /contao/install.

    Code:
    php composer.phar require contao-themes-net/mate-theme-bundle
    
    http://contao4.loc/contao/install
    After all these installations trying to log in in back end I get the same error.
    The var/logs folder is empty.

  6. #6
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    I have installed now new fresh Contao 4.8.13 + mae_event_categories + mate-theme-bundle

    My workflow is DevilBox (Docker Based) installed on Ubuntu 18.08 which runs on WSL2 in Windows 10 Pro V. 1903

    PHP 7.2.19
    MySQL 5.7.25
    Apache 2.4.38

    In DevilBox I must install all projects in project-name-folder > htdocs.
    The project-name-folder becomes then project-name-folder.loc domain.
    So, at the end I have http://contao4.loc/

    Install Contao.

    Code:
    cd contao4/
    
    wget https://getcomposer.org/installer -O composer-setup.php
    
    php composer-setup.php
    
    sudo rm composer-s*
    
    php composer.phar create-project contao/managed-edition htdocs
    
    mv composer.phar htdocs
    
    # Define the vhost to serve files (Apache Settins)
        DocumentRoot "/shared/httpd/contao4/htdocs/web"
        <Directory "/shared/httpd/contao4/htdocs/web">
            DirectoryIndex index.php index.html index.htm
        
            AllowOverride All
            Options All
        
            RewriteEngine on
            RewriteBase /
        
            Order allow,deny
            Allow from all
            Require all granted
        </Directory>
    
    http://contao4/contao/install
    Successful installation, no logs in var/logs

    Install extension mae_event_categories

    Code:
    php composer.phar require marebe1602/mae_event_categories
    
    http://contao4.loc/contao/install
    Successful installation, no logs in var/logs

    Install Mate template

    Code:
    php composer.phar require contao-themes-net/mate-theme-bundle
    
    click the first and second green buttons in backend
    
    http://contao4.loc/contao/install
    Successful installation, no logs in var/logs
    When I try to log into back end I get the same error
    Last edited by amida; 09/19/2019 at 16:20.

  7. #7
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    I guess you have to follow the installation instructions exactly: https://docs.contao-themes.net/#/mate-installation

    Did you clear the tl_files database table before importing the SQL website template via Contao install tool?
    Contao Community Moderator
    → Support options

  8. #8
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    Yes.

    I wrote that I clicked the first green button then the second one.
    I got also a message that ... was cleaned successfully..

  9. #9
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Please enable the Debug Mode. Without an error message we can't do nothing.
    Last edited by xchs; 09/19/2019 at 19:32.
    Contao Community Moderator
    → Support options

  10. #10
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    How to enable it if I have no access to the back end?
    I switched it on on another local Contao project, where is no template installed and we are talking about Contao Manager.

    In general, this template is very nice but I needed it for tests, to solve another problem.

    My initial problem is this one:
    https://community.contao.org/en/show...nt-Detail-page

    Nobody replied to this problem and I decided to install Contao 4 with another template, such as Mate and try there to implement what I need, may be it will work..

    All what I need is to click on event in event list and open the event in event details page.
    And since I learn now the Contao 4, I think I could propose the the client to update her website to Contao 4...
    Last edited by amida; 09/20/2019 at 13:03.

  11. #11
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by amida View Post
    How to enable it if I have no access to the back end?
    Create a .env file in the Contao root directory with
    Code:
    APP_ENV=dev
    Could it be a problem with the marebe1602/mae_event_categories extension?
    Contao Community Moderator
    → Support options

  12. #12
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    After setting up .env and logging in and I get a big page of logs.
    If I try to post all page, I am getting blocked on forum

    So, I post just the upper part which is on red background

    Code:
    An exception occurred while executing 'UPDATE tl_user SET `id`='1', `tstamp`='1568895652', `username`='Admin', `name`='admin', `email`='aaa@mail.com', `language`='en', `backendTheme`='flexible', `fullscreen`='', `uploader`='', `showHelp`='1', `thumbnails`='1', `useRTE`='1', `useCE`='1', `password`='$2y$10$v11dT8QVXzvs//fUUT2K5OvpwN4GJ6Amo5VSnWNMIuhPnTQ518UmG', `pwChange`='', `admin`='1', `groups`=NULL, `inherit`='group', `modules`='a:0:{}', `themes`='a:0:{}', `pagemounts`='a:0:{}', `alpty`='a:0:{}', `filemounts`='a:0:{}', `fop`='a:0:{}', `imageSizes`='a:0:{}', `forms`='a:0:{}', `formp`='a:0:{}', `amg`='a:0:{}', `disable`='', `start`='', `stop`='', `session`=NULL, `dateAdded`='1568895652', `secret`=NULL, `useTwoFactor`='', `lastLogin`='0', `currentLogin`='0', `loginCount`=3, `locked`='0', `faqs`='a:0:{}', `faqp`='a:0:{}', `news`='a:0:{}', `newp`='a:0:{}', `newsfeeds`='a:0:{}', `newsfeedp`='a:0:{}', `newsletters`='a:0:{}', `newsletterp`='a:0:{}', `calendars`='a:0:{}', `calendarp`='a:0:{}', `calendarfeeds`='a:0:{}', `calendarfeedp`='a:0:{}', `maeEventCatDefault`='a:0:{}', `maeEventCat`='a:0:{}' WHERE id='1'': SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'maeEventCat' at row 1
    Regarding plugin, I will try to uninstall it or to install the project from 0 without that plugin
    Last edited by amida; 09/20/2019 at 16:20.

  13. #13
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    As I suspected above: It actually seems to be a problem with the marebe1602/mae_event_categories extension. Try to uninstall this extension.
    Last edited by xchs; 09/20/2019 at 16:23.
    Contao Community Moderator
    → Support options

  14. #14
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    You are right! I installed a new project without marebe1602/mae_event_categories extension and now I could log in into backend.
    After that I installed Contao Manager with the hope that it will appear in back end, but unfortunately it did not appear.
    Only in Debug mode it appears.

    So, what is the conclusion? marebe1602/mae_event_categories extension does not work with Contao 4.8?
    Would be nice to inform the extension developer about this issue..

  15. #15
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by amida View Post
    After that I installed Contao Manager with the hope that it will appear in back end, but unfortunately it did not appear.
    Only in Debug mode it appears.
    Hm, that's indeed strange. Perhaps it has something to do with your Devilbox local dev environment. If you think it's a bug, you could create a bug report: https://github.com/contao/contao/issues


    Quote Originally Posted by amida View Post
    Would be nice to inform the extension developer about this issue..
    You can do this here: https://github.com/marebe1602/mae_ev...egories/issues
    It seems, however, that the extension is not really well maintained. The last commit was two years ago.
    Contao Community Moderator
    → Support options

  16. #16
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    I've sent him an email.
    Ok, I will create a bug report about Contao Manager.

    For now, I can just try to find a solution for Contao 3.5 for our client.
    The extension works on that version. I just need help on solve that issue
    https://community.contao.org/en/show...nt-Detail-page

    Looking on this example, I see that it works
    https://demo3.contao-themes.net/even...eme=contaodemo

    Isn't it possible to get access to the backend of this demo template and look how it is set up?

  17. #17
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by amida View Post
    Looking on this example, I see that it works
    https://demo3.contao-themes.net/even...eme=contaodemo

    Isn't it possible to get access to the backend of this demo template and look how it is set up?
    Yes, of course: https://demo.contao.org/contao/login
    Contao Community Moderator
    → Support options

  18. #18
    User
    Join Date
    09-15-19.
    Posts
    39

    Than you for support! Nice support!

    I will look and try to find a solution. If not, I would like to be in touch with somebody also here
    https://community.contao.org/en/show...nt-Detail-page

  19. #19
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Instead of marebe1602/mae_event_categories you could maybe try contaoblackforest/contao-calendar-tags-bundle, too. With this extension, you should also be able to filter the events via tags.
    Contao Community Moderator
    → Support options

  20. #20
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    Thank you! If it works in the same way like categories, just are called tags, then it is ok. I will try it.
    By contao/core-bundle: ^4.4 does it mean that it works just on contao 4.4 and higher?
    If yes, then I will have to solve the problem with Contao Manager as well. For client is important to have it in back end.

  21. #21
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by amida View Post
    By contao/core-bundle: ^4.4 does it mean that it works just on contao 4.4 and higher?
    Yep! The version constraint ^4.4 includes all versions between 4.4.0 and < 5.0.0.
    Contao Community Moderator
    → Support options

  22. #22
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    I installed contaoblackforest/contao-calendar-tags-bundle and Mate theme but could not find any tags settings for events.
    Also, in Mate, the events page is set up by default with all calendars, events list modules but when I select it in menu, I get error 404. Just News and contacts pages work.

    Then I tried to install all project from 0.
    1. Last version of Contao
    2. Contao Manager
    3. With Contao Manager I tried to install Contao Official Demo Theme but at the end I get error and it can not be installed. See the screenshot.


    Annotation 2019-09-20 193251.jpg

    Is there any working template which I can install and test contaoblackforest/contao-calendar-tags-bundle?

  23. #23
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by amida View Post
    I installed contaoblackforest/contao-calendar-tags-bundle and Mate theme but could not find any tags settings for events.
    Unfortunately, I have never used this extension either. That's why I can't tell you anything more about it.


    Quote Originally Posted by amida View Post
    With Contao Manager I tried to install Contao Official Demo Theme but at the end I get error and it can not be installed.
    The Contao Official Demo (COD) is currently not available for Contao 4.8. You would have to install Contao 4.4 first, then install the COD demo website template and finally update Contao to version 4.8.
    Contao Community Moderator
    → Support options

  24. #24
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    I installed Contao Version 4.4.43 then Contao Manager.
    Contao Manager does not show up in back end!
    I tried to install Contao Official Demo theme with Manager. I did it's work, I updated the DB clicking the button but I did not found any theme.
    Contao Manager also does not show the theme in it's list.
    I installed again and this time it end up with error, ask in Contao 4.8.
    So, it is not possible to install COD in Contao 4.4
    Last edited by amida; 09/20/2019 at 21:42.

  25. #25
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by amida View Post
    Contao Manager does not show up in back end!
    Yeah, as I already told you today, the link to the Contao Manager is only available as of Contao 4.8. Therefore, you won't find a back end menu item "Contao Manager" in Contao 4.4. Just open the Contao Manager as usual via http://contao44.loc/contao-manager.phar.php.

    Quote Originally Posted by amida View Post
    I tried to install Contao Official Demo theme with Manager. I did it's work, I updated the DB clicking the button but I did not found any theme.
    In the Contao install tool, you would have to select the COD *.sql template file from the "Templates" select field.

    Quote Originally Posted by amida View Post
    Contao Manager also does not show the theme in it's list.
    Sure, all you have to do is to search for contao/official-demo:




    EDIT:
    Alternatively, you can install the COD also via command line. Just run
    Code:
    composer require contao/official-demo:4.0.0
    in the Contao root directory.
    Last edited by xchs; 09/20/2019 at 21:59.
    Contao Community Moderator
    → Support options

  26. #26
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    I meant, it was not in the list extensions after installation.

    I tried again to install the theme on new project and the installation ends up with and error

    3.jpg

    The log is in screenshot. If I post the text log, the forum does not accept it, telling that it is spam:

    4.JPG

    I will try with Composer

  27. #27
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by amida View Post
    I meant, it was not in the list extensions after installation.
    Sorry, I don't understand what you mean.

    Quote Originally Posted by amida View Post
    I tried again to install the theme on new project and the installation ends up with and error
    Yeah, you are trying to install version 4.2 of the COD. That does not work. Please try this: run

    Code:
    composer require contao/official-demo:"4.0.0"
    in the Contao root directory.
    Contao Community Moderator
    → Support options

  28. #28
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    Quote Originally Posted by xchs View Post
    Sorry, I don't understand what you mean.

    It was said regarding screenshot you posted

    Yeah, you are trying to install version 4.2 of the COD. That does not work. Please try this: run
    I installed it with Manager. The Manager gives just one version.

    Code:
    composer require contao/official-demo:"4.0.0"
    in the Contao root directory.
    Ok

  29. #29
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Of course, you can do this also with the Contao Manager, but you would have to specify the version 4.0.0 in the corresponding version field.
    Contao Community Moderator
    → Support options

  30. #30
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    So, finally I got it installed!!
    Now, please, explain how to update it to the last version, otherwise I don't know what else could happen to me..
    And should I install the extension and manager before update or after?
    Last edited by amida; 09/20/2019 at 23:28.

  31. #31
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by amida View Post
    So, finally I get it installed!!
    Well done!


    Quote Originally Posted by amida View Post
    Now, please, explain how to update it to the last version, otherwise I don't know what else could happen to me..
    You can do this either on the command line or with the Contao Manager:

    Composer on the command line:

    • Edit your composer.json in the Contao root directory and change
      Code:
      "contao/manager-bundle": "4.4.*",
      to
      Code:
      "contao/manager-bundle": "4.8.*",
    • Save the composer.json and run
      Code:
      composer update


    Contao Manager:

    • Edit (gear icon) the version constraint for the "Contao Open Source CMS" entry (i.e. the first one in the package list) and change 4.4.* to 4.8.*
    • Mark all (!) other packages for the update and perfom a complete package update


    Don't forget to run the Contao install tool and update the database!


    Quote Originally Posted by amida View Post
    And should I install the extension before update or after?
    That does not matter I think.
    Contao Community Moderator
    → Support options

  32. #32
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    Thank you!
    I succeeded to update the system. I installed the Manager on updated system.
    Then I installed the extension successfully but as earlier, I can not find it in back end.

    I can not find this installed extension also in the list of Manager.

  33. #33
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Ok, I just tried it by myself:

    Code:
    composer require contaoblackforest/contao-calendar-tags-bundle
    Contao Manager:



    Contao back end / Events:

    Contao Community Moderator
    → Support options

  34. #34
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    I installed the extension with Manager and it was installed successfully but didn't get it in back end.
    Now I installed like you, with Composer and I have it.

    I personally also prefer to install with Composer but ordinary users do not like command line and I try to do things like ordinary users..
    So, now I have everything for experiments..
    Thank you very much!!

  35. #35
    User
    Join Date
    09-15-19.
    Posts
    39

    Default

    I've spent much time with contaoblackforest/contao-calendar-tags-bundle but didn't find how to get the tab filter on events page.
    Finally I had to remove it and try again to install mae_event_categories.
    This time it works, didn't break anything and without any additional settings I can get the event details page.
    Of course now I have another theme (not Mate) but may be it works because the template was installed on Contao 4.4 and then upgraded...?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •