Skip to content
web2projectweb2project
  • Features
  • Docs
  • Blog
  • Download
web2project
  • Features
  • Docs
  • Blog
  • Download

web2project 5.0: A Modern Face on Twenty Years of Data

By Keith Casey (caseydk) December 1, 2026 Development Blog 0 Comments

web2project 5.0 is here, with a new interface, a hardened core, and an upgrade process that finally reports its own failures. It requires PHP 8.3 and targets MySQL 8.

We forked web2project from dotProject in November 2007, and some installs hold data that predates the fork. That history shaped this release more than any single feature did: the code was the easy part, and the data was the hard part.

Three release candidates shipped in three weeks. Below is what changed, how we went about it, and what you need to do before you upgrade.

What’s new at a glance

5.0 changes four things that matter to anyone running or extending web2project.

  • A new interface. Bootstrap 5.3, bundled with the app, replaces three selectable themes. It works on a phone.
  • A hardened core. A form token on every data-changing request, safer sessions, and permission checks on handlers that previously had none.
  • Upgrades that tell the truth. Migrations now stop at the first failed statement and explain what happened.
  • Leaner code. 66 deprecated functions and 37 class aliases are gone, and the code runs clean on PHP 8.

The release candidates each had a different focus:

ReleaseDateFocus
RC37 Nov 2026Permission checks, unguessable feed tokens, language fallback, MySQL 8 upgrade paths
RC223 Oct 2026CSRF tokens, session hardening, SmartSearch injection fixes, RC1 regression fixes
RC116 Oct 2026Bootstrap 5.3 UI, removal of deprecated code, first security and data-integrity sweep

A modern face

Three selectable themes became one: Bootstrap 5.3. It is bundled with the application, so no CDN is needed, and the old per-user style preference and the system-wide style setting are gone.

The new look uses a NiceAdmin-style header and collapsible sidebar, Bootstrap Icons, and new sign-in, sign-up and lost-password pages. Layout tables are replaced with Bootstrap markup in every module, the shared templates and the installer, so pages now work on a phone.

The new interface came with feature fixes and additions:

  • Tasks and projects: a Tasks (All) tab on the project view shows active and inactive tasks together, and the “show inactive tasks” link on the Tasks list works again as a toggle (both based on work by Klaus Buecher). Project budgets show on the project view again.
  • Files: the list is grouped under project headings, hides files you can’t access, and has new Owner and Category filters. The Folder Explorer is back as a Folders tab, and a folder field on the Add/Edit File form lets you move files between folders.
  • Custom fields: they now work on users, and calendar (event) custom fields work again.
  • Calendars: non-working days and holidays are shaded, and marked differently from task days.
  • Printing: PDF output is gone. A print stylesheet makes pages print cleanly from the browser, which is also how you save a PDF.

Every module has a Bootstrap pass, but the rewrite also broke a few things, including file-type icons, the password strength meter and calendar shading. All three were fixed during the release candidates.

Note: From here on out, I use “we” to refer to Claude and I. Yes, I’m anthropomorphizing it.

Security: three releases, three layers

We hardened security in three passes, one per release candidate, each aimed at a different layer.

  • RC1, injection and escaping. We fixed stored and reflected XSS in the selector popup and an SQL injection in the public sign-up duplicate-address lookup. Translation files are now read by a parser instead of eval(), and the translation editor can no longer write outside locales/. Password changes are checked with password_verify().
  • RC2, request integrity. Every data-changing request now needs a form token (CSRF). The session id no longer appears in redirect URLs, it is regenerated at login, and the session cookie is Secure, HttpOnly and SameSite. URL fields only link to http(s), ftp and mailto, which closes a stored XSS. SmartSearch got SQL injection and XSS fixes, and public sign-up has self-hosted bot protection.
  • RC3, authorization. index.php refuses dosql and do_* requests for modules the user can’t access. Moving a task to another project now checks permissions, and the inactive-tasks tab filters by project and task permissions. Task log edit and delete rights come from the stored log, not the posted creator. Calendar feed tokens are random and stop working when the user can no longer log in, and legacy MD5 passwords are compared with hash_equals().

Some of what we found was safeguards that didn’t safeguard anything. The CSRF token function had existed for years, but the code that validated it had an empty body. The sign-up form’s duplicate-username check sent a redirect and then created the account anyway. Finding these was mostly a matter of running the system and watching what it actually did.

The bugs that hid in the data

The hardest bugs in 5.0 lived in the database, not the code.

The upgrade manager is supposed to ignore only “this column already exists” errors. Two of its four checks were missing a strict comparison, so it ignored every error, and the installer and upgrade page reported success no matter what failed. Once errors became visible, a pile of long-hidden problems came out:

  • Migrations 050 and 051 clean up tables that exist only on installs converted from dotProject, so they failed on every native install, unnoticed.
  • Migration 046 was missing a semicolon, which glued two statements together and left pref_user as a VARCHAR(12) on upgraded sites.
  • Migration 060 renamed the wrong column, so recording a forum visit failed on every upgraded site.
  • Migration 056 rebuilds the version history table, but every install has two rows for version 1, so on MyISAM the rebuild failed partway.
  • MySQL 8 turns on ONLY_FULL_GROUP_BY by default. Under it, a crawl hit 156 failing queries, and 16 pages returned a 500, including Companies, Tasks and the project view.

