Questions tagged [notice]
293 questions
4
votes
1 answer
Handle notice in production with Symfony 4
I'm trying the new Symfony 4 and Sentry error tracking.
On dev env, notice and exception are handled the same way with a nice screen thanks to the Debug class.
On prod env, exception triggers the nice error page and a log entry in Sentry.
But…

syl.fabre
- 696
- 1
- 7
- 20
4
votes
4 answers
flash[:notice] is shown on browser back again
Hej,
i have a problem:
I'm using flash[:notice] in my rails app.
A User comes to the page and creates a new object. The flash-message says "Created." Now he clicks on a link on the page. If he is coming back by using the "back" button of his…

Sebastian
- 79
- 1
- 2
4
votes
1 answer
PostgreSQL: Capture RAISE NOTICE from a client connection via ZeosLib/Lazarus
I have developed a client application that use PostgreSQL 8.4 RDBMS.
My Application is written in Lazarus and ZeosLib 7.2 for database access.
I use a lot of stored procedures and in specific point I use raise notice to get info of the procedure…

AndreaBoc
- 3,077
- 2
- 17
- 22
4
votes
5 answers
How to hide error "Trying to get property of non-object"
I have the following code, which works correctly. The Twitter Friends are listed correctly, however it seems that when the last item is displayed the error "Notice: Trying to get property of non-object" is displayed 4 times.
Since the code works as…

user2675041
- 115
- 1
- 5
- 15
4
votes
1 answer
CodeIgniter - Creating default object from empty value
A PHP Error was encountered
Severity: Warning
Message: Creating default object from empty value
Filename: models/Modeltest.php
Line Number: 13
I am trying to create an array in model and returning it to the controller but it is giving this…

Nisar ahmed
- 57
- 1
- 1
- 8
4
votes
1 answer
ruby on rails flash notice always appears
I have a controller (not model related) which searches for stuff on YouTube via API. What I'm trying to achieve is simple enough...if someone clicks the search button when no string was entered then a flash notice will appear saying 'please enter…

spongey
- 171
- 1
- 10
4
votes
1 answer
Disable notice yii
How disable notice , i try in idex.php But Notice is echo , how i can disable this .
define("YII_ENBLE_ERROR_HANDLER",false)
define("YII_ENBLE_EXCEPTION_HANDLER",false)
?>
in php.ini

user2420249
- 248
- 1
- 4
- 10
3
votes
3 answers
Can't get rid of PHP notices in mPDF
I'm using the mPDF library to generate PDF docs directly from HTML output. The problem is that this mPDF library is written as it is and it is generating dozens of notices (undefined index, undefined offset, etc). I tried anything to stop outputting…

shadyyx
- 15,825
- 6
- 60
- 95
3
votes
1 answer
strange php regex notice
I'm trying to write a function for converting bad file names to correct file names. I tryed to accomplish this with regex, which works well but throws an notice every time try to correct a name. This is my code:
private function…

user1004012
- 87
- 2
- 8
3
votes
1 answer
Remove "Checkout is not available whilst your cart is empty." notice in WooCommerce
What code should I add to functions.php to remove "Checkout is not available whilst your cart is empty." notice in Woocommerce.
I found the code in includes/wc-template-functions.php that is responsible for displaying this message.
// When on the…

vocus
- 61
- 7
3
votes
1 answer
Display a Custom Message in Woocommerce Checkout page
This solution is based on Add an informative custom message in Woocommerce Checkout page
I've created a custom message but not sure if the syntax is correct. It displays fine on the front end, but need help to check it.
add_action(…

Wanderlust Consulting
- 505
- 4
- 21
3
votes
1 answer
PHP Simple HTML DOM, Notice: Trying to get property of non-object
I am getting Notice: Trying to get property of non-object at:
$var = trim($article->find('span[id$=qty]', 0)->innertext);
$article is a simple_html_dom() object.

Dominik
- 4,718
- 13
- 44
- 58
3
votes
3 answers
PHP Newbie question; "notice: undefined property"
I'm running the following code:
class Foo {
private $var = 0;
function isVarSet () {
return ($this->var != 0);
}
}
...
foo = new Foo();
results in an "undefined property" notice: foo::$var on my PHP (ver. 5.3.5).
if I…

Mansiemans
- 896
- 2
- 12
- 23
3
votes
1 answer
Custom cart notice based on user total purchased amount in Woocommerce
I am trying to display a custom cart notice based on user total purchased amount in Woocommerce, based on this answer code:
Add a percentage discount based on customer total purchases sum in Woocommerce
It does not work as I would like.
For example…

Lê Nghĩa
- 255
- 4
- 15
3
votes
1 answer
Display how much is left before free shipping and Delivery Information in WooCommerce
Based on this answer: Conditional Delivery Notice based on Time and Date in Woocommerce, I am getting a shipping message based on specific shipping coonditions.
Now I realized that I need to set the free shipping method in WooCommerce and doing so,…
user10551357