I had some trouble getting geshi filter language styles working, but only on the live server. This was because the location of the language CSS was being translated incorrectly and was creating a 404.

The file location of the geshifilter-languages.css should have been translated from

"public://geshi/geshifilter-languages.css"

to something like this

"http://www.example.com/sites/default/files/geshi/geshifilter-languages.css".

For some reason I couldn't figure out, this was being translated to the following on the live server.

"http://www.example.com/module/geshifilter/s/default/files/geshi/geshifil..."

I fix this I changed the drupal_realpath() and substr() combination to a single call to file_create_url(), which correctly generates the css file location in both my local dev and the live server.

Thanks,
Phil

Comments

philipnorton42 created an issue. See original summary.

philipnorton42’s picture

StatusFileSize
new686 bytes
yukare’s picture

Status: Active » Needs review

Strange error. This is a better aproach, let me run the tests, and if it do not break anything somewhere else, i will commit it.

  • yukare committed c2ea6c1 on 8.x-1.x authored by philipnorton42
    Issue #2974120 by philipnorton42: Incorrect stream wapper translation...
yukare’s picture

Status: Needs review » Fixed

Commited to git, thanks!

Status: Fixed » Closed (fixed)

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