-
Notifications
You must be signed in to change notification settings - Fork 166
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
Nil pointer dereference in /json/search-data.json with .File.BaseFileName after upgrading to v0.8.5 #478
Comments
Hi, thanks for reporting. Do you have the link to the site source or a minimal reproducible example? |
Caused by this a97a179#diff-878d857f7dcdc7fd275c8ebd8d44c3894aee03519344b2cc1b55c079314a4bfeL10 The error is caused by a page that doesn't have a file, previously excluded because it didn't have It could be fixed if pages without a |
Right, that exclusion line is the only change we made. Not sure why |
@Gr3q i'll revert the search-data line change for now as I saw another person ran into the same issue |
done, cut a new release that reverts the change in will look into the root cause when I have time. |
Description
After upgrading from Hextra v0.8.4 to v0.8.5, the site build fails due to an error in
/json/search-data.json
. The.File.BaseFileName
property references anil
value, leading to a runtime error. The issue occurs on a multilingual site with English and a partial Spanish translation.Steps To Reproduce
hugo server --buildDrafts --disableFastRender
.Expected Behavior
The site should build successfully without errors.
Actual Behavior
The build fails with a nil pointer dereference error.
Screenshots
N/A
Environment
Additional Context
The log error is:
The text was updated successfully, but these errors were encountered: