Skip to content

fix(session): Prevent PDO serialization fatal (1.x) - #19

Open
Ibochkarev wants to merge 1 commit into
GulomovCreative:masterfrom
Ibochkarev:fix/pdo-session-serialization-1x
Open

fix(session): Prevent PDO serialization fatal (1.x)#19
Ibochkarev wants to merge 1 commit into
GulomovCreative:masterfrom
Ibochkarev:fix/pdo-session-serialization-1x

Conversation

@Ibochkarev

Copy link
Copy Markdown
Collaborator

Port the #17 session/PDO fix to the MODX 2 / 1.x line.

process() no longer assigns $scriptProperties['FetchIt'] = $this, and action properties are saved through saveActionProperties() which drops objects/resources before touching $_SESSION or the cache.

Breaking for custom snippets: use $modx->getService('fetchit', 'FetchIt', ...) instead of the injected $FetchIt property.

Refs #17

@Ibochkarev
Ibochkarev marked this pull request as ready for review July 21, 2026 16:46
…e#17)

Убираем инъекцию $this в process и очищаем object/resource перед записью в storeActionProperties, без регресса GulomovCreative#13GulomovCreative#15.
@GulomovCreative
GulomovCreative force-pushed the fix/pdo-session-serialization-1x branch from bfe84ef to e68500b Compare July 27, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants