After installation of styles there is a new Dropdown "Design" in the nrembrowser Popup of my Wysiwyg-Editor (CK Editor). But the Dropdown is empty (see attached screenshot). I would like to choose imagecache presets. How could this be done?

CommentFileSizeAuthor
#2 nrembrowser-styles-error.png58.01 KBStuartDH
styles.png46.72 KBmdroste

Comments

grndlvl’s picture

Project: Styles » Node Reference/Embed Media Browser (nrembrowser)
Version: 6.x-2.0-alpha5 » 6.x-1.x-dev

I am pretty sure this is more related to nrembrowser than styles. Although, I could be wrong.

StuartDH’s picture

Title: No styles and nrembrowser.module on line 240 error » How does it work with nrembrowser?
Category: bug » support
StatusFileSize
new58.01 KB

Great module with lots of potential to be a 'must have' for future drupal installs

I'm getting the same issue, and above the Style box I'm also getting an error with:

warning: Invalid argument supplied for foreach() in /home/energyso/public_html/sites/all/modules/nrembrowser/nrembrowser.module on line 240.

I'm using :

Drupal 6.1.9
Node Reference/Embed Media Browser (nrembrowser) 6.x-1.x-dev - 14 Oct 2010
Content 6.x-3.x-dev
jQuery UI 6.x-1.4
jQuery Update 6.x-1.1
Views 6.x-3.x-dev
Vertical Tabs 6.x-1.0-rc1
Styles 6.x-2.0-alpha5
Wysiwyg 6.x-2.1
CKEditor 3.4.1
ImageCache 6.x-2.x-dev
ImageField 6.x-3.7
IE 8 and Firefox 3.6.10

and I've created a simple 'Photo' content type with one 'Image' Imagfield that I've configured in Node Reference / Embed Media Browser to be allowed in WYSIWYG and select browser thumbnail from Image (fieldfield field)

StuartDH’s picture

Title: How does it work with nrembrowser? » No styles and nrembrowser.module on line 240 error
Category: support » bug

I cleared my cache data and everything seems to be working OK now???

aaron’s picture

Title: How does it work with nrembrowser? » No styles and nrembrowser.module on line 240 error
Component: Documentation » Code
Category: support » bug
Status: Active » Fixed

hmm... might be that nrembrowser needs to clear the styles cache if styles is installed before nrembrowser, rather than in the same page load...

i've done that now. please reopen if anyone still gets this behavior.

Status: Fixed » Closed (fixed)

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

john.bloom’s picture

Status: Closed (fixed) » Active

This problem also seems to occur if the site's cache is cleared ('Clear cached data' in admin/settings/performance). Please tell me if there's anything I can do to help track this down and/or debug it.

harcher’s picture

Im also getting this after truncating all the cache_ tables because i was moving website to other server and needed to make sql dump smaller. Now, the dropdown box has no styles just says none! How to fix this please? Why is this occuring after cache is being cleared?

tatyana’s picture

Looks like in the latest dev version file includes/styles/nrembrowser.styles.inc with implementation of hook_styles_default_styles is not included anywhere, so all style selectors are empty.
At least including it in nrembrowser_styles_register() helped with this issue.