Closed Janybanny closed 2 years ago
What is the configuration of the homepage? Posts or a static page?
The homepage is just the main page that lists all the posts afaik. I never worked with bludit, but used the same theme ported to ghost before and there it just listed all the posts (currently none) and has links to static sites in the bar (at the bottom of the page). You can load the about page to see a post, it looks the same, but there is no post, just a list of posts that were published. I don't know what this is called/how this works exactly in bludit
It basically calls this variable, but fails because it returns false.
https://docs.bludit.com/en/developers/predefined-variables#page
I will try and add an if statement before to check if it returns false and it should theoretically work afterwards
I solved the issue by adding a post. The theme breaks on multiple locations if there are no regular posts on the site. I'll close this issue with that, since I won't develop a fix and I don't expect anyone else to do so (it's a very niche issue), but if anyone wants to fix it, feel free to reopen it.
I just tried to use the Massively theme with Bludit 3.14.1 and PHP 7.4 and it gave me this error:
It only crashes on the homepage (https://janybanny.moe) and not on static subpages (f.e. https://janybanny.moe/about). The error only comes up when loading the homepage.
It also only happens with the massively theme installed and not other themes that I've tried, which is why I am submitting it here
I found out that it fails in this line (55) at the
$page->permalink()
function, because it seems to have no $page (since it's the homepage and not a post or static site/user content).I sadly don't know enough php to fix this, so help is appreciated