zenphoto forums » General Zenphoto Discussion

setup scripts missing

(69 posts)
  • Started 2 years ago by Leviathan
  • Latest reply from acrylian
  1. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,767

    I do want to add one more note to this thread incase someone without so much knowledge reads it. The prime reason for the install signature is because one version of Zenphoto is not exactly like the next.

    When you upgrade, setup will migrate your database to be consistent with the current version of Zenphoto. If you do some thing like restoring your database to what existed for a previous version of Zenphoto as apparently SebastianKleine did then you have potentially compromised everything in your installation.

    For this reason, and because we run into install scripts that do not do this migration, Zenphoto tests the signature of the install and if it finds anything suspicious suggests a running of Setup to straighten things out.

    Perhaps there are occasions where nothing actually got migrated so the re-install would not be necessary, but testing that specifically would certainly be too expensive to perform each time a page gets loaded.

    So, bottom line, if you use MySQL to backup and restore your database, be sure you do so with the same version of Zenphoto running. (I would have thought that would be obvious to someone with programming skills, but then....)

    Zenphoto does provide a backup/restore facility that is able to deal with many of the migration issues. But it is still recommended that you do your restore on the same version of Zenphoto that created the backup because you will not know if it can handle the migration until the restore.

    Don't forget to read the Forum rules and usage resources
    Posted 9 months ago #
  2. Zenphoto translation team
    Michel Gagnon

    Translator
    Joined: Apr '10
    Posts: 147

    @sbillard
    I would recommend that you add paragraphs 2, 5 and 6 of the above message in the following page:
    http://www.zenphoto.org/news/installation-and-upgrading#moving-existing-installations

    I would recommend putting it as a warning under either Moving Existing Installations or Upgrading

    Posted 9 months ago #
  3. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,767

    I have placed the text as part of the introduction rather than with one of the links. Take a look and tell me what you think.

    Don't forget to read the Forum rules and usage resources
    Posted 9 months ago #
  4. Zenphoto translation team
    Michel Gagnon

    Translator
    Joined: Apr '10
    Posts: 147

    Fine.

    One thing I notice however, the "#" links don't work anymore on that page. (I checked a few other pages and the "a name" tags are there; it's just on the installation-and-upgrading that they are absent.

    Posted 9 months ago #
  5. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,350

    The # do work for me. The page has no <a>anchors anymore. Now ids are meant to be used, To my knowledge these anchorse are considered deprecated and will not be allowed in HTML5

    Ids are generated by the jquery plguin that generates the table of content on the top right of each article with sub headlines. That also generates the "top" link on each headline. I did setup that up as maintaining those TOCs of longer articles and manually linking is a pain.

    If you don't see that table of content you probably have javascript disabled.

    Don't forget to read the Forum rules and usage resources
    Posted 9 months ago #
  6. Zenphoto translation team
    Michel Gagnon

    Translator
    Joined: Apr '10
    Posts: 147

    I tend to follow HTML language developments but wasn't aware of that one. Anyway, I noticed that Firefox and Internet Explorer 8 don't consider the "id" tag, but Opera does so.

    Thanks.

    Posted 9 months ago #
  7. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,350

    Since I am on Mac I cannot test IE...:-)

    Seesm to work for me in Firefox 3.6 and the latest 14.x and of course in Safari 6 (did in 5, too), Opera, Camino and Chrome.

    Don't forget to read the Forum rules and usage resources
    Posted 9 months ago #
  8. Zenphoto translation team
    Michel Gagnon

    Translator
    Joined: Apr '10
    Posts: 147

    UPDATE... and a bit of interesting information

    I experimented a bit and I think it is related to the way the links are made. If I understand correctly, the table of content generates a # link, which is interpreted back by the jquery plugin to send the user to
    'h4'Moving existing installations'/h4'
    (single quotes replace angle brackets)

    It seems that Firefox and Internet Explorer do not load the jQuery plugin before the page, so if you click on the link from the message above or if you type it yourself, it puts you at the top of the page. If you then click in the address bar and press Enter, then it brings you to the correct place. Ditto if the page is in the browser memory.

    On the other hand, if you try to access one of the paragraphs or divisions that has an ID tag hard-coded, it works. So for example http://zenphoto.org/news/installation-and-upgrading#footer works directly because there is
    'div id="footer"' in the HTML source code.

    Posted 9 months ago #
  9. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,350

    No, the plugin (http://fuelyourcoding.com/scripts/toc/) actually creates IDs. If there are anchors they are leftovers from the manual editing.

    I can indeed reproduce the FF behaviour. I think there is nothing we can do about this. But since you get the TOC you can easily jump further if it does not work.

    Don't forget to read the Forum rules and usage resources
    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.