CJ Fearnley on 13 Jul 2017 15:58:42 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] The most pernicious bug in WordPress |
I wish wp-cli was in Debian's packaging system :( We've been using the automatic-domain-changer plugin. What fun that is. OK: let's move dev.example.com to www.example.com. Update the domain name using the plugin (don't update DNS first or you're toast). The dev site goes completely dead. The www site spews errors. What's happening? ... the database looks correct. What else? Oh, yeah, I have to update the links in /etc/wordpress, edit that config file AND change the Apache configuration. Give me 5 minutes. OK: you can update DNS now. Thank you WordPress. BrainDead. What should be a 1 minute change that Just Works becomes a complex 5 step process that takes 10 iterations to master. All to work around a design flaw. Frustrating. On Thu, Jul 13, 2017 at 06:13:01PM -0400, Stephen R Guglielmo wrote: > I use wp-cli's search-replace command to do this. I often clone our prod wordpress db to non-prod and wp-cli is how I correct the DB. > > You can't run a regular search/replace on the DB because data is stored serialized (another "why?!?!?"); wp-cli's handles this correctly. > > -------- Original Message -------- > On Jul 13, 2017, 6:05 PM, CJ Fearnley wrote: > > > There were some frustrating moments in my day today. > > > > They bubbled out in a tweet (am I the only one making strident angry > > tweets?): https://twitter.com/cjfsyntropy/status/885592445945352193 > > > > To save you the click: > > > > "@WordPress Why, oh why, do u store the hostname with absolute links in > > the database? Creativity cannot deal w/ this pernicious bug!! FIX IT!" > > > > I cannot change the hostname or location of a site if that data is hard > > coded with absolute links that include the full hostname in the code or > > in the database! > > > > Isn't this web development 101 stuff? > > > > I mean it is a basic data normalization issue, no? > > > > Am I wrong here? Is this a quixotic mission fighting windmills? > > > > Where should we file our complaints? > > > > -- > > CJ Fearnley | LinuxForce Inc. > > cjf@LinuxForce.net | IT Projects & Systems Maintenance > > http://www.LinuxForce.net | http://blog.remoteresponder.net > > ___________________________________________________________________________ > > Philadelphia Linux Users Group -- http://www.phillylinux.org > > Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce > > General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug -- CJ Fearnley | LinuxForce Inc. cjf@LinuxForce.net | IT Projects & Systems Maintenance http://www.LinuxForce.net | http://blog.remoteresponder.net ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug