MODX 3.0.1 Error Log -> Depreciations Log?

Hi, maybe someone can explain or help?

What should I expect from these messages? Will these be fixed or do I have to do something?
Or, how can I determine if this is coming from the core (MODX) or any snippet?

This message appears on my new installation MODX 3.0.1-pl with this Extras:

  • AjaxUpload 1.6.3-pl
  • CKEditor 1.4.1-pl
  • FormIt 5.0.1-pl
  • pdoTools 3.0.1-pl
  • pThumb 2.3.3-pl
  • Resizer 1.0.2-beta
  • UpgradeMODX 2.3.3-pl

MODX 3.0.1-pl installation on Linux Server

  • PHP: 8.1.11
  • mySQL: 8.0.30

Thanks Jo

Those are new deprecations as of 3.0. They mean that something like:

$modx->newObject('modChunk');

should be updated to:

$modx->newObject(MODX\Revolution\modChunk::class);

Many extras that are cross-compatible with 2.x and 3.x will still need to use that first method, which will continue to work for the forseeable future.

I believe the plan is for that to keep working until at least v3.3, so certainly no rush.

Most uses of that should be in extras as we do try to fix those in core. There could certainly be some left, though.

2 Likes

Hi Mark, thanks for your reply! I will keep an eye on that :wink:

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.