Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2010
    Location
    UK
    Posts
    23
    Plugin Contributions
    0

    Default Upgrading from 1.3.7 - help please!

    In the process of upgrading from 1.3.7. Doing an upgrade on the test site (which is mirror of live site) first. Am at the Winmerge stage and need to clarify a few things so as usual, forgive the stoopid newbie questions. I find if I keep reading/asking questions all of a sudden things suddenly drop into place and I understand what I'm doing and why which makes everything so much easier (and I want to learn rather than follow instructions if you see what I mean) so please bear with me while I reach that point

    First set of dumb questions:

    1) I've looked at all the ChangeLogs between 1.3.7 and 1.3.9h (I assume this is necessary?) - there are obviously a lot of files that have been changed. Am I right in saying that, when I compare the original version of 1.3.7 (zen_orig) to the current live 1.3.7 (zen_backup), those files listed in the changelogs which have not been customised/altered can simply be overwritten?

    2) I can't seem to get it straight in my head how the upgrade works with the override system. The override files are obviously based on the 1.3.7 files. Do I:
    - compare zen_orig with the override files and make note of changes
    - then add those changes into the 1.3.9h files and save them as the new override files
    - any files in the override which have not been changed since 1.3.7 can be left as is
    I'm pretty sure I'm making this far more complicated than it needs to be but it's not making sense at the moment and I'm annoyed with myself. Hoping someone can make the penny drop for me.

    TIA

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Upgrading from 1.3.7 - help please!

    You can let your penny drop. You have grasped the principals of both your questions correctly.

    Feel free to come back with any problems you run into.

    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Sep 2010
    Location
    UK
    Posts
    23
    Plugin Contributions
    0

    Default Re: Upgrading from 1.3.7 - help please!

    Thank you so much Kim, very reassuring to know it's starting to make sense!

    I've started adding in changes (not got to the override files yet), there are rather a lot. So far most of the changes have been minor, only one or two lines, but I'm now looking at admin/categories.php in WinMerge and there are large sections of code that are different. I just want to check that I would be doing the right thing by changing it.

    For example. The code in the original 1.3.7 categories.php file starting at line 216 is:

    PHP Code:
          if ($_POST['categories_image_manual'] != '') {
            
    // add image manually
            
    $categories_image_name $_POST['img_dir'] . $_POST['categories_image_manual'];
            
    $db->Execute("update " TABLE_CATEGORIES "
                          set categories_image = '" 
    $categories_image_name "'
                          where categories_id = '" 
    . (int)$categories_id "'");
          } else {
            if (
    $categories_image = new upload('categories_image')) {
              
    $categories_image->set_destination(DIR_FS_CATALOG_IMAGES $_POST['img_dir']);
              if (
    $categories_image->parse() && $categories_image->save()) {
                
    $categories_image_name $_POST['img_dir'] . $categories_image->filename;
              }
              if (
    $categories_image->filename != 'none' && $categories_image->filename != '' && $_POST['image_delete'] != 1) {
                
    // save filename when not set to none and not blank
                
    $db->Execute("update " TABLE_CATEGORIES "
                              set categories_image = '" 
    $categories_image_name "'
                              where categories_id = '" 
    . (int)$categories_id "'");
              } else {
                
    // remove filename when set to none and not blank
                
    if ($categories_image->filename != '' || $_POST['image_delete'] == 1) {
                  
    $db->Execute("update " TABLE_CATEGORIES "
                                set categories_image = ''
                                where categories_id = '" 
    . (int)$categories_id "'");
                } 
    The current live site version of the file at that point is:

    PHP Code:
          if ($categories_image = new upload('categories_image')) {
            
    $categories_image->set_destination(DIR_FS_CATALOG_IMAGES $_POST['img_dir']);
            if (
    $categories_image->parse() && $categories_image->save()) {
              
    $categories_image_name $_POST['img_dir'] . $categories_image->filename;
            }
            if (
    $categories_image->filename != 'none' && $categories_image->filename != '' && $_POST['image_delete'] != 1) {
              
    // save filename when not set to none and not blank
              
    $db->Execute("update " TABLE_CATEGORIES "
                            set categories_image = '" 
    $categories_image_name "'
                            where categories_id = '" 
    . (int)$categories_id "'");
            } else {
              
    // remove filename when set to none and not blank
              
    if ($categories_image->filename != '' || $_POST['image_delete'] == 1) {
                
    $db->Execute("update " TABLE_CATEGORIES "
                              set categories_image = ''
                              where categories_id = '" 
    . (int)$categories_id "'"); 
    It looks as though sections of code from the original file have been removed. Comparing the originial 1.3.7 file with the 1.3.9h version, that section of code appears to be identical. The site is highly customised and there have been a lot of mods installed (before my time so I don't have a complete list) but I can't identify the source of that change and my understanding of php is rather limited. I realise it's purely a confidence issue but I just wanted to double check before I change this....

    Many thanks

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Upgrading from 1.3.7 - help please!

    Is the site using the category images? It appears that instead of using the Admin facilities and templates to change the showing of the category image that someone changed/removed the code. I would use the stock 1.3.9h code and see if I could make the changes to the look via more conventional means.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Sep 2010
    Location
    UK
    Posts
    23
    Plugin Contributions
    0

    Default Re: Upgrading from 1.3.7 - help please!

    Quote Originally Posted by Kim View Post
    Is the site using the category images? It appears that instead of using the Admin facilities and templates to change the showing of the category image that someone changed/removed the code. I would use the stock 1.3.9h code and see if I could make the changes to the look via more conventional means.
    Thank you for the advice, that sounds like a sensible solution. I will use the basic code and then fiddle about afterwards. As a test I uploaded the basic 1.3.7 version of that file to the test site and couldn't see any difference in the category pages so I'm none the wiser. There are category images but I don't know how different they are to the basic template.

    I confess I'm now worried how many other changes have been put in like this. Oh well, all part of the learning curve!

    Thanks again, I appreciate the virtual hand holding!

 

 

Similar Threads

  1. v151 Upgrading from 1.5.1 to 1.5.4 clarification of process please
    By shags38 in forum General Questions
    Replies: 4
    Last Post: 23 Nov 2015, 02:55 AM
  2. v139h Upgrading for v1.3.9h to 1.5.4 HELP PLEASE
    By Tinkerbell of Pequot in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 26 Apr 2015, 05:38 PM
  3. Help - Please... Upgrading DB
    By rjmg2008 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 18 Jan 2011, 08:03 PM
  4. Desperately need help upgrading PLEASE
    By pwdesign in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 21 Nov 2006, 11:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg