responsive image broken?

I just installed D8 via git clone and tried to create a responsive image mapping without success. Steps were:
1) Enable Responsive_Image module.
2) Got to 'admin/configuration/media/responsive image mappings' and click on '+Add Responsive Image Mapping'
3) Enter some name in the 'Label" field
4) Click on 'Breakpoint Group" drop down

The drop down list is empty. At a minimum it should have the breakpoint group installed with the Bartik theme, as well as the one provided by the Toolbar module. I confirmed that all of Bartik's and Toolbar's breakpoint configuration files were in the 'config' and 'config snapshot' tables in drupal's database. This was working a month or so ago.

Resolution

This turns out to be an uncaught SQLite failure. The problem is fixed by #2318191: [meta] Database tests fail on SQLite, which is waiting re-roll.

CommentFileSizeAuthor
#16 rspimg.png44.8 KBdcrocks
#2 reimg.jpg65.9 KBdcrocks
#1 2267563.jpg125.5 KBsidharthap

Comments

sidharthap’s picture

StatusFileSize
new125.5 KB

I checked this morning with a fresh D8 and did not encounter the issue. Here is the screen i am getting.

dcrocks’s picture

StatusFileSize
new65.9 KB

Tried again. Did git clone of D8, ran install, enabled responsive image module, got same results. Here is my image.
I am running OS X 10.6, php 5.4.24, SQlite.

dcrocks’s picture

I did find the behavior changed between alpha 10 and alpha 11. It worked in alpha 10, but not in 11.

dcrocks’s picture

#1 Can you tell me what your environment was and how you built your copy of D8?

sidharthap’s picture

Environment is PHP 5.4.19, centos-release-5-5, Mysql Server version: 5.0.77. I did a clone of D8 on my Virtual Box.

dcrocks’s picture

Thanx for the info. I'm guessing you installed in the web server's document root. Still can't find the cause after trying several install variations on my mac. I'll keep plugging I guess.

dcrocks’s picture

Can't find why function breakpoint_group_select_options() always returns NULL. The config entries are in the 'config table in the database and are enabled. No error notifications anywhere.

attiks’s picture

Status: Active » Closed (won't fix)
dcrocks’s picture

Waiting on that. What about picture.mapping .yml files? Will that design be changed also?

attiks’s picture

Status: Closed (won't fix) » Active

The dropdown will be filled differently since breakpoints will be directly read from the yml files (they are no longer config entities), breakpoint_group_select_options is a complete different implementation.

Marking as active again

dcrocks’s picture

This is better after #2271529: Move breakpoint settings to theme and module *.breakpoints.yml files at root level but I still can't see any mapping config files I create.

rainbowarray’s picture

I seem to remember somebody mentioning this may have something to do with installing in a virtual root or something like that?

dcrocks’s picture

2 things I do that, though not uncommon, are different from a standard install. One, I always use SQlite, and two, I work on OS X and install drupal in a VirtualDocumentRoot(/Users/~username/Sites/drupal).

attiks’s picture

Is all the rest working?

dcrocks’s picture

The UI for creating a mapping works fine. The dropdown works now, whereas it didn't before. It tells me the mapping was created and saved. And I can see it in the database. But the UI won't list the mappings I've created and they don't show up on the dropdowns when you are editing a image field to make it a responsive image field. I'm not sure I understand what the problem is here, and it may have nothing to do with working in a VirtualDocumentRoot, but that is a difference between my setup and others who have tried to reproduce the problem. I have other problems that seem to be related to working in a VirtualDocumentRoot, but I feel this is actually some other problem.

dcrocks’s picture

StatusFileSize
new44.8 KB

There is a line of text("There is no Responsive image mapping yet") on the admin/configuration/media/responsive image page that I can't find anywhere in drupal except in one of the test files("ResponsiveImageAdminUITest.php"). Can someone tell me how it got there?

dcrocks’s picture

I broke down and installed mysql on my mac and built a copy of D8 with that. On that install everything appears to work fine. So this might be a SQLite issue.

dcrocks’s picture

#2318191: [meta] Database tests fail on SQLite appears to fix my problem, though it isn't finished yet.

rainbowarray’s picture

Glad you found the source of the trouble!

attiks’s picture

Status: Active » Closed (works as designed)
dcrocks’s picture

Status: Closed (works as designed) » Active

I don't think this should be closed until #2318191: [meta] Database tests fail on SQLite goes in.

dcrocks’s picture

Title: responsive image broken? » Uncaught SQLite failure breaks responsive images
Issue summary: View changes
Status: Active » Postponed
Related issues: +#2318191: [meta] Database tests fail on SQLite

Updated summary, issue title, and status

dcrocks’s picture

Status: Postponed » Closed (fixed)