I am trying to use Breakpoints module with Responsive images and styles (resp_img) and get the following error on "add Responsive Style" and "image Styles" pages. I am creating custom breakpoints and then puttting them into groups. I am using tutorial at: http://drupal.org/node/1867848.

Notice: Use of undefined constant RESP_IMG_STYLE_PREFIX - assumed 'RESP_IMG_STYLE_PREFIX' in _breakpoints_filter_styles() (line 821 of /var/www/vhosts/ecoms.org.uk/english/sites/all/modules/contrib/breakpoints/breakpoints.module).

Also The breakpoints group is not appearing on admin/config/media/resp_img.

Am I missing something.

Comments

jelle_s’s picture

Status: Active » Fixed

Fixed in the latest dev version.

aanjaneyam’s picture

Status: Fixed » Active

@Jelle_S Thanks for your response and the fix. However, as stated on the first post the custom breakpoints groups are not appearing on admin/config/media/resp_img. So how should we choose the custom breakpoint groups created (as per http://drupal.org/node/1867848 at no. 5 of "Configure responsive images". Hence I am also not able to associate the breakpoint group to content type on manage display page. Does it only support breakpoints created via theme's info file? Or this post should actually be posted on the resp_img module's issue queue.

jelle_s’s picture

Project: Breakpoints » Responsive images and styles
Version: 7.x-1.0 » 7.x-2.x-dev

@amsri: can you get the latest dev version from git (or wait 12h for drupal.org to sync with git) and test again?

and I am indeed moving this to the resp_img issue queue since that path is defined in that module.
If the problem also occurs on the latest dev can you post a screen?
I assume you're using resp_img 7.x-2.x?

jelle_s’s picture

StatusFileSize
new39.98 KB

PS: Here's my view of that page (with 1 group called Bartik):

Selection_024.png

jelle_s’s picture

StatusFileSize
new73.24 KB

Oh, and the mapping form:

mapping_form.jpg

jelle_s’s picture

Title: Error on add responsive style page » Custom breakpoints groups are not appearing on admin/config/media/resp_img
aanjaneyam’s picture

StatusFileSize
new177.78 KB
new261.14 KB

@Jelle_S thanks for your screenshots. Here is my screenshot of the pages admin/config/media/resp_img and admin/config/media/breakpoints. Custom groups appear in admin/config/media/breakpoints but not in admin/config/media/resp_img.

attiks’s picture

Did you try clearing your cache?
Are you using the latest dev version of breakpoints?

aanjaneyam’s picture

Yes I have cleared the cache several times and am running latest dev version of Breakpoints (as the warning notice mentioned in 1st post above has disappeared after upgrading to latest dev of breakpoints)

attiks’s picture

Assigned: Unassigned » jelle_s
jelle_s’s picture

Status: Active » Fixed

Looking at your screenshot again, and I just realized you're using the 7.x-1.x, not 2.x.
1.x works a bit different and does not show the breakpoint groups on that page. In fact, 1.x doesn't even have the Breakpoint module as a dependency. If you'd want to use resp_img 2.x you can, but the upgrade path isn't thoroughly tested.

Upgrade path (as described on the project page):

Upgrade from 1.x to 2.x

There now is an upgrade path from 1.x to 2.x.

To upgrade, follow these steps:

  1. Disable Responsible images and styles (do not uninstall) (you need to do this because we don't use the custom cache class in 2.x anymore. Related: #1706596: Invalid callback)
  2. Download Breakpoints, CTools and Field formatter settings.
  3. Enable Responsible images and styles again (along with its requirements Breakpoints, CTools and Field formatter settings).
  4. Go to /update.php and follow the steps.
  5. And you're done!
aanjaneyam’s picture

@Jelle_S thanks for your kind and detailed response. I have upgraded as per direction to latest 2.x-dev version of resp_img and I can now see groups list and mapping form per group. I will now test if every thing works responsively as expected. Thanks again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.