After updating to PHP 8.2, I discovered two things that are weird. or I am doing wrong:
- Deprecated : Creation of dynamic property xPDOQuery_mysql
- getPage run into Server Error 500
Step to reproduce
Ad 1) See the Test-Site at https://qss.prop.at/
I’ve googled the Message but couldn’t find any helpful information. Hopefully I get good hints here.
Ad 2) When you call this address a Fatal error is reported: https://qss.prop.at/mein-prop/alle-schnäppchen.html
I figured out that this call is causing the error:
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`33`
&tpl=`Inserat-Table-Row`
&includeContent=`1`
&showHidden=`1`
&includeTVs=`1`
&processTVs=`1`
&sortby=`id`
&sortdir=`DESC`
&limit=`20`
&depth=`0`
&tvFilters=`[[!setFilter]]`
&pageLimit=`1000`
&pageNavTpl=`<li class="page-item"><a class="page-link" href="[[+href]]">[[+pageNo]]</a></li>`
&pageActiveTpl=`<li class="page-item active"><a class="page-link" href="[[+href]]">[[+pageNo]]</a></li>`
&pageFirstTpl=`<li class="page-item"><a class="page-link" href="[[+href]]">Erste Seite</a></li>`
&pageLastTpl=`<li class="page-item"><a class="page-link" href="[[+href]]">Letzte Seite</a></li>`
&pagePrevTpl=`<li class="page-item"><a class="page-link" href="[[+href]]"><i class="fas fa-angle-left"></i></a></li>`
&pageNextTpl=`<li class="page-item"><a class="page-link" href="[[+href]]"><i class="fas fa-angle-right"></i></a></li>`
]]
And I found out that in detail the call to getResources is to blame for the error. If I remove getResources in the call, the error does not occur.
However, I don’t know how to get to the bottom of the error.
My Environment:
MODX Revolution 2.8.4-pl (traditional)
Database type: mysql
Database version: 10.5.18-MariaDB-0+deb11u1
getPage: 1.2.5-pl
getResources: 1.7.0-pl
Any help is highly appreciated!