Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] WSOD on Media page #32

Open
rosiel opened this issue Jul 27, 2022 · 0 comments
Open

[BUG] WSOD on Media page #32

rosiel opened this issue Jul 27, 2022 · 0 comments

Comments

@rosiel
Copy link

rosiel commented Jul 27, 2022

I installed Embargoes, and then found that I could not access the Media page at admin/content/media. It turns out to happen because I had a media type that didn't have any entity reference fields (i.e. wasn't set up for Islandora).

The error in Drupal's logs was:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax     
error or access violation: 1064 You have an error in your SQL syntax;      
check the manual that corresponds to your MySQL server version for the     
right syntax to use near '' at line 4: SELECT "base_table"."vid" AS        
"vid", "base_table"."nid" AS "nid"                                         
 FROM                                                                       
"node" "base_table"                                                        
WHERE; Array 

With XDebug, I placed the exploding query at https://github.com/discoverygarden/embargoes/blob/1.x/src/EmbargoesEmbargoesService.php#L277, i.e. trying to do a node query with an empty orConditionGroup.

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

No branches or pull requests

1 participant