CpmFetch Installer for release 1.9.12

Important information - install has been halted.
'; print $ERRMSG; print '

'; switch ($ERRINSTCODE) { case (10): ?>

This error means that you have attempted to override the defaults and submit a different path by using the do=install-path command. You need to submit a second parameter named path which would provide the location of the Coppermine Photo Gallery directory.

You may override the default settings by entering the relative path from the CpmFetch folder to the location of the Coppermine Photo Gallery by entering it here.

  

This means that the installer could not find the Coppermine Photo Gallery config file where it expected it to be, or where you have overriden it to be.

The recommened place to install cpmfetch is inside the Gallery directory in a subdirectory named cpmfetch.

You may override the default settings by entering the relative path from the CpmFetch folder to the location of the Coppermine Photo Gallery by entering it here.

  

This means that the installer could not find the Coppermine Photo Gallery initialization file where it expected it to be, or where you have overriden it to be.

The recommened place to install cpmfetch is inside the Gallery directory in a subdirectory named cpmfetch.

The install has detected a configuration file for cpmfetch exists. The version of the config file () is not compatible with the version of CpmFetch () you are trying to install. The last version requiring a change was . You will need to re-run the install program. By clicking the link below, the install will re-run, possibly overwriting changes you have made manually to the cpmfetch_config.php file. We recommend making a copy, or taking some notes if you have actually changed anything.

Click here to re-run the install [RECOMMENED].

The install detected an existing cpmfetch_config.php file () that is compatible with the current code (). You do not need to re-run the install program again. Some reasons why you may want to:

  • You've made changes to the Coppermine Photo Gallery configuration
  • You've messed up the cpmfetch_config.php file
  • Bridged CPG with a forum of some sort

Click here to run the install [OPTIONAL].
or close this window to avoid overwriting.

The install has detected a configuration file for cpmfetch exists. The version of the config file () is newer than the version of the installer (). This typically means you are downgrading from a newer version to an older verison of CpmFetch. If not, this is a bug. You will need to re-run the install program. By clicking the link below, the install will re-run, possibly overwriting changes you have made manually to the cpmfetch_config.php file. We recommend making a copy, or taking some notes if you have actually changed anything.

Click here to re-run the install [RECOMMENED].

The installer could not connect to the database defined in the Coppermine Photo Gallery config file. Possible reasons for this are:

  • Are you using the correct config file?
  • Is your database down or unavailable

The installer connected to the database, but encountered a problem when querying the configuration tables.

This means that the installer did find the Coppermine Photo Gallery initialization file but was unable to open it for reading.

Please be sure that the web server has sufficent rights to this file.

This means that the installer cannot write to the CpmFetch configuration file. Please be sure you have sufficent rights to write to this location.

You can fix this problem, then click here or simply run the install later.

An error occured while writing to the CpmFetch configuration file. Please be sure you have sufficent rights to write to this location, enough disk space, etc.

An unknown error has occured. Probably worth contact support about.

Test images:
If all went well, you will see some random images from your gallery displayed here. If not, you may in fact have a problem and will need to seek help by clicking here.

cpm_debugMode(true); $objCpm->cpm_viewLastAddedMedia(1,4,array("subtitle" => "{{pHits}} views")); $objCpm->cpm_close(); ?>

These images were found and displayed by using the following PHP code:

<?php
  include "./cpmfetch.php";
  $objCpm = new cpm("./cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

Please note: Unless you are running this code from the same directory as the cpmfetch_config.php file, you need to alter that path so it can be found. The same goes for the include statement.

For example, if you want to add these images into your home page and your cpmfetch directory is inside your gallery directory (which is named gallery) it would look more like this:

<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

Please see the web site or the included documentation for more information.

Warnings:
CpmFetch draws configuration information from your CPG database when this installer is run. If you make any significant changes to the CPG configuration, you will need to re-run this installer. Most changes to the CPG config will not require this to be done. Some times that you may want to include:

  • You've made changes to the Coppermine Photo Gallery configuration
  • You've messed up the cpmfetch_config.php file beyond repair
  • Bridged CPG with a forum of some sort

Debug Information:
If you have problems with this installation, you may be asked to provide all or some of the following information. Support for CpmFetch is handled on the Coppermine Photo Gallery forums in this particular board.




CpmFetch was written and is maintained by W.B.Chmura (aka Vuud). Documentation support is provided soley through the cpmfetch web site at and interactive support throught the Coppermine Photo Gallery Forums.