Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs

Dashboard
Notifications
Mark all as read
Q&A

Moved to a new OS version, didn't change project source, and now Datenstrom Yellow project won't build -- how do I debug this?

+3
−0

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.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Updated Yellow? (2 comments)
Linux release (3 comments)

2 answers

+2
−0

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.

Why does this post require moderator attention?
You might want to add some details to your flag.

2 comment threads

Found it. (1 comment)
No additional debugging info :-( (2 comments)
+1
−0

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.

Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!

Like what we're doing? Support us! Donate