Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

Site\Model\WeblinkModel::prepareTable() calls (int) str_increment($table->version);.

  • str_increment() was added in PHP 8.3, so the call is a fatal "Call to undefined function" error on PHP 8.1 and 8.2, which Joomla 5 supports.
  • On PHP 8.3+ the return value is discarded, so the version number is not incremented.

It is replaced with $table->version++;, like in the administrator model.

Testing Instructions

Code review. The site WeblinkModel is used for the single weblink view; frontend saving goes through FormModel (which extends the administrator model), so the issue is latent at the moment.

Expected result

No call to str_increment(), the version is incremented.

Actual result

Fatal error on PHP < 8.3 when prepareTable() of the site model is called.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment