canton7 / fuelphp-casset

Better asset management library for fuelphp (with minification!)
MIT License
103 stars 29 forks source link

ErrorException [ Notice ]: Uninitialized string offset: 0 #29

Closed kusmierz closed 12 years ago

kusmierz commented 12 years ago

I've ErrorException on

Casset::css('screen.css');

in PKGPATH/casset/classes/casset/cssurirewriter.php @ line 261

probably you have to change

        if ('/' !== $uri[0]               // root-relative

to

        if (!empty($uri[0]) && '/' !== $uri[0]                // root-relative
canton7 commented 12 years ago

That file's actually third-party code (as seen by the notice at the top), which makes me think either the issue needs to be raised upstream, or I'm passing in an input incorrectly... Either way I'm loathe to change this code directly.

I'll be able to have a proper look at this when I'm back home on Monday or so.

canton7 commented 12 years ago

Can you give me more details about your situation? What exactly did you do to prompt this error? Is it still an issue?

kusmierz commented 12 years ago

I don't know, I don't use Casset anymore :(