Comments (5)
Hey Anna!
Usually that error occurs only if Xdebug is enabled. Sometimes it occurs for actual infinite recursion bugs, but not always.
Can you try loading the same page with Xdebug disabled, and see if it works?
from cms.
Thank you for your quick reply Brandon!
I'm seeing this error in both production and dev environments and neither have Xdebug enabled according to PHPinfo report.
This was working code that appears to have broken with the latest upgrade that I made to 3.9.13.
from cms.
Assuming you are trying to sort the categories by their titles, try this:
{% for year in years|sort((a, b) => a.title <=> b.title)|reverse %}
from cms.
Hi Brandon,
Thank you! This got the sorting working again.
The issue should be reproduceable with PHP 8.1.25 and Craft 3.9.13.
from cms.
Glad to hear that solved it!
from cms.
Related Issues (20)
- [5.x]: Plugin table not found during site install HOT 3
- [5.x]: Error when accessing `getFieldLayout()` on a new nested entry's `EVENT_DEFINE_RULES` HOT 7
- [5.x]: Missing Database Backup Button HOT 3
- [5.x]: Front end save-user not uploading to asset fields HOT 2
- [5.x]: Link Field Type Allowed Link Types Phone or Email HOT 1
- [5.x]: SearchScore return null - Graphql HOT 1
- [5.x]: Link field with only one link type defined doesn't show up in some scenarios HOT 1
- [5.x]: Saving element in afterSave results in integrity constraint violation exception HOT 5
- [5.x]: OperationAbortedException isn't shown during a codeception run, causing much confusion
- [5.x]: Global set shows Multi-Site dropdown with sites that user is not allowed to see. HOT 2
- [5.x]: Website button in CP no longer redirects to website HOT 2
- [5.x]: 'Entries' field during save populated with other field content which is initially the same field HOT 1
- [5.x]: fields/merge allow outgoing field instructions/label to persist in field layouts HOT 3
- [5.x]: Field of type "Entries" fails when opened in a modal HOT 6
- [5.x]: Craft Native Link Field - the native link field don't have the custom title input field HOT 2
- [4.x]: `.env` variable normalization of float instead of string results in truncation HOT 2
- [5.x]: Able to save entry with a matrix field entry that does not meet validation requirements HOT 2
- [5.x]: `redirectInput` ignored with `actionInput('users/set-password')` HOT 7
- [5.x]: Upgrading from 4 -> 5 applying m240302_212719_solo_preview_targets Exception: 1205 Lock wait timeout exceeded; HOT 9
- [5.x]: Link field errors on changing Allowed Link Types HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.