Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Moved to a new OS version, didn't change project source, and now Datenstrom Yellow project won't build -- how do I debug this?
I've been using Datenstrom Yellow on a Mac running 0S 10.12.6 (Sierra) to build a personal web site (mostly a blog). The self-hosted test site (runs directly from source) and the build (generated site for deployment) work fine. I have a "home" area and a blog, and I use the Yellow extensions for sidebar, search, contact, feed (RSS), and sitemap. I'm using the Berlin theme, as required for the blog tools.
I've just moved to a Mac running 11.6 (Big Sur). When I run the self-hosted test site, the contact form and search pages load fine and searches work. (Contact submissions never worked in the test site, presumably because it can't send email.) Both "Contact" and "Search" are now showing up in the header alongside "Home" and "Blog" -- not what I want and a change, but there's a bigger problem I need to solve first (nd maybe that will also fix this.
When I build the static site now, I now get the following error output:
$ php yellow.php build ../build/
ERROR building location '/contact/', HTTP/1.1 500 Server error:
Static website not supported!
ERROR building location '/search/', HTTP/1.1 500 Server error:
Static website not supported!
Building static website 100%... done
Yellow build: 74 files, 2 errors
I didn't change any of the source files in the migration to the new machine. I did have to reinstall PHP (7.3), because the version that comes natively with Big Sur didn't have some needed extensions. I didn't knowingly make other changes, though of course things changed in the OS that might have affected dependent tools.
Yellow uses Apache to run the test site. If the errors were coming from there, I'd try to figure out Apache setup stuff. But my errors are coming in the build (even though they look like web-server internal errors), and I don't know what to make of that. Yellow is open-source, but I'm not proficient enough to understand their build. (I think it's somewhere in core.php.)
I also tried on the shell provided with my web hosting and got the same errors. It's running some flavor of Linux; the results of uname -a
(with my host redacted) are:
Linux example.com 3.10.0-962.3.2.lve1.5.60.el7.x86_64 #1 SMP Fri Jul 23 07:07:00 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
I don't know what that means; searching for "what linux am I running?" led me to this command. According to a comment, it's RHEL 7.
How can I generate the same working site on Big Sur or that Linux system as I was able to generate on the older version of MacOS? I'm at a loss on how to debug the build errors.
2 answers
I have learned (from their forum) that, contrary to my impression, Yellow doesn't support search or the contact form when generating a static site. It does support them if you have Yellow serve your site dynamically, which is what the maintainers recommend. What changed for me, apparently, was not the behavior itself but the error messages -- must be something different on the MacOS side, as it's the same version of Yellow.
0 comment threads
Based on Datenstrom - Troubleshooting, it looks like to turn on debugging, you need to edit system/extensions/core.php
such that it says
<?php define("DEBUG", 1);
(The <?php
may or may not be on the same line as the define
directive; that's inconsequential here, but make sure to not introduce whitespace before it.)
Doing so should cause it to emit more debugging information, possibly to system/extensions/yellow.log
.
2 comment threads