Finally, a song I can play on the piano!
Category: Photos
WordPress — undefined constant error
I try to follow cardinal rules of data management that were drilled into me since I got into computers at university by (#1) taking backups often and (#2) keeping stuff organized. Well, the first one caused my site to go down today because I didn’t really follow the second one.
I try to keep on top of things by doing a full site backup at least once a year, on top of doing periodic database and blog backups. When I finished the full backup today, it stored the tarball (a compressed .tar.gz archive) in my hosted account right next to two other huge ones from last year that I forgot to delete, and it put me over the storage limit. This had the effect of returning ERROR 500 when trying to reach my site. However, I could still get into cPanel from my host’s server address, and support advised me to check the error log and replace core WP files.
The error log was full of lines containing the following:
PHP Warning: Use of undefined constant DATABASE_SERVER - assumed 'DATABASE_SERVER' (this will throw an Error in a future version of PHP)
Then I noticed that the file size of the wp-config.php file was 0 bytes.
So I downloaded the tarball from the backup I had made earlier and extracted wp-config.php. I replaced the one on the server, and everything seems to be working again.
The PHP warning above is not specific to my host or WordPress configuration, but I couldn’t immediately find a search result describing this exact problem. Then again, Google search really sucks these days, so maybe this post won’t help anybody in any case.
Here is a photo of a statue in a downtown Maha Sarakham canal that’s supposed to be the tail of a mythical river monster of ancient Thai legend, but is jokingly called “the asparagus” by everyone and has become a national symbol of corruption (the city supposedly paid over 100 million baht for it):
It has nothing to do with the server problem above; I’d just wanted to post the photo for a long time.
Looking Back
This year has been filled with business trips, mainly to Pattaya for some reason. Just looking back on some photos from May.
Pattaya Sunset
I think Max took this one. We were there just a week ago!
He is back in the states now, missing Thai food and people. Hurry up and graduate, dude!
Blue Lotus
Also known as the blue water lily, or blue star water lily, which is slightly confusing since a “blue lily” is a completely different thing. The plant pictured could be Nymphaea nouchali or one of its several varieties including Nymphaea nouchali var. caerulea which contains the psychotropic substance aporphine, which lead to the outlawing of possession of the plant where tripping ancient Egyptian balls is apparently frowned upon.
The lotus has roots in many countries and religions, and it’s said that everywhere the baby Buddha stepped, lotus flowers bloomed and that when the Buddha died, they reappeared everywhere that he had walked the Earth. The fullness of bloom and color of the flower also have religious meaning. The blue lotus represents wisdom and intelligence.
I took this particular photo in our hometown of Maha Sarakham, at the Issan Arts and Culture Centre, where Nam’s father was director for many years. They were in a ceramic water planter just in front of the Buddha that he sculpted for the university.
The Dogs of Lad Prao
For as long as we’ve been visiting Nam’s auntie and uncle on Lad Prao 33, there have been a huge pack of dogs running the middle area of the street. During the day, they lounge around in the heat and disappear through holes in nearby gates, but at night, they run around free. It is scary walking there alone at night. The neighbors all complain about the danger and the shits left all over the place, to no avail… We’ve been going and staying there for decades, so we have probably seen several generations of this wild pack.
My Own Private Loch
This is my favorite path to take on my daily sunset walks. It’s a concrete footpath bordering the canal that winds through my university’s campus. The water levels of the canals and holding ponds they feed to fluctuate quite a bit, as the norm for these times of climate change mean that long periods of drought are immediately followed by heavy and persistent rains. When the level is right, though, I can say hi to Nessie.
It’s been raining almost every day since Max settled in here for his summer vacation, but I took him here last week. He saw Nessie. I consider this to be the coolest thing to see in the whole province, and the fact that it’s hidden and impermanent makes it even better.
Max is back
..for a nice trip home during his summer break. It’s the first time he’s been back to Thailand since he left in 2019 (and got trapped by COVID lockdowns in 2020). We are having a lot of fun.
Top Chicken Cooking Tips
- Thighs are usually better than breasts, even when breasts are specified
- In almost any recipe, ignore the words, “skinless,” or, “remove skins”
Pictured above: Not chicken