You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed this plugin and activated restriction on one section with Restrict All setting selected.
When trying to load that page in the control panel there is a server error:
"SQLSTATE[42703]: Undefined column: 7 ERROR: column relations.sourceid does not exist\nLINE 3: LEFT JOIN "elements" ON elements.id = relations.sourceId\n ^\nHINT: Perhaps you meant to reference the column "relations.sourceId".\nThe SQL being executed was: SELECT EXISTS(SELECT "relations"."id"\nFROM "relations"\nLEFT JOIN "elements" ON elements.id = relations.sourceId\nWHERE "targetId"=42446)"
Trace puts the error on Line 129 of Restrict.php which is the query in side isRelated function.
I changed the leftJoin comparison string to this: ->leftJoin('{{%elements}}', 'elements.id = "relations"."sourceId"')
which resolved the issue.
CraftCMS: 4.8.11
Postgres: 15
The text was updated successfully, but these errors were encountered:
I installed this plugin and activated restriction on one section with Restrict All setting selected.
When trying to load that page in the control panel there is a server error:
Trace puts the error on Line 129 of Restrict.php which is the query in side isRelated function.
I changed the leftJoin comparison string to this:
->leftJoin('{{%elements}}', 'elements.id = "relations"."sourceId"')
which resolved the issue.
CraftCMS: 4.8.11
Postgres: 15
The text was updated successfully, but these errors were encountered: