Trying to run CPMFetch against a Gallery at version 1.5.22.
I downloaded the newest file (from first post in this thread), uploaded the cpmfetch folder and ran the install.
The install worked and displayed photos as expected.
The cfig_random.php script however doesn't appear to be working - attempts to run it result in the error (image):
"The image "http://greggallery.gmcdesign.com/cpmfetch/cfig_random.php
" cannot be displayed because it contains errors."
The response should be the display of a random image from the gallery suitable for use in a IMG tag...
Tried setting debug in cpmfetch_config.php:
// Toggles debug mode on / off - put inline as HTML comments
$config_overrides['cfDebugMode'] = 'true';
but as this is only expected to ruturn a jpg image - no diagnostics are visible...
The cpmfetch_config.php that I had working with an old 1.4.x gallery indicated:
The current cpmfetch_config.php downloaded and installed with 1.5.22 gallery indicates:
cfig_random.php includes cfimaget.php - which contains (at 2.0.0):
// This one you need to adjust unless your galler is at http://www.youname.com/photos
// If you installed right to the root of your web site, just use a /
// TODO This should be path to config file
// $urltocpm = "/photos/";
$pathToConfigFile = "";
It appears the 'todo' was done - and now no update is needed?
the 2.1.1 version contained these comments leading me to believe "" is he correct value (cfimageget.php is in the same folder):
// This is the relative path to the cpmfetch_config.php file
// If this script is in the same directory as the cpmfetch.php file, you should be able
// to leave it blank
$pathToConfigFile = "";
I can dig deeper into this - but wanted to see if I was missing something obvious... or if there is a known problem in this area (didn't see any other hits on the board searching...)
My primary use of cpmfetch is via variations of the cfig_random.php script in image tags to pull random images meeting certain category or album criteria...
My gallery is at http://greggallery.gmcdesign.com
running Version 1.5.22
Plugins: minicms and shopcpg
You can view the error using: http://greggallery.gmcdesign.com/cpmfetch/cfig_random.php
A working version (V2.1.1 of CPMFetch against an old gallery (1.4.x) waiting for an upgrade...):http://skygallery.gmcdesign.com/cpmfetch/cfig_random.php
Thanks for the help!