Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Zu lange Templatenamen #6819

Closed
Samson1964 opened this issue Mar 21, 2014 · 8 comments
Closed

Zu lange Templatenamen #6819

Samson1964 opened this issue Mar 21, 2014 · 8 comments
Assignees
Labels
Milestone

Comments

@Samson1964
Copy link

Contao 3.2.8 läßt lange Templatenamen zu, verabschiedet sich dann aber mit einem Fatal error beim Zugriff auf das Template:

PHP Fatal error: Uncaught exception 'Exception' with message 'Could not find template "news_liste_eingangsseite_ausschr"' thrown in /var/......../library/Contao/TemplateLoader.php on line 127

Das Template heißt "news_liste_eingangsseite_ausschreibungen"

@leofeyer
Copy link
Member

Behoben in 20b552f.

@zonky2
Copy link

zonky2 commented Mar 23, 2017

was ist der Grund, warum die Zeichenbegrenzung von 64 wieder auf 32 gesetzt wurde?

Soweit ich das sehe, stehen die DB-Felder auf varchar(64) ...

Wenn ich ein Template mit Namen 12345678901234567890123456789012.html5 kopiere wird der Dateinamen automatisch zu 12345678901234567890123456789012_1.html5 ... das sind dann 34 Zeichen...

@fritzmg
Copy link
Contributor

fritzmg commented Mar 23, 2017

Was sollte denn stattdessen passieren?

@zonky2
Copy link

zonky2 commented Mar 23, 2017

Fehlermeldung?

@zonky2
Copy link

zonky2 commented Mar 23, 2017

aber was mich mehr interessiert, ist die Möglichkeit längere Dateinamen zu vergeben...

bei MetaModels gehen die mit metamodels_* los - da sind schon fast 50% weg :-(

@fritzmg
Copy link
Contributor

fritzmg commented Mar 23, 2017

Ja stimmt, mir war gar nicht bewusst dass das Limit für den /templates Ordner tatsächlich immer noch bei 32 liegt.

@leofeyer
Copy link
Member

Geändert in fcea9f6.

@zonky2
Copy link

zonky2 commented Apr 18, 2017

thx

jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Apr 25, 2017
# Contao calendar bundle change log

### 4.3.8 (2017-04-24)

 * Correctly use the en dash in the calendar modules (see contao/core#8690).
 * Correctly support 64 character template names everywhere (see contao/core#6819).

# Contao comments bundle change log

### 4.3.8 (2017-04-24)

 * Correctly support 64 character template names everywhere (see contao/core#6819).

# Contao core bundle change log

### 4.3.9 (2017-04-25)

 * Revert the Punycode library changes (see contao/core#8693).

### 4.3.8 (2017-04-24)

 * Inline small images in protected folders in the file manager (see #636).
 * Correctly encode the URL in the DataContainer::switchToEdit() method (see #762).
 * Fix the parent view drag and drop in Firefox (see #666).
 * Correctly display the search results in the extended tree view (see #739).
 * Update the Punycode library to version 2 (see #748).
 * Fix the "delete file" button for non-admin users (see #764).
 * Prevent endless loops in the book navigation module (see contao/core#8665).
 * Limit the maximum size of dimensionless SVGs in the back end (see contao/core#8684).
 * Correctly support 64 character template names everywhere (see contao/core#6819).
 * Remove the UTF-8 BOM when combining files (see contao/core#8689).
 * Correctly move folders with an "@" in their name (see contao/core#8674).
 * Correctly redirect to the last page visited upon login (see contao/core#8632).

### 4.3.7 (2017-03-23)

 * Check the database connection in the WebsiteRootsConfigProvider class.
 * Fix the %2B conversion in the Controller::addToUrl() method.

# Contao listing bundle change log

### 4.3.8 (2017-04-24)

 * Correctly support 64 character template names everywhere (see contao/core#6819).

# Contao news bundle change log

### 4.3.8 (2017-04-24)

 * Correctly support 64 character template names everywhere (see contao/core#6819).

# Contao newsletter bundle change log

### 4.3.8 (2017-04-24)

 * Correctly support 64 character template names everywhere (see contao/core#6819).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants