Recent Topics

1 Nov 12, 2005 21:49    

I'm sure people here have faced this issue before, so I'm asking in the hopes of trying to develop some kind of workflow when it comes to updating a blog... Most of us here employ a lot of hacks/edits/updates which more often than not affect the core of the b2evo app. However, these hacks will all get wiped out when updating the core app, say from 9.0.11 to 9.1 (dawn). The process of re-installing all the hacks can take quite a few hours in some instances, if not a day or two, given available time to work on it.

So how does everyone here go about updating the core app without having to take their blog down for a day or two? One thing I've considered is installing the new version in parallel to the existing one, adding all the hacks and edits, and then moving the new version to the location of the old and editing it to point to the old database, but this then brings up the problem of database inconstencies from the old version to the new...

Is the only way to do this really to just install the new version and then go about re-installing all hacks and edits, and just accepting that the blog will be less than 100% functional/viewable until the edits are completed? It's not something I look forward to, especially since the whole procedure will have to be repeated each and every time a new b2evo version is released, and if someone is using b2evo for a corporate-style blog, having it inaccessible or half-functional becomes more of an issue than just with a personal blog.

Just hoping for some insights, pointers, etc, that might make the transition a little more seamless and less painful...

jj.

2 Nov 13, 2005 08:51

Here's how I would do it, make a duplicate of your database. Install the new version on a seperate folder (or pref a sep domain), using the duplicate database. Redo all your hacks.

Once tested and working. Delete the copy of your database, overwrite your current install with your new (now hacked) install and run the installer agaian and upgrade your live database.

¥

3 Nov 13, 2005 10:27

I just started dealing with phpbb guts, and I gotta tell you: they have a GREAT method of 'approving' hacks. Basically a hack has to be written in a very specific style to even be considered. Next a group of phpbb people decide if this hack opens up a security hole or in some way damages the overall function of an installation. Finally, although I'm sure it's deeper than this, the hack must be written to apply to the default (sub silver) skin. Or theme I think they call it. Oh yeah one more thing: they publish 'approved' hacks with a version reference.

Unfortunately none of this will help the heavy hacker when phoenix comes out. The entire core is radically different. EVERYTHING is different. b2evocore as a folder name is going byebye! To my mind, as a simple user who likes to hack, it's like a whole new product that happens to be directly upgradable from an unhacked b2evolution installation.

4 Nov 13, 2005 10:37

I've seen that on phpbb, and it's a great system.

The beauty of the new system is you can do most of your hacks as a plugin instead, making them far more future proof ;)

¥

5 Nov 13, 2005 11:12

¥åßßå wrote:

I've seen that on phpbb, and it's a great system.

The beauty of the new system is you can do most of your hacks as a plugin instead, making them far more future proof ;)

¥

I think going forward I'll live to the phpbb model for hackage. Having said that, I sure hope someone smart (like you!) can help me make plugins for what my b2evolution needs in order for me to upgrade. Without getting too specific, check out [url=http://wonderwinds.com/flightblog.php/2005/06/04/the_forgotten_flight]this page[/url] and you'll get a hint at the depth of my hackage. I have a custom table for my sites, and custom fields for my posts - site and airtime and distance. All these come together when I post a flight so that my blog can track all my flying activity. Funky and personal, but important to me.

I'm WAY off topic! In an attempt to return to the focus of this thread, maybe between plugins and a "phpbb modeled" hack method jibberjab's issue is addressed? In fact I'll make it a point to produce a document that shows the "phpbb way" to document hackage and ask people to live to it. b2evolution is too small to expect a group to sit in judgment of hacks and 'approve' the good ones, but we certainly can ask users to follow a simple model if they're going to hack core files. ESPECIALLY in the post-phoenix world.

6 Nov 13, 2005 11:29

With a tad of imaginative thinking you could convert that into a plugin.

To continue on topic, the majority of the hacks that exist at the moment can be replaced with plugins in phoenix, with no need to hack the core files. As long as developers make as much effort as possible to create plugins then it'll make future upgrades far less painful.

¥

7 Dec 12, 2005 03:09

I totally lost track of this thread while involved with other projects.

EdB wrote:

Unfortunately none of this will help the heavy hacker when phoenix comes out. The entire core is radically different. EVERYTHING is different. b2evocore as a folder name is going byebye! To my mind, as a simple user who likes to hack, it's like a whole new product that happens to be directly upgradable from an unhacked b2evolution installation.

That's kinda what worries me the most. I'm still holding off rolling out a "corporate"-style blog because I'm wary of having to upgrade the whole guts of it while it's actually live, and it wouldn't be an unhacked version because in my opinion the antispam rechecker, disable comments after xx days, the pingomatic hack, among others, are essential. Oh yeah, the captcha too. I know you love the captcha, EdB! (A friend of mine saw your comment on my blog and was asking "what the h3ll's he talking about?." I told him never mind).

I suppose I could take the live blog (SOURCE) and make a complete duplicate of it on a testing server (WRKCOPY1), then make another copy of it (WRKCOPY2) on which to do the upgrade and the hacks, make sure everything works properly, and then repeat the upgrade rollout on WRKCOPY1. Basically just simulating the whole blog in another place.

I guess once WRKCOPY1 is running properly, as an exact mirror of the SOURCE blog, SOURCE could be backed up and WRKCOPY1 simply moved into its location, and then make the changes to conf/_config.php. The point is that with a fully mirrored copy of the blog, all of that procedure (either moving the blog and editing conf.php, or just doing an install/upgrade on the database), could be tested in a safe location while SOURCE continues on its merry way.

I feel like I'm just thinking out loud, but I'm trying to visualize a safe way to do an upgrade when it's more mission critical than a personal blog.

[edit: this doesn't even go into the particulars of upgrading to phoenix, which will involve skin changes as well. Ugh!]

jj.


Form is loading...