We also made one mistake of our own. During 5.0 we fixed a batch of old migrations by editing them in place instead of adding new ones. Fresh installs got the fixes, but a 4.x site is already past those migrations and never saw them, so RC1 shipped with two different schemas reporting the same version number. RC2 added migration 070 to close the gap. To test it, we installed 4.0.2 with its own installer, seeded rows with zero dates and bad values, and upgraded on both MariaDB and MySQL 8. The result was zero migration errors, existing rows kept, and a schema matching a fresh install.

Fixing the code also doesn’t fix rows that are already written. The LDAP bug that saved users without a contact took one commit to fix, but the users it had already broken needed migration 065 to give them placeholder contacts. RC3 followed the same pattern with migrations 072 and 073, which backfill project links on history entries and task logs.

What this means for you: upgrades now stop at the first failed statement and report the migration, the statement, the MySQL error, the versions involved and the next steps. The failed migration isn’t recorded, so once you’ve fixed the database you can run the upgrade again. And we’ll never edit a migration that has already shipped; we’ll add a new one.

Clearing out the attic

5.0 removes code that had logged deprecation notices for years, plus a few features that no longer earned their keep.

Removed:

  • 66 deprecated functions and 37 deprecated class aliases, and the remaining db_* helpers, replaced by w2p_Database_Connection
  • PDF output for reports, Gantt charts and forums
  • File check-in/check-out, file change e-mail notifications and the file version field
  • The w2p-snowball and wps-redmond themes, and theme selection
  • The contact self-update request feature
  • The ircmaxell/password-compat package and the Scrutinizer config

Cleaned up:

  • PHPDoc across all classes, modules and tests, plus commented-out and unreachable code.
  • Invalid HTML, including duplicate and malformed attributes, unclosed elements, and deprecated tags such as <font> and <center>.
  • PHP 8 breakage: the removed $php_errormsg and mysql_get_client_info() are replaced, mail headers no longer rely on the removed /e regex modifier, and forum BBCode renders on PHP 8.
  • The error log: a logged-in crawl of 257 pages went from 421 warnings and notices to none.
  • Tests: the suite uses the PHPUnit 11 API, and RC3 added a PHPStan level 10 configuration and fixed what it found.

None of this is glamorous, but a quiet error log means real errors stand out again.

How we did it

We did most of this work with Claude Code, and the clearest lesson was that AI is excellent at fixing old code but can’t clean up data it doesn’t know exists. Keith Casey has written up the full story in Vibe Coding a Legacy PHP App: Web2Project Edition; here is the short version.

The scale. Between 4.0.2 and 5.0.0 RC2, 401 commits touched 728 files, and 334 of those commits carry a Co-Authored-By: Claude line. The codebase came out about 900 lines smaller, even with a new UI bundled in.

The cleanup nobody volunteers for. On October 9 alone there were 157 commits, 129 of them PHPDoc fixes. Every open source project has this pile of work, and maintainers put it off.

The crawl as a regression test. web2project sends every page through index.php, so loading every reachable page became the check for each fix. It turned up pages that returned a 500, tabs that crashed on first visit, and filters that did nothing.

Honest reporting. After the XSS fix in the selector popup, a script in a company name still ran on 24 pages, down from 99. Claude reported the 24 instead of declaring victory.

A UI swap in under an hour. Swapping in Bootstrap took 22 commits and 52 minutes in a single session (+4,383 and -5,827 lines). It was cheap because earlier cleanup had left clean seams: every page already emitted the same CSS classes and went through the same tab box and title block code, so Claude mapped those onto Bootstrap instead of rewriting each page. It wasn’t free, though. Icons, the password meter and calendar shading broke, and all three were fixed only because someone clicked around.

Community work. The timezone bug that shifted tasks by the user’s UTC offset had a fix in Klaus Buecher’s fork since 2016. 5.0.0 pulls it in with credit, along with several other of his fixes. No model finds that by reading master.

The lessons we’d pass on, whether you’re modernizing your own app or pointing an agent at one:

  1. Give the agent a running system: real data (or a sanitized copy), the strictest database settings you’ll support, and a way to load every page.
  2. Make the system report its own failures. A swallowed error and an empty CSRF check both looked fine for years.
  3. Ask about existing rows on every fix. If data already written needs a migration, write and test it before the code fix ships, and never edit a migration that has already shipped.
  4. Test the upgrade, not just the install. Fresh installs passed everything; the bugs lived in databases that started on 3.x, 4.x or dotProject.
  5. Write the history down where the next reader will look. Most 5.0.0 commit messages explain why a change was made, including which installs a migration affects.

Upgrading and breaking changes

