If you get black and huge buttons, and neither CSS nor JS files loaded, try to fix version Error: by Add 'lines' => 3, #line: 327, file: rrssb.module and Clear ALL CACHE.

/**
 * Implements hook_libraries_info().
 */
function rrssb_libraries_info() {
  $libraries['rrssb'] = array(
    'name' => 'Ridiculously Responsive Social Share Buttons',
    'vendor url' => 'http://kurtnoble.com/labs/rrssb/',
    'download url' => 'https://github.com/kni-labs/rrssb/archive/1.8.1.zip',
    'version arguments' => array(
      'file' => 'package.json',
      'pattern' => '/"version": "([\d\.]+)"/',
        'lines' => 3,
    ),
    'files' => array(
      'js' => array(
        'js/rrssb.min.js',
      ),
      'css' => array(
        'css/rrssb.css',
      ),
    ),
  );

  return $libraries;
}

Comments

trong.nguyen.tcec created an issue. See original summary.

trong.nguyen.tcec’s picture

Issue summary: View changes
adamps’s picture

Priority: Critical » Normal
Status: Active » Closed (works as designed)
Issue tags: -library missing

OK I guess from your issue title that you are using library version 1.10.0. The supported library version is currently 1.8.1, so that's why you are seeing the problem - it's not a bug. If you download the correct version, the problem should go away.

If there is a particular reason why you want to use the newer version then please re-open the issue as a feature request, explaining why it would be useful. If you can supply a patch for the code change required that would make it easier for your request to be met. It would be more than just the line you have so far - notice that the version number is part of the download url and it is in some other places too. Thanks.

adamps’s picture

Title: Library not loaded. Lib version: 1.10.0 » Support newer library 1.10+
Category: Bug report » Task
Status: Closed (works as designed) » Needs work

In fact we might as well have a task for the newer library version.

adamps’s picture

On investigation, the "lines=3" change does not seem necessary to work with the new library version.

lrodarte’s picture

I am also getting huge black, stacked buttons, CSS not loading, and I am using the correct 1.8.1 library (used the link provided on the module page).

  • AdamPS committed 513bfb1 on 7.x-1.x
    Issue #2712155 by AdamPS: Support newer library 1.10+
    
adamps’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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