Project

General

Profile

Actions

Bug #19184

closed

no error message if include file not found

Added by H. Hahn almost 16 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-08-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When I include a file with Typoscript (whether with xx = HTML/xx.file = ..., or xx=PHPSCRIPT_EXT/xx.file=..., or whatever else) I never get an error message when the file is not found. Especially in new projects, or when adding a new include file, a simple typo in a file name or path name (e.g. a upppr/lower case error) is simply made. It will result in th efile not being found. It just "does not work", and I may have to spend much time before I find the actual error.

QUESTION:
Why doesn't the Typoscript implementation use the PHP function "require()" or something like that? The "include()" function does nit give error messages, but "require()" does.
It would be very helpful for web developers if you could change this!

(issue imported from #M9102)

Actions #1

Updated by Franz Holzinger over 15 years ago

@is_file is used on other places and would do this job.
An exception should be used if the file is not found.

Actions #2

Updated by Steffen Kamper over 15 years ago

I disagree. In Typoscript a message has to be sent to admin panel like other errors too. This is the tool to verify the TS settings.

Check out admin panel and check "Display messages"

Actions #3

Updated by Franz Holzinger over 15 years ago

In the backend you have already tools to examine the TypoScript. No need to change to the Frontend. The Template Analyzer should show more error messages.

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #5

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF