i was getting errors when adding/deleting IB styles.. turned out the path was incorrect for the ibstyles.css file

line 872 of imagebrowser.module

original:
$css = $_SERVER['DOCUMENT_ROOT'] . base_path() . file_directory_path() . "/ibstyles.css";

i modified it to this and the problem went away
$css = file_directory_path() . "/ibstyles.css";

Comments

lgierth’s picture

Hi,
I'm getting the same error when selecting an image and proceeding to the insert settings. It only occurs once, after I flushed all caches (I didn't try which cache needs to be flushed).

Typ: PHP
Datum: Mittwoch, Oktober 14, 2009 - 00:23
Benutzer: admin
Ort: http://casanova/imagebrowser/ib_fckeditor/insert/3
Referrer: http://casanova/index.php?q=imagebrowser/ib_fckeditor
Nachricht : fopen(/opt/nginx/html/sites/default/files/ibstyles.css) [function.fopen]: failed to open stream: No such file or directory in /home/lars/workspace/casanova/public/sites/all/modules/imagebrowser/imagebrowser.module in Zeile 872.
Schweregrad: Fehler
Hostadresse: 127.0.7.1

I changed line 872 (line 871 in my version of Image Browser), which fixed the problem. Similar code occurs in line 175 of imagebrowser.module.

Best regards,
Lars

jdelaune’s picture

Status: Active » Fixed

Cheers guys!

Status: Fixed » Closed (fixed)

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