Closed (works as designed)
Project:
Google Code Prettify
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
5 Mar 2013 at 09:16 UTC
Updated:
14 May 2021 at 13:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
smartinm commentedPlease test this patch and if it works I will commit it.
Comment #2
Anonymous (not verified) commentedThanks for the help! Unfortunately that patch ended uploading the prettify CSS one level higher than where it was at. This could be an issue with the Omega theme framework (maybe by design), because I tried various drupal_add_css() combinations in template.php and still could not get sunburst to load last.
Comment #3
smartinm commentedWhat Omega subtheme are you using?
I installed omega 7.x-3.1 theme in my demo site and Prettify module works well:
http://demo.smartinm.com/drupal/prettify-module?theme=omega
The sunburst.css is added after the Omega's alpha reset css.
Comment #4
Anonymous (not verified) commentedI have a custom omega 7.x-3.1 sub theme created with omega tools. Will test in a demo site and report back.
Comment #5
Anonymous (not verified) commentedApparently there is something wrong with my site because testing in a sandbox with Bartik shows the module works fine out of the box. On my site, prettify doesn't even work with Bartik. I noticed the prettyprinted class doesn't get appended on my site, so it looks like i'll have to start disabling things to see whats going on.
Comment #6
Anonymous (not verified) commentedAppears prettify.js is not being loaded properly on my site. Using chromes web tools to inspect and looks like the script is showing up empty. Requests for the file are being canceled?
Comment #7
Anonymous (not verified) commentedOkay, well seems this might be a server issue. On localhost I had no issues with a demo site. I am seeing the same problem (prettify not....prettifying). Chrome tells me requests for the JS and CSS files were cancelled.
Not sure where to take the issue now. Loading prettify manually through my theme works fine. It's just how it's loaded via the module that is wonky. Something about my server configuration possibly conflicting with how the module works. Server is nginx.
Comment #8
Anonymous (not verified) commentedFixed! A bunch of digging led me to find out requests for the JS and CSS files were generating 403 forbidden errors. Changed permissions on the files from 640 to 644 and everything works now!
Comment #9
smartinm commentedI'm glad you found a solution that works for you ;)