Disable error logging in typo3 [closed] - typo3

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I need to disable all error and warning logging in typo3.
How can I do that?
I tried to set this in localconf.php
$TYPO3_CONF_VARS['SYS']['displayErrors'] = 0;
$TYPO3_CONF_VARS['SYS']['syslogErrorReporting'] = 0;
$TYPO3_CONF_VARS['SYS']['belogErrorReporting'] = 0;
But it doesn't seems to work

Thought I just write the full answer for disabling all logging:
localconf.php
$TYPO3_CONF_VARS['SYS']['displayErrors'] = '0';
$TYPO3_CONF_VARS['SYS']['devIPmask'] = '';
$TYPO3_CONF_VARS['SYS']['errorHandler'] = '';
$TYPO3_CONF_VARS['SYS']['debugExceptionHandler'] = '';
$TYPO3_CONF_VARS['SYS']['productionExceptionHandler'] = '';
$TYPO3_CONF_VARS['SYS']['systemLog'] = '';
$TYPO3_CONF_VARS['SYS']['enable_errorDLOG'] = '0';
$TYPO3_CONF_VARS['SYS']['enable_exceptionDLOG'] = '0';
$TYPO3_CONF_VARS['SYS']['enableDeprecationLog'] = '0';
.htaccess
php_flag display_errors off
php_flag log_errors off

What's global_localconf.php? That must be some custom setup, right?
You can add the settings to typo3conf/localconf.php either manually or via the install tool (http://www.example.com/typo3/install/index.php?TYPO3_INSTALL[type]=extConfig).
Otherwise, the display of PHP warnings/errors (that's what $TYPO3_CONF_VARS['SYS']['displayErrors'] sets) can be altered in the .htaccess file (in the root of your website):
php_flag display_errors off

Related

Checking the entered data for correctness swift [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
How can I make a check for the correctness of the entered data?
For example, the user needs to enter a digit, and until this is done, the program will not skip it further
In my case, you need to make sure that the user entered an integer, and not a string, double, etc.
Just create an infinite loop. If your read is successful break it. Something like:
while true {
if let line = readLine(), let value = Int(line) {
print("value", value)
break
}
}

Flutter how to add a 0 behind a hour if the hour is less than 10? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
Im trying to check if an hour is below 10 so i can add a 0 behind it to make it the right hour format.
All my efforts till now haven't worked out.
Thank you for you time
You can use padLeft() method on strings. It takes width and padding parameters. You can use it like this:
print("5".padLeft(2,"0")); // Prints 05
print("14".padLeft(2,"0")); // Prints 14
you can try this;
var now = new DateTime.now();
String newHour = now.hour.toString();
if (newHour.length > 2) {
newHour = "0"+ newHour;
}

How to stop VS. Code from destroying the formating of my code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Is there some way to write/download rules for how VS. Code should format the code?
Example:
I have this nicely formatted (JavaScript) code:
var boundingBox = Object.create(null);
boundingBox.top = 0;
boundingBox.left = 0;
boundingBox.right = window.innerWidth;
boundingBox.bottom = window.innerHeight;
But after I do: Right-click --> Format Document
It destroys it into this (relatively) ugly & "unreadable" mess:
var boundingBox = Object.create(null);
boundingBox.top = 0;
boundingBox.left = 0;
boundingBox.right = window.innerWidth;
boundingBox.bottom = window.innerHeight;
Is there some plugin/.edditorconfig rules/settings/other thing I can do to tell VS. Code how it should format the code? (or at least not destroy the existing formating?)
I think what you want is this extension:
https://marketplace.visualstudio.com/items?itemName=wwm.better-align
It allows you to align your code lines by colon(:), assignment(=,+=,-=,*=,/=) and arrow(=>)
However, my personal opinion is that it would likely be worth it to get used to other code formatting styles. From my experience, aligning code by specific characters is not common practice.

Unable to set member variable [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Very strange issue.
I have the following code:
NSDictionary* notificationUserInfo = [pNotification userInfo];
NSManagedObject* newShoppingFilter = [notificationUserInfo valueForKey:#"shoppingListFilter"];
self.shoppingListFilter = newShoppingFilter;
NSLog(#"%# tapped", [newShoppingFilter valueForKey:#"name"]);
For some reason the self.shoppingListFilter = newShoppingFilter is not setting the variable.
I assume that this is some issue with not initializing the self.shoppingListFilter variable in some way but I cannot figure this out. The NSLog shows the right output, newShoppingFilter is not null but self.shoppingListFilter is.
Any help is appreciated.
I bet newShoppingFilter is nil. Most likely, there is no key "shoppingListFilter" in the notification user info dictionary.
Set a breakpoint at the line that assigns a value to self.shoppingListFilter and check the value of newShoppingFilter. Also display the entire contents of notificationUserInfo.
Post the code that creates the user info dictionary and passes it into the notification that you are posting. That would help track down the problem.

How to write this if-condition for real? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
How could I write this in real code?
if (!UIImageView with origin.x > 50.0) {
//Exlcude the imageview from whatever happens in this statement.
}
if (imageView.frame.origin.x <= 50.0) {
// The code in this block won't bother the image views
// with 'x > 50.0' anymore
}