Blog Sections Open

Fixing “Call to undefined function startCMSSession()” in API Scripts

When an API script cannot find startCMSSession(), the real issue is usually the bootstrap path, not the session function itself.

The donor described a direct API-script failure:

Call to undefined function startCMSSession()

This usually happens when the script assumes a full Evo bootstrap but has only included part of the environment.

What to check

  • whether the correct config and parser files are included
  • whether the script is being executed in the expected context
  • whether the helper function exists in the loaded version of the runtime

In practice, API scripts fail less because of one missing function and more because the bootstrap sequence is incomplete or copied from another version without adjustment.

Newer post

Investigating WSO Web Shell Indicators in a MODX Project

A practical incident-oriented note on spotting suspicious connector activity and WSO web shell indicators in a compromised MODX project.

Older post

Cleaning Up Broken URLs with Extra Slashes Before They Cause 404s

How malformed URLs such as triple-slash paths can slip into Evolution CMS projects and why they should be normalized before they turn into indexing or routing noise.