Hello! I've installed omega because of it's easy customizable layout (regions) and that's exactly the option that is not working. When I click "save configuration & layout settings" I get the following errors:

Warning: file_get_contents(/www/vevpa.com.ar/htdocs/drupal-7.34/drupal-7.34/sites/all/themes/omega/omega_core/style/scss/vars.scss): failed to open stream: No such file or directory in SassFile::get_file_contents() (line 62 of /www/vevpa.com.ar/htdocs/drupal-7.34/sites/all/themes/omega/omega_core/lib/Drupal/omega/phpsass/SassFile.php).

Warning: file_get_contents(/www/vevpa.com.ar/htdocs/drupal-7.34/drupal-7.34/sites/all/themes/omega/omega_core/style/scss/grids/omega.scss): failed to open stream: No such file or directory in SassFile::get_file_contents() (line 62 of /www/vevpa.com.ar/htdocs/drupal-7.34/sites/all/themes/omega/omega_core/lib/Drupal/omega/phpsass/SassFile.php).

Notice: Array to string conversion in SassException->__construct() (line 30 of /www/vevpa.com.ar/htdocs/drupal-7.34/sites/all/themes/omega/omega_core/lib/Drupal/omega/phpsass/SassException.php).

SassContextException: Undefined Mixin: row: Array::7 Source: .header-layout in SassContext->getMixin() (line 101 of /www/vevpa.com.ar/htdocs/drupal-7.34/sites/all/themes/omega/omega_core/lib/Drupal/omega/phpsass/tree/SassContext.php).

On the first 2 error the folder path is "duplicated" (htdocs/drupal-7.34/drupal-7.34). I guess something is not working properly here. Thank you in advance

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

himerus’s picture

Version: 7.x-5.0-alpha1 » 7.x-5.x-dev
Component: User interface » Code
Assigned: Unassigned » himerus
Category: Support request » Bug report

Oddly, I see a similar behavior in 7.38, although my 7.32 installation works as expected. Will investigate.

himerus’s picture

Found the issue and difference between the installs where I'm not seeing and and the ones I am.

Boils down to the line: $vars = realpath(".") . $base_path . drupal_get_path('theme', 'omega') . '/style/scss/vars.scss';

One of my installs is on the root level of a local subdomain, and it's fine, the other is at localhost/drupal-7.38 and that's where it fails and gets the wrong path.

Patch pending.

himerus’s picture

Status: Active » Fixed
FileSize
1.05 KB

Fixed by updating method used to pull path to vars.scss and omega.scss

  • himerus committed 148b677 on 7.x-5.x
    Fix for #2451267 and issues with base_path
    

Status: Fixed » Closed (fixed)

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

Marioro’s picture

solved the above problem, I can´t use and save configuration/layout, OMEGA 5 ALPHA & DEV after throwing me the following issues:

The specified file temporary://filesoLZfG could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
WTF001: SCSS save error... : function _omega_save_layout_files()
The specified file temporary://fileFIWZuG could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
WTF002: CSS save error... : function _omega_save_layout_files()
The specified file temporary://fileG280KG could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
WTF003: JSON save error... : function _omega_save_layout_files()

MY TMP FOLDER IS PERFECT!

Marioro’s picture

new error save layout

The specified file temporary://file5GvXSh could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
WTF001: error de guardado SCSS... : función _omega_save_layout_files()
The specified file temporary://fileGbR8cy could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
WTF002: error de guardado CSS... : función _omega_save_layout_files()
The specified file temporary://filexYLEyO could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
WTF003: error de guardado JSON... : función _omega_save_layout_files()

Melissamcewen’s picture

Status: Closed (fixed) » Needs work

I was having the same issue, turns out the $layoutscss variable is wrong in _omega_save_layout_files:
/var/www/html/themetest/themetest/sites/all/themes/omega_test/style/scss/layout/omega_test.scss

themetest is the name of the subdirectory my theme is in

Melissamcewen’s picture

Here is a patch

Melissamcewen’s picture

Status: Needs work » Needs review