Categories > TinyButStrong general >

E_NOTICE Error

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: armybean
Date: 2009-08-13
Time: 20:05

E_NOTICE Error

When testing my web pages on the local xampp server, PHP throws 2 E_NOTICE Errors:

E_NOTICE:  Undefined variable: Nude1 in tbs_class_php5.php on line 2775
E_NOTICE:  Undefined variable: Nude2 in tbs_class_php5.php on line 2776

This seems only to occur when using the TBS->MergeBlock function.

Little workaround:

- find the line 2765
- add after "}":
    else {
$Nude1='';
$Nude2='';
}
- this worked for me
By: TomH
Date: 2009-08-13
Time: 21:20

Re: E_NOTICE Error

You're a braver person than I ... I'd never alter TBS core code.

Besides that, PHP5 sometimes throws some errors - 'notices' to be more precise - because of undefined vars that aren't really errors.

I set my PHP error reporting to eliminate trivial notice errors.

Try forcing PHP error_reporting manually as sometimes the server uses not standard values.

Try various combos ...
//error_reporting(E_ALL);
error_reporting(E_ERROR);
//error_reporting(E_ALL | E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // all possible settings

HTH,
TomH

By: armybean
Date: 2009-08-13
Time: 21:23

Re: E_NOTICE Error

I know, but I try to validate my scripts by turning on all errors (including E_NOTICE) :)
So I noticed this message.
By: Skrol29
Date: 2009-08-17
Time: 13:38

Re: E_NOTICE Error

Hi,

This bug is fixed with version 3.5.0 which is currently in Release Candidate.

See
http://www.tinybutstrong.com/support.php#changelog