Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Deprecated alert on apple arm #884

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gaspar-d
Copy link

@gaspar-d gaspar-d commented Nov 1, 2024

Description

A deprecated alert is prompting when Hugo server is called.
The error points to

.Site.IsMultiLingual

And ask for replacement to

 .Site.Params.IsMultiLingual

A local correction to the alert, following whats asked in the log and researching for the new Params on internet, proved enough to solve the problem and make the server functional again

The problem happens only AFIK in Apple ARM machines, as it's the only people complaining about the problem.

Didn't tried to reproduce the error in another machines

Hugo installed via Brew install
Theme installed via git submodule as Hugo doc

PS

A warn started to break for no reason, and after I break it into two lines the problem was solved.

WARN  Current environment is "development". The "comment system", "CDN" and "fingerprint" will be disabled.
WARN  当前运行环境是 "development". "评论系统", "CDN""fingerprint" 不会启用.

Not part of the deprecated alert, but to run the project I need to correct it first.

PS2

Another deprecation alert was happening, but as it not a impediment I let it stays for further evaluation

image

changed it to .Site.Params.IsMultiLingual
as its recommended in the same log
but when called causes a clash acusing a missing quote
changes the quotes and did it into two lines as it originally was more than 100 char long
I don't speak Chinese so please check for any error as I just copy and pasted this portion of the string
Copy link

sonarcloud bot commented Nov 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant