Support Forums

Upgrade from 4.1 to 4.3

This is a discussion on Upgrade from 4.1 to 4.3 within the Technical Support forums, part of the Technical Support Forums category; Hello guys I worked had last couple of month to setup my listing directory in adaptation of my listing business ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-05-2008, 06:48 AM   #1
Junior Member
 
cranko's Avatar
 
Join Date: Apr 2008
Posts: 26
Rep Power: 8
cranko is on a distinguished road
Default Upgrade from 4.1 to 4.3

Hello guys

I worked had last couple of month to setup my listing directory in adaptation of my listing business version. So i change several things in the code because i dont need list prices or other things, many things almost i cant remember now.

But now because a vulneravility i need to upgrade to the last version. This will screwup all my modifications again and i will need to work in the code repeat all the things i need to change.

This will take a lot of time again, code, bugs about foraing accenss, etc...

My question its ... How i can upgrade it just to fix the vulneravility and only to prevent it?

I dont want upload all the new code to start again over and over, just i need to fix the vulneravility thats all

Im not a programer and its to hard loss all my old code

Thank you
cranko is offline  
Old 06-05-2008, 09:26 AM   #2
Coder
 
Join Date: Mar 2006
Posts: 4,915
Rep Power: 120
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

For starters, you should be documenting all of your code changes so they can be redone if needbe. For example, do YOU backup your site? Whats happens if your host lost a disk with your data on it? They say they have a backup right? If i had a dollar for everyone who lost a site thinking their host had them covered I would be a rich man. If its that important to you, document it and back it up.

Ok, off my soap box now. If you look at this post....

Important V4.0.2 is now released - Please Upgrade ASAP

It looks like at a bare minimum you should upgrade the includes/classes/kernel/Category.php file.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-05-2008, 10:01 AM   #3
Junior Member
 
cranko's Avatar
 
Join Date: Apr 2008
Posts: 26
Rep Power: 8
cranko is on a distinguished road
Default

Thanks for you advices.

So if i undertand well, with that file

includes/classes/kernel/Category.php

I just fix the vulneravility problem?

If that is correct will be great and easy for me.

Anyway i will try to upgrade the whole site in the future. I have backup but i dont have relation of my old changes so will take lot of time to review the whole code again.

Thank you
cranko is offline  
Old 06-05-2008, 10:10 AM   #4
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 1,977
Rep Power: 58
juven14 is a jewel in the rough
Default

I know the feeling, I always hate upgrades, but it is just the nature of using 3rd party scripts. A few things you can do to reduce the work when upgrades do come down the pipe:

Move as many of your modifications to modules, will save you loads of time. There are a few articles/posts that walk you through the module system.

Document your code 2 ways. When you make a change, add comments around it so that you can easily spot it when viewing the source. Something like:

PHP Code:
//added 5-8-2008 adds new ability juven14
$something new_feature_i_added();
$class_tpl->assign('something'$something);
//end added 5-8-2008 adds new ability juven14 
Additionally, keep a text file handy and keep it up to date:
category.php | added new ability | 5-8-2008 | v4.01 | lines 200-203 | developer's name

Now, you can quickly go through the code and make you updates based on the text file. In the event that you skipped one or forgot to include it in your list, commenting it in the source will save you during a file compare.

Use a file compare application. I used to use ultracompare, but now use the one built into Zend Studio. When you compare the files, these comments can be searched for, they will also show up as a difference that is easily spotted.

Don't forget to comment your templates as well.
HTML Code:
{*added 5-8-2008 adds new ability juven14*}
<br /> Some none default html/php/smarty code here
{*end added 5-8-2008 adds new ability juven14*}
By documenting your changes well, keeping backups of your work, using tools like file compare apps, and making your changes as modules, you will definitely not have to work as hard to upgrade your site. I've made major changes over time to several apps, and just by using ultracompare I was able to update the code in minutes. Get a system together and stick to it, as for upgrades this problem will not go away.

If anyone has other suggestions, please feel free to add them, I'm always looking for ways to improve my own processes.
__________________
John Snyder
PHP Developer
juven14 is offline  
Old 06-05-2008, 10:14 AM   #5
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 1,977
Rep Power: 58
juven14 is a jewel in the rough
Default

Quote:
Originally Posted by cranko
Thanks for you advices.

So if i undertand well, with that file

includes/classes/kernel/Category.php

I just fix the vulneravility problem?

If that is correct will be great and easy for me.

Anyway i will try to upgrade the whole site in the future. I have backup but i dont have relation of my old changes so will take lot of time to review the whole code again.

Thank you
This will address the known issue with v4.0.2 and Category.php, however, it will not address the additional issues identified during a recent audit of the system which are fixed in v4.0.3 along with some bug fixes.
__________________
John Snyder
PHP Developer
juven14 is offline  
Old 06-05-2008, 10:57 AM   #6
Junior Member
 
cranko's Avatar
 
Join Date: Apr 2008
Posts: 26
Rep Power: 8
cranko is on a distinguished road
Default

Thank you guys for you awesome advices i always receive here

Cranko
cranko is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade Ad Xemion Technical Support 3 02-05-2008 06:29 PM
Upgrade to 3.1.10 question? HotAir v3.1 Questions & Support 5 10-01-2007 02:07 PM
Upgrade path.. michael v3.1 Questions & Support 1 03-29-2007 08:46 AM
Upgrade Routine midi510 v3.1 Questions & Support 2 03-26-2007 10:24 AM
Upgrade failed whithaydn v3.1 Questions & Support 1 08-28-2006 09:33 AM


All times are GMT -4. The time now is 07:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0