I think I've worked through my problems as I was gathering the doc to type this... but noting a change I didn't need to make in 1.6.2 that I didn't see doc'd anywhere... (or I missed it...)
I've been a CPG user since 2004.. and CPMFETCH since 2006 - used on multiple websites
Upgraded CPG to 1.4.21 successfully....
Attempted to upgrade CPMFETCH to 2.0.0.
Upgrades were to 'clean' directories (preserved only albums folder and database)
install.php worked fine and produced images from the gallery.
Received messages from cfimageget.php noted in post:
http://forum.coppermine-gallery.net/index.php/topic,44327.0.html :
CF-Error CF-Error
Warning: Cannot modify header information - headers already sent by (output started at /home/gmcdesign/www/bkgallery/cpmfetch_200/cpmfetch_dao.php:1314) in /home/gmcdesign/www/bkgallery/cpmfetch_200/cfimageget.php on line 260
Warning: Cannot modify header information - headers already sent by (output started at /home/gmcdesign/www/bkgallery/cpmfetch_200/cpmfetch_dao.php:1314) in /home/gmcdesign/www/bkgallery/cpmfetch_200/cfimageget.php on line 261
Noted comment about V2.1.1 being uploaded to correct problem, and found note in 2.1.1 release notes:
Changes to cfimageget
2007-06-20 05:43 wbchmura
* .: Fixes to make it compatible with cpmfetch 2.x. Also added in
normal as alias to int, cat as an alias to category.
So I upgraded to developers version 2.1.1...
install.php worked once again...
cfimageget.php now works fine...
cfig_random.php produced error:
cfimageget.php is not enabled. Edit the file to change the ALLOW_DIRECT_ACCESS line to be true.
However, cfimageget.php contains:
// CHANGE THIS TO TRUE IF PEOPLE ARE ALLOWED QUERIES THROUGH HERE
$ALLOW_DIRECT_ACCESS = true;
Chasing where the error message gets produced - the code appears to be enforcing calling script name as well:
if ($ALLOW_DIRECT_ACCESS && substr($_SERVER['SCRIPT_FILENAME'],-14) == "cfimageget.php") {
I altered code in CFIMAGEGET.PHP to:
if ($ALLOW_DIRECT_ACCESS && (substr($_SERVER['SCRIPT_FILENAME'],-14) == "cfimageget.php" ||
substr($_SERVER['SCRIPT_FILENAME'],-15) == "cfig_random.php")) {
Is there something I missed that would have eliminated the need for a code change?
The same code appears to be in place with V1.6.2 - but I didn't run into this situation there??
I understand 2.1.1 is not the stable version, but appears from doc that 2.0.0 cfimageget.php had a problem - and I heavily use this portion of the code.
Gallery is at:
http://bkgallery.gmcdesign.comYou can run install.php if needed - no overrides made to config file. (I assume I should rename this file after install to prevent others from running...)
http://bkgallery.gmcdesign.com/cpmfetch/cfimageget.php and
http://bkgallery.gmcdesign.com/cpmfetch/cfig_random.php now both produce images...
Thanks for all the efforts on CPMFETCH...
Greg