Try the upgrade on a copy of your database first, especially if your install started on 4.x or as dotProject, then work through this list.

  1. Check requirements. PHP 8.3 is the minimum, and MySQL 8 is the target. Table prefixes are explicitly unsupported.
  2. Upgrade, then run composer install. Carbon moves to 3.x and ircmaxell/password-compat is removed.
  3. Expect stricter upgrades. If a migration fails, the upgrade stops, reports the migration, statement and MySQL error, and doesn’t record the failure. Fix the database and run the upgrade again.
  4. Notice what’s gone. PDF output (print to PDF from the browser instead), the old themes and style preference, file check-in/check-out, and contact self-update.
  5. Know your calendar feeds. Existing feed tokens keep working until regenerated, but a feed stops as soon as its user can no longer log in.

If you maintain an Add On module, read Updating Add On Modules for v5.0. It has replacement tables for every removed function and class, plus grep commands to find what your module uses. The changes most likely to bite:

ChangeWhat breaksWhat to do
Removed functions and class aliasesErrors such as an undefined function or class not foundUse the replacements in the guide’s tables
Form token (__nonce)AJAX posts, JavaScript-built forms and data-changing GET links get redirectedSend the token yourself; POST forms get it automatically
Module access gateHandlers and pages of a module the user can’t access are refusedKeep your own canEdit(), canCreate() and canDelete() checks, and set up permissions in setup.php
Custom fields on store()Fields not given a value keep their existing valuesCall setCustomFields() before store()
Delete hookshook_preDelete() no longer runs when a delete is refusedCall parent::hook_preDelete() and parent::hook_postDelete() in your overrides
Duplicated objectsA copy now runs its own hooks instead of the original’sReview hooks that assumed they ran on the original
Translation filesEntries that aren’t plain quoted strings are skippedUse plain arrays; the string falls back to English otherwise
Renamed exception classw2p_Exception_FileSystem no longer existsUse w2p_Exceptions_FileSystem
Deprecated until v6.0CAppUI::readFiles(), checkFileName() and loadCalendarJS() log noticesMove to the replacements named in the notices
PDF librariesw2p_Output_PDFRenderer and ezpdf are scheduled for removalDon’t build on them

Known issues and what’s next

5.0 is a foundation, not a finish line. These are the items we know are still open.

  • Forum escaping (#533): forum message bodies and titles are output without escaping. The risk is low today because bind() encodes on save.
  • Converted dotProject sites (#535, #536): some module rows are missing, and dotProject column types are kept.
  • PDF libraries (#392): the libraries and fonts are still in lib/, and will go in v6.0.
  • Bigger projects ahead: replacing ADODB, the database layer, which touches every component, and moving date handling from PEAR Date to Carbon.

What’s planned for v6.0. Four proposals are in draft and open for discussion. They are plans, not commitments, and each builds on the 5.0 cleanup.

  • Pluggable files backend (#404): files storage moves behind a Flysystem-based layer, with local disk staying the default and S3-compatible storage arriving first.
  • Single sign-on (#435): people sign in through their organization’s identity provider with OpenID Connect, and accounts are created on first login or provisioned and disabled automatically through SCIM, with SAML and directory sync to follow.
  • REST API (#471): a versioned JSON API with an OpenAPI spec and revocable tokens that always respect each user’s permissions, complete enough that a new front end could be built on it alone.
  • MCP server (#471): likely to follow the API, giving AI agents curated tools for projects and tasks under the same permissions.

v6.0 will also remove the deprecated readFiles(), checkFileName() and loadCalendarJS() that 5.0 keeps with notices.

Thank you, and what to do next

Thank you to Klaus Buecher, whose fork carried fixes for years before we pulled them into core, and to everyone who filed issues and tested the release candidates.

  • Download 5.0.0 from the GitHub releases page, the only official distribution site.
  • You can support the project by buying the web2project manual and learn more from the docs.
  • Upgrade a copy of your database first, and tell us what breaks.
  • Ask questions in the support forums.
← Previous Postweb2project 5.0: a new interface and permissions enforced everywhere

Related Articles

web2project 5.0 Gantt chart for a home-building project, showing every task, its dependencies and today's date across the full schedule
Development Blog

web2project 5.0: a new interface and permissions enforced everywhere

November 29, 2026
Development Blog

web2project 4.0 – for PHP and MySQL

January 6, 2025
Development Blog

Naming Conventions are Key

July 8, 2013

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent posts

  • web2project 5.0: A Modern Face on Twenty Years of Data
  • web2project 5.0: a new interface and permissions enforced everywhere
  • web2project 4.0 – for PHP and MySQL
  • Naming Conventions are Key
  • Why would we re-license web2project?

Common Topics

access control Add On Module bsd Czech Development Documentation dotProject education enterprise Gantt charts goals gpl howto iCalendar LDAP legal license licensing meeting meteors microsoft php php|tek planning polish project management release notes Releases risk management Russian Security sql server Support system admin team news timezones Token Tasks tools Unit Testing Updates upgrades version checking vision web2project xhtml
Copyright © 2026 web2project.
  • Features
  • Docs
  • User Manual
  • Blog
  • GitHub
  • Download
Search