Giter Site home page Giter Site logo

richardhj / contao-theme-framework Goto Github PK

View Code? Open in Web Editor NEW
18.0 8.0 0.0 99 KB

A new standardized and database-less way to build frontend themes in Contao.

License: MIT License

PHP 98.25% JavaScript 1.68% CSS 0.07%
encore twig-templates contao

contao-theme-framework's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contao-theme-framework's Issues

ServiceNotFoundException: dependency on a non-existent service

Contao 4.12.4

after executing the "composer update" in a fresh Contao installation I am getting the following Exception:

In DecoratorServicePass.php line 91:
                                                                                                                                                            
The service "Richardhj\ContaoThemeFramework\Twig\Loader\ThemeNamespace" has a dependency on a non-existent service "contao.twig.loader.theme_namespace".                                                                   

Script @php vendor/bin/contao-setup handling the post-update-cmd event returned with error code 1

Configuration error of parameter "rows" in layout

When writing this in the configuration for layouts :

layouts:
  _default:
    name: Default layout
    template: fe_page
    rows: 3rw

we got the following error :

In ExceptionConverter.php line 88:

  An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the
  manual that corresponds to your MariaDB server version for the right syntax to use near 'rows = '3rw', alias = '_default', pid = '3', tstamp = '1651845
  701' WHERE id =...' at line 1

In Exception.php line 30:

  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server
  version for the right syntax to use near 'rows = '3rw', alias = '_default', pid = '3', tstamp = '1651845701' WHERE id =...' at line 1

In Statement.php line 101:

  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server
  version for the right syntax to use near 'rows = '3rw', alias = '_default', pid = '3', tstamp = '1651845701' WHERE id =...' at line 1

The parameter rows seems to be reserved in MariaDB, so we have to write the config this way, with backquotes, to make it work :

layouts:
  _default:
    name: Default layout
    template: fe_page
    '`rows`': 3rw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.