Author Topic: Manual Upgrade from 1.7.6.to 1.7.7 duplicate code issue  (Read 3670 times)

0 Members and 1 Guest are viewing this topic.

Offline dozza

  • Newbie
  • *
  • Posts: 11
    • View Profile
Manual Upgrade from 1.7.6.to 1.7.7 duplicate code issue
« on: June 19, 2009, 08:35:54 AM »
Hi

I am manually upgrading from 1.7.6.to 1.7.7.

In the instructions Here

It says
Quote
admin/settings.php

Search for

Code: [Select]
 sort($folderlist);
  for($i = 0; $i < sizeof($folderlist); $i++) {
    echo "<option value=\"".$folderlist[$i]."\"";
    if ($setting_value == $folderlist[$i]) {
      echo " selected=\"selected\"";
    }
    echo ">".$folderlist[$i]."</option>\n";
  }
  closedir($handle);
  echo "</select>";
}


And then to insert some code after it.

However, the above code appears twice in the admin/settings.php file. Which one does it refer to, or do we paste the code after both sets of the code?

Thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Manual Upgrade from 1.7.6.to 1.7.7 duplicate code issue
« Reply #1 on: June 19, 2009, 08:58:13 AM »
Paste the new code after the first set (or second, it doesn't really matter, as long as you don't paste it twice ;)).

P.S.
I've updated the instructions for this step.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline dozza

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Manual Upgrade from 1.7.6.to 1.7.7 duplicate code issue
« Reply #2 on: June 19, 2009, 09:26:00 AM »
Thanks.  :D

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: Manual Upgrade from 1.7.6.to 1.7.7 duplicate code issue
« Reply #3 on: June 19, 2009, 10:00:26 AM »
P.S.
I've updated the instructions for this step.
Thanks V@no!
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline dozza

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Manual Upgrade from 1.7.6.to 1.7.7 duplicate code issue
« Reply #4 on: June 20, 2009, 10:27:03 AM »
Thanks again for all the help.

Not sure if I should start a new thread on this, but here goes...:   :?

I've done the manual updates to the templates and uploaded, but now I keep getting errors as follows (it's a Windows IIS server);

Code: [Select]
Parse error: parse error, unexpected T_VARIABLE in D:\Web\site\gallery\global.php on line 346
If I overwrite this file with the original global.php file, I then get similar errors, but on other files. So, I have overwritten all the new 1.7.7 files with the original 1.7.6 files and it works again.

Any suggestions as to what I might be doing wrong. I have double checked all the updated pages and I'm sure that I've entered the new code properly.

The only file I didn't update was the install.php, as it wasn't in the site and I assume I would only do this for a new install?

Thanks for any help.