Ticket #125 (closed defect: fixed)

Opened 21 months ago

Last modified 16 months ago

PHP Notices at fresh install

Reported by: fboender Owned by: fboender
Priority: normal Milestone: MvBlog 2.1
Component: global Version: 2.0
Severity: Keywords: errors notices tracking error reporting
Cc:

Description

I just did a fresh install of MvBlog on my local workstation, and the homepage shows a lot of 'Notice: Undefined index' and other notices. These are probably related to the default error level setting of the PHP installation. These should be fixed.

This ticket is mainly used to keep track of the fixes, for easy reviewing by the project leader.

I'm also setting the error reporting to maximum on Trunk so errors are more easily catched. This must be turned off for public releases!

Change History

Changed 21 months ago by fboender

(In [376]) public function existed with same name as class (constructor) but which wasn't a constructor. Renamed. Commiting this file so that it can be renamed to skeleton.php. re #125

Changed 21 months ago by fboender

A default error handler should be added that aborts on any PHP Notices. That way, developers are forced to fix errors straight away.

Changed 21 months ago by fboender

  • status changed from new to assigned

Changed 21 months ago by fboender

Manual logging of revision change: (in [378]) Various changes that fix PHP Notice errors.

Changed 21 months ago by michiel

(In [381]) set the default timezone for php5.1 and newer. This removes a lot of E_STRICT warnings.

Re #125

Changed 21 months ago by michiel

(In [382]) SILENCE! The default_timezone_get function gave a warning as well, but we really want to use the system timezone setting.

Re #125

Changed 21 months ago by michiel

(In [383]) fboender: strpos(haystack, needle) not strpos(needle, haystack) Make viewing of posts possible again, and while there fix an E_STRICT warning about mktime()

Re #125

Changed 21 months ago by michiel

(In [391]) make stuff work in development mode. Re #125

Changed 21 months ago by michiel

(In [409]) fix a lot of notice errors about unitialized stuff in development mode.

Re #125

Changed 20 months ago by michiel

(In [416]) make the edit-post screen work in dev mode. Re #125

Changed 19 months ago by michiel

(In [461]) fix more php errors in dev mode. Re #125

Changed 19 months ago by michiel

(In [463]) all data manipulating queries now get run with ->exec() instead of ->query() Fix some more errors in php dev mode

Re #119 and #125

Changed 18 months ago by michiel

(In [479]) - added <em> to allowed tags - fixed 2 errors in -dev mode

Re #125

Changed 18 months ago by michiel

(In [481]) fix more errors in -dev mode Re #125

Changed 16 months ago by michiel

  • status changed from assigned to closed
  • resolution set to fixed

I cant find any errors anymore. Closing this ticket. If you find any, reopen and tell us where they are.

Note: See TracTickets for help on using tickets.