Kunena 7.0.2 Released
The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Solved KunenaScssPhp\ScssPhp\Parser:
- Chico Gois
-
Topic Author
- Offline
- New Member
-
- Let´s go de pinóte again...
Less
More
2 years 4 months ago - 2 years 4 months ago #229886
by Chico Gois
Atenciosamente,
Chico Gois
KunenaScssPhp\ScssPhp\Parser: was created by Chico Gois
Joomla 5.0
PHP 8.1
Kunena version:6.2.1
I have this error.
Thanks
PHP 8.1
Kunena version:6.2.1
I have this error.
Thanks
Code:
KunenaScssPhp\ScssPhp\Parser::registerPushedBlock(): Argument #1 ($b) must be of type KunenaScssPhp\ScssPhp\Block, ScssPhp\ScssPhp\Block\DirectiveBlock given, called in /home/u141892142/domains/mysite/public_html/libraries/kunena/External/scssphp/scssphp/src/Parser.php on line 879
Atenciosamente,
Chico Gois
Last edit: 2 years 4 months ago by Chico Gois.
The following user(s) said Thank You: TomasFC
Please Log in or Create an account to join the conversation.
2 years 4 months ago - 2 years 4 months ago #229898
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic KunenaScssPhp\ScssPhp\Parser:
Hello,
I have looked to it but i don't have this issue it don't goes at the line that he said
Do-you have set a custom.scss file ?
I have looked to it but i don't have this issue it don't goes at the line that he said
Do-you have set a custom.scss file ?
I don't provide support by PM, because this can be useful for someone else.
Last edit: 2 years 4 months ago by xillibit.
Please Log in or Create an account to join the conversation.
2 years 4 months ago #229903
by TomasFC
Replied by TomasFC on topic KunenaScssPhp\ScssPhp\Parser:
Hello,
I don't want to hijack this thread, but I had this same error when upgrading from 6.2.0 to 6.2.1 while on Joomla 4.4 (without upgrading Joomla).
The same parser error giving a 500 error.
- I do have a custom.scss file.
- I also have a Gantry template.
What I noticed is that the @mixin I had in Kunena's custom.scss caused the issue when upgrading to K 6.2.1, without any changes to the file. I removed that @mixin portion and placed it in the Gantry template's custom.scss file for the entire site.
That solved the issue for me, as Gantry did parse the scss file properly, and while the mixin was just for the forum, it doesn't affect the rest of the site.
There could be a bug in the parser.
Hoping this helps,
Tomás
I don't want to hijack this thread, but I had this same error when upgrading from 6.2.0 to 6.2.1 while on Joomla 4.4 (without upgrading Joomla).
The same parser error giving a 500 error.
- I do have a custom.scss file.
- I also have a Gantry template.
What I noticed is that the @mixin I had in Kunena's custom.scss caused the issue when upgrading to K 6.2.1, without any changes to the file. I removed that @mixin portion and placed it in the Gantry template's custom.scss file for the entire site.
That solved the issue for me, as Gantry did parse the scss file properly, and while the mixin was just for the forum, it doesn't affect the rest of the site.
There could be a bug in the parser.
Hoping this helps,
Tomás
Please Log in or Create an account to join the conversation.
2 years 4 months ago #229904
by Leen
With kind regards
Leen
Replied by Leen on topic KunenaScssPhp\ScssPhp\Parser:
If I search locally for mixin on my test site
I mainly come across it a lot in akeeba backup and gantry
so my comment/question is, are all extensions all Up to Date?
I mainly come across it a lot in akeeba backup and gantry
so my comment/question is, are all extensions all Up to Date?
With kind regards
Leen
Please Log in or Create an account to join the conversation.
2 years 4 months ago #229906
by TomasFC
Replied by TomasFC on topic KunenaScssPhp\ScssPhp\Parser:
In my case, yes. All extensions are up to date and compatible with J4.4
Within the custom.scss file I added quite a bit of code. Amongst all that code was some @include and @mixin
I removed the portions of both to see if either was breaking when parsing, and the @include instructions were fine, but not the @mixin ...
So I removed all of that @mixin part of the code I had and the forum was back working. In order to have that back again (mainly color coding categories) I inserted that same code in the main template's custom scss file and it worked fine. Meaning all the color coded categories displayed how I wanted.
So from that I deduce that
Tomás
Within the custom.scss file I added quite a bit of code. Amongst all that code was some @include and @mixin
I removed the portions of both to see if either was breaking when parsing, and the @include instructions were fine, but not the @mixin ...
So I removed all of that @mixin part of the code I had and the forum was back working. In order to have that back again (mainly color coding categories) I inserted that same code in the main template's custom scss file and it worked fine. Meaning all the color coded categories displayed how I wanted.
So from that I deduce that
- The code was written properly and
- Probably, Kunena's parsing of the @mixin functionality has a bug, but it could be something other within my @mixin instructions, though I doubt it as it was quite straightforward.
Tomás
Please Log in or Create an account to join the conversation.
2 years 4 months ago #229909
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic KunenaScssPhp\ScssPhp\Parser:
Hello,
Is-it possible to send to me your file custom.scss ? Like i can try to reproduce it
Is-it possible to send to me your file custom.scss ? Like i can try to reproduce it
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
Time to create page: 0.724 seconds