Updating Noah's Classifieds 1.3 to the latest 2.x version

From the 2.1.2 version of Noah's, all install packages contain an update.php script that you can use to update an existing Noah's Classifieds 1.3 (or 1.3.1) installation to the latest Noah's release. The update script has two tasks:

  • It converts the old database structure into the new one keeping all the existing content (so categories, ads, custom fields and other objects will be taken over),
  • It creates new thumbnails for the uploaded advertisement images (since the 2.x version applies different thumbnail dimensions than the 1.3),
  • Of course the program files will be updated, too, but this will be done by you manually and not by the update script!

You can perform the update by following the below instructions:

  • Step 1 - Preparation: it is strongly recommended that you make a rescue copy from the php files of the existing Noah's 1.3 installation and a database dump of the Noah's 1.3 database before the update process!
  • Step 2 - Updating the files: in this step, there are two possibilities: you can perform the update using a just downloaded install package, or if you have an already installed 2.1.2 version, you can use its files, too:
    • A: if you have an install package of 2.1.2 (or above): unpack the new version and copy the unpacked files in your Noah's 1.3 installation directory overwriting the old files.
    • B: if you have an already installed 2.1.2 (or above): overwrite all the files of the 1.3 installation with that of the 2.1.2 installation excluding the config.php file! It is important that the config.php file of the original 1.3 installation remains intact, because it stores the actual database access details.
  • Step 3 - Updating the database: Display update.php in your browser and follow the instructions! The update script recognizes which Noah's version is installed on your server and will make the necessary database and file modifications. You can use the new version immediately after this.

Notes

  • You can't use this script to update Noah's Classifieds 1.2, 1.1, or 1.0!
  • If you are in doubt which Noah's version you actually have, you can check the version number in the database: it is stored in the instver field of the only record of the classifieds_globalstat table.
  • The first thing the update.php script checks is actually the version number of the old installation - so, if it's not at least 1.3, it won't try to perform the update.
  • Because update.php must re-generate the advertisement pictures, it will check whether it has write permission to the files under pictures/listings. If it has no write permission, you must grant it first. Click here to read more about setting the file permissions!
 
update/1_3_update.txt · Last modified: 2008/07/07 20:30 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki