Coder Social home page Coder Social logo

Comments (13)

justinkruit avatar justinkruit commented on June 5, 2024 2

Thanks for this error report. Seems like we need to add a check if the bootstrap.min.css exists in the parent theme. This will be fixed in the upcoming 5.1.2.0 release.

from bootscore.

justinkruit avatar justinkruit commented on June 5, 2024 1

Scss is based on order. For example this wouldn't work:

$colortest: $testtest;
$testtest: #000;

But this does:

$testtest: #000;
$colortest: $testtest;

Because _bscore_variables.scss is intended to override Bootstrap variables it's called before all the Bootstrap code. This results in all the Bootstrap variables not being set yet, so you can't call them yet.

from bootscore.

smileBeda avatar smileBeda commented on June 5, 2024 1

This issue still happens on a vanilla install where you - without anything else first - activate the child theme.

The error now is:

Warning: : filemtime(): stat failed for /.../bootscore/wp-content/themes/bootscore-child-main/css/main.css in /.../bootscore/wp-content/themes/bootscore-child-main/functions.php on line 11

The error goes away if you first activate parent, then child theme.

from bootscore.

Lo1176 avatar Lo1176 commented on June 5, 2024

Something else.
The scss import should not be placed in the last bootcommerce-child/css/scss/bootstrap.min.scss file but in bootcommerce-child/css/scss/_bscore_varies.scss.
I don't know why some of the new scss files were imported but not others.

Example, when I put :
// personal scss
@import "card";
@import "colors";
@import "font";
@import "home";
@import "svg";
in /css/scss/bootstrap.min.scss
=> _card.scss and _home.scss are loaded but not _colors.scss

But if I put everything in css/scss/_bscore_varaibles.scss, => everything loads ... mystery

Another question why for my colours I can't do:
$primary: $red;
but I have to do:
$primary: #dc3545;
This is not very practical if you want to use the variables ...

I've got this error message:

bootScore SCSS Compiler - Caught exception:

Undefined variable $red: wp-content/themes/bootcommerce-child/css/scss/_colors.scss on line 10, at column 1 Call Stack: #0 import wp-content/themes/bootcommerce-child/css/scss/_colors.scss wp-content/themes/bootcommerce-child/css/scss/_bscore_variables.scss on line 6 #1 import wp-content/themes/bootcommerce-child/css/scss/_bscore_variables.scss (unknown file) on line 1

from bootscore.

crftwrk avatar crftwrk commented on June 5, 2024

bootScore SCSS Compiler - Caught exception:

Yes, because $red is not defined. Do this:

$red: #dc3545;
$primary: $red;

from bootscore.

Lo1176 avatar Lo1176 commented on June 5, 2024

Ok, my bad.

As $red was already defined in bootstrap _variables.scss
$red: #dc3545 !default;
I didn't though I had to define it again.
Now I know my mistake.

Thanks πŸ™

from bootscore.

justinkruit avatar justinkruit commented on June 5, 2024

@Lo1176 Could you please try again with the changes made in commit b434af5?
As it originally is a warning only, it shouldn't actually have stopped creating the file in the child theme folder.
If it's not fixed with this commit, we can investigate further.

from bootscore.

Lo1176 avatar Lo1176 commented on June 5, 2024

from bootscore.

crftwrk avatar crftwrk commented on June 5, 2024

Tested and works fine.

from bootscore.

Lo1176 avatar Lo1176 commented on June 5, 2024

Hi,
It's working like a charm. πŸ‘
In both Child or Parent Theme.
Thanks

from bootscore.

justinkruit avatar justinkruit commented on June 5, 2024

Great to hear it's fixed now!

from bootscore.

oitconz avatar oitconz commented on June 5, 2024

This issue still happens on a vanilla install where you - without anything else first - activate the child theme.

The error now is:

Warning: : filemtime(): stat failed for /.../bootscore/wp-content/themes/bootscore-child-main/css/main.css in /.../bootscore/wp-content/themes/bootscore-child-main/functions.php on line 11

The error goes away if you first activate parent, then child theme.

I would like to second this. The fix is to activate parent theme then activate child theme BUT - I had the parent theme in play. Uploaded ( via ftp) the child theme then activated it. This required a second round of deactivate child, reactivate parent, reactivate child.

The issue is the child them does not have a /css folder and no /css/main.css file so the stat fails.

from bootscore.

crftwrk avatar crftwrk commented on June 5, 2024

Before reopen this issue, tested it quickly on localhost. Error appears on first page load, but it's gone when reloading the page.

from bootscore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.