![]() I found this issue discussion, which pretty much matches my problem. Of course, the first thing I did was Google the problem. So, when you sort by country, it’s really sorting on country code, so “AE” goes to the top, which isn’t really what the client wanted. ![]() On the location record, only the two-letter country code is stored, for instance “AE” for “United Arab Emirates”. This works fine, except when sorting by country. We allow the user to sort the results by one of a few different fields, with the sort drop-down exposed from the view. The user can search for locations, using some custom search code, and the search results are displayed via a standard Drupal view. There’s a location field on each node with, minimally, city and country specified. The problem, in a nutshell, is that we have a content type in the system that represents a university. The thing that amuses me most about this is that, after more than eight hours of messing around, the final solution involved writing only about a half-dozen lines of code. I’m really glad to have come up with a good solution. I just finished fixing one issue that, while seemingly minor, took quite a while to figure out. I’ve had to fix some interesting problems at work recently, related to a Drupal site that we’ll be rolling out soon. There are a few things about it that I’m not too fond of, but overall, it’s really good. It’s reasonably fast and easy to use, and the debugger works pretty well. One thing that was confusing to me was that debugging locally is still considered “remote debugging”.Īlso, on a related note, I’m not sure I ever mentioned that, after looking at a few options, I settled on Komodo as my PHP IDE of choice. – To get debugging working under Komodo IDE, take a look at this document. (Of course, there’s always krumo for that too.) I’ve found it to be very helpful when looking at a complex object. Add “set html_errors = On” to your php.ini to enable this. – Xdebug can add color to your var_dump() calls. See here for some ways to unblock multiple files easily.) I don’t know whose idea that “feature” was, but it was not a *good* idea. (Blocked files really annoy me, by the way. – Depending on how you download & copy the DLL over, you may need to unblock it. Much easier than trying to figure that stuff out yourself! ![]() This will then tell you exactly which file to download, where to put it, and what to add to your php.ini. First, go to the wizard page, and paste in the contents of a phpinfo() call, run on the machine you’re installing to. It turns out to be pretty easy, though, given a few pointers. It’s a bit hard to figure out the best way to get started with it under Windows. It’s definitely worth enabling, if you’re doing anything with PHP that’s in any way non-trivial. (Or, if I did, it’s not coming up when I search for “xdebug” for some reason.) Anyway, Xdebug is a debugging tool for PHP. I thought I’d written up an entry on Xdebug for PHP a while ago, but apparently not. But I think I’m getting close to the point where I’m going to want to hand this stuff off to somebody else and just concentrate on the blogging and not worry about the sysadmin side of things. But I still like futzing with this stuff a little, so for now, I’ll stay with the traditional web hosting plan, where I’m free to mess things up and forget to update PHP and stuff like that. Maybe just the $5/month plan from or something like that. ![]() Everything still seems to be working, which is nice.Įvery once in a while, I think about switching to some kind of managed WordPress install, so I don’t have to worry about this stuff anymore. And I’ve got WordPress updated to 5.1.1 too. I went ahead and updated to 7.2.15, so I should be good now for a while, though I guess I should update to 7.3 at some point. So I guess I’m paying $7 now for not having upgraded PHP in a while. ( Tempus fugit.) It looks like 5.6 reached EOL at the end of 2018. I was a little surprised by this, since I thought I’d already taken care of updating PHP to a supported version, but it turns out that I was remembering updating from 5.4 to 5.6 three years ago. I got a bill from 1&1 / IONOS last week for PHP 5.6 Extended Support.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |