Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I believe there is something wrong with this function:
function _platon_inject_css_override() {
if ($file = _platon_get_css_override_file()) {
$realpath = drupal_realpath($file->uri);
$path = str_replace(realpath($_SERVER['DOCUMENT_ROOT']).'/','',$realpath);
drupal_add_css($path, array('group' => CSS_THEME));
}
}
It gives me the following URL on a patheon server:
@import url("/srv/bindings/8e90475429394ff6af2fb82a7a35a008/files/de47a7da46f6c91c071cbecb62bb4ff65800163a0fc49_platon_override.css?of0drn");
Any ideas?
Comments
Comment #2
Christinelle CreditAttribution: Christinelle as a volunteer commentedHi,
got the same issue, the path to css override file is wrong.
Did you find a solution ?
Regards.
Comment #3
summerg CreditAttribution: summerg commentedI changed line 877 from:
drupal_add_css($path, array('group' => CSS_THEME));
to
drupal_add_css($file->uri, array('group' => CSS_THEME));
to solve it. I suspect they have moved onto D8, but maybe this will help someone.
Comment #4
apadernoWhy would a path like /srv/bindings/8e90475429394ff6af2fb82a7a35a008/files/de47a7da46f6c91c071cbecb62bb4ff65800163a0fc49_platon_override.css?of0drn be wrong? Does the /srv/bindings/8e90475429394ff6af2fb82a7a35a008/files/de47a7da46f6c91c071cbecb62bb4ff65800163a0fc49_platon_override.css exist?