Re: CF-ERROR during installation Re: CF-ERROR during installation
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Re: CF-ERROR during installation

Started by faminsk, July 12, 2007, 05:00:33 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

faminsk

Hello,

I am getting this same problem when I first installed cpmFetch.

    * The Exact error message.  I have attached a screen shot of the install.php screen I get after the install.
    * What version of coppermine you are using - 1.4.12
    * What version of CoppermineFetch you are using - 2.0.0
    * A link to your website and gallery  - http://www.sultryangel.com/coppermine
    * A link to an example of the problem http://sultryangel.com/coppermine/cpmfetch/install.php?do=install&force=true
    * How computer savvy you are (newbie, intermediate, damn good) -
    * What kind of web server you are running on (if known) - UNIX

I have done a review of the documentation, and have done a search through this forum.  I have done many searches on this board.

Based on some of the things I have read, it looks like this might have something to do with .css, but I am not sure which .css file I should look at.  I do not see one in the cpmFetch directory.  Does it use the installer.css from Coppermine?

The blue boxes link into the gallery and bring up the pictures, but I do not know what the CF Error is referring to.

Thanks for your help

faminsk

Quote from: faminsk on July 12, 2007, 05:00:33 PM
Hello,

I am getting this same problem when I first installed cpmFetch.

    * The Exact error message.  I have attached a screen shot of the install.php screen I get after the install.
    * What version of coppermine you are using - 1.4.12
    * What version of CoppermineFetch you are using - 2.0.0
    * A link to your website and gallery  - http://www.sultryangel.com/coppermine
    * A link to an example of the problem http://sultryangel.com/coppermine/cpmfetch/install.php?do=install&force=true
    * How computer savvy you are (newbie, intermediate, damn good) -
    * What kind of web server you are running on (if known) - UNIX

I have done a review of the documentation, and have done a search through this forum.  I have done many searches on this board.

Based on some of the things I have read, it looks like this might have something to do with .css, but I am not sure which .css file I should look at.  I do not see one in the cpmFetch directory.  Does it use the installer.css from Coppermine?

The blue boxes link into the gallery and bring up the pictures, but I do not know what the CF Error is referring to.

Thanks for your help

While waiting for a response I went to look at the code that was generated on the install.php page.  It refers to some additional errors that did not show up on that screen and identified what the CF Errors are.  Here is what it showed me.

<p>Test images - found a total of 5 images:<br>

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 <a href="http://forum.coppermine-gallery.net/index.php?board=87.0" target="_blank">by clicking here</a>.</p>

<div align="center">
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .gif  File://albums/userpics/10014/thumb_AngelOnPen06.gif-->
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .jpg  File://albums/userpics/10014/thumb_beach_sunrise.jpg-->
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .jpg  File://albums/userpics/10014/thumb_305832083dhKtZm_fs.jpg-->
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .jpg  File://albums/userpics/10014/thumb_1.jpg-->
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .gif  File://albums/userpics/10014/thumb_AngelOnPen06.gif-->
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .jpg  File://albums/userpics/10014/thumb_beach_sunrise.jpg-->

CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .jpg  File://albums/userpics/10014/thumb_305832083dhKtZm_fs.jpg-->
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .jpg  File://albums/userpics/10014/thumb_1.jpg-->
<table>

<tbody><tr>

<td><a href="http://www.sultryangel.com/coppermine/displayimage.php?pos=-133"><img src="http://www.sultryangel.com/coppermine/" alt="AngelOnPen06.gif" title="AngelOnPen06.gif"></a><br><br>0 views</td>
<td><a href="http://www.sultryangel.com/coppermine/displayimage.php?pos=-113"><img src="http://www.sultryangel.com/coppermine/" alt="beach_sunrise.jpg" title="beach_sunrise.jpg"></a><br><br>0 views</td>
<td><a href="http://www.sultryangel.com/coppermine/displayimage.php?pos=-112"><img src="http://www.sultryangel.com/coppermine/" alt="305832083dhKtZm_fs.jpg" title="305832083dhKtZm_fs.jpg"></a><br><br>0 views</td>
<td><a href="http://www.sultryangel.com/coppermine/displayimage.php?pos=-111"><img src="http://www.sultryangel.com/coppermine/" alt="1.jpg" title="1.jpg"></a><br><br>0 views</td>



I have looked into that folder and the files are present.  I also checked the permissions on those files and they are set to "666" (maybe that's the problem, it's Damien!).

I will check on the permissions on the folders further up the chain to make sure that these files can be accessed.

Looking forward to your response or any other ideas.

Joachim Müller

Split from another thread. Don't hijack other's threads!

faminsk

This is an answer to my question?  Is there anything else that I can do or try?  I am kinda stumped at the mooment.  The pics show up in the gallery fine.  Can you point me in the right direction?

pyrosteve

I would also be interested in how to solve this problem as I have just tried to install cpmFetch and have an identical problem with the CF Error :S

Thanks :)

pyrosteve

As far as I can see everything works ok, when clicking the "red cross thumbnails" the correct picture opens, the name is correct etc, apart from the fact that the img src for each of the thumbnails seems to only point to the main coppermine directory rather than pointing to the correct albums folder where the thumbnail resides...

Any ideas on fixing this issue? If it cant be solved from faminsk post I can post all of the error information for my gallery later on :)

Nibbler

$_SERVER["SCRIPT_FILENAME"] does not correspond to the filename of the script on your server. This is why cpmfetch calculates the path incorrectly.

This way works:
http://sultryangel.com/coppermine/cpmfetch/install.php?do=install-path&force=true&path=/www/sultryangel/coppermine

You could add


$_SERVER["SCRIPT_FILENAME"] = $_SERVER['PHP_SELF'];


before you call the script as a workaround.

pyrosteve

I managed to fix this after reading your reply Nibbler, I found that one of the paths in the cpmfetch_config.php file was wrong:

'filesystem_path_to_cpg' => ' Path Here ',

was pointing to just a root drive letter such as 'D', I changed this to the correct path of the coppermine gallery and all works fine, remembering to use / rather than / in the path :)

Thank you for your help.





faminsk

Quote from: Nibbler on July 17, 2007, 02:27:20 AM
$_SERVER["SCRIPT_FILENAME"] does not correspond to the filename of the script on your server. This is why cpmfetch calculates the path incorrectly.

This way works:
http://sultryangel.com/coppermine/cpmfetch/install.php?do=install-path&force=true&path=/www/sultryangel/coppermine

You could add


$_SERVER["SCRIPT_FILENAME"] = $_SERVER['PHP_SELF'];


before you call the script as a workaround.


Can you please tell me where this code would go?  What program and where?  I appreciate the help


faminsk

Quote from: faminsk on July 17, 2007, 03:00:46 PM


Ooops...put the question inside the quote...

Could you please tell me where I could put this fix?  I will look through all the cpmFetch programs to try and figure it out myself.  I want to try this in my forum next to see if I can get it to work. 

Would it look something like this if I inserted the code where I wanted to call cpmFetch?

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

faminsk

Quote from: faminsk on July 17, 2007, 03:07:40 PM
Ooops...put the question inside the quote...

Could you please tell me where I could put this fix?  I will look through all the cpmFetch programs to try and figure it out myself.  I want to try this in my forum next to see if I can get it to work. 

Would it look something like this if I inserted the code where I wanted to call cpmFetch?

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


I tried this code on my forum, got the CF Error again like the install.  I will look at the config file again closely to see if i can get the path correct, that seems to be the issue.


faminsk

OK, I have spent hours pouring through the cpmfetch_config.php file and the documentation.  I still am getting the CF Errors and the links with the blue boxes. 

Something is changing my cpmfetch_config.php file and resetting the overrides I set.  Here is the config section of the file after my changes.

Quote==============================
USER OVERRIDE SETTINGS GO HERE
==============================

These settings placed here will override settings elsewhere in the
config file.  I have placed commented out copies of the cpmFetch created
values for convienence along with a brief comment.
*/


$config_overrides = array();
// if not bridged leave as false, if is bridged you can put in a valid bridge name or just true for a default approach to bridging.
//  $config_overrides['cfBridgedTo'] = 'smf10';

// Consider non-public albums as displayable
//  $config_overrides['cfShowPrivate'] = 'false';

// Toggles debug mode on / off - put inline as HTML comments
//  $config_overrides['cfDebugMode'] = 'false';

// How to format dates
//  $config_overrides['cfDateFormatString'] = 'd-M-Y';

// A date format as defined at http://www.php.net/manual/en/function.date.php
//  $config_overrides['cfDefaultDateFormatString'] = 'd-M-Y';

// What percentage will be evaluated as being top rated
//  $config_overrides['cfTopPercentForTopRated'] = '10';

// What percentage will be evaluated as being most viewed
//  $config_overrides['cfTopPercentForMostViewed'] = '25';

// Filters out file types to display or not-display
//  $config_overrides['cfFileTypeFilter'] = '';

// Do not touch unless you really need too
//  $config_overrides['cfShowPrivateOnSqlDefault'] = ' ';

// Do not touch unless you really need too
//  $config_overrides['cfShowPrivateOffSqlDefault'] = 'AND ((a.visibility = 0 OR a.visibility IS NULL) AND (a.alb_password IS NULL OR a.alb_password = "")) ';

// What size image to show?
//  $config_overrides['cfDefaultImageSize'] = 'thumb';

//
//  $config_overrides['cfENABLE_cfrssget'] = 'false';

//
//  $config_overrides['cfENABLE_cfimageget'] = 'false';

//
//  $config_overrides['cfUseExistingDBConnection'] = 'false';

//  $config_overrides['cfSQLPictureSelect'] = 'p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_name AS pOwner_name, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, p.pid AS pPid, p.pic_rating AS pPic_Rating,  p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, p.user1 as pUser1, p.user2 as pUser2, p.user3 as pUser3, p.user4 as pUser4, c.cid as cCid, c.name as cName, c.description as cDescription, c.pos as cPos, c.parent as cParent, c.thumb as cThumb';

//  $config_overrides['cfSQLAlbumSelect'] = 'a.aid AS aAid, a.title AS aTitle, a.description AS aDescription, a.visibility as aVisibility, a.pos as aPos, a.category as aCategory, a.thumb as aThumb, a.keyword as aKeyword';

//  $config_overrides['cfSQLUserSelect13'] = 'u.user_lastvisit AS uUser_lastvisit, u.user_regdate AS uUser_regdate, u.user_email AS uUser_email, u.user_website AS uUser_website, u.user_location AS uUser_location, u.user_interests AS uUser_interest, u.user_occupation AS uUser_occupation';

//  $config_overrides['cfSQLUserSelect'] = 'u.user_lastvisit AS uUser_lastvisit,u.user_regdate AS uUser_regdate,u.user_email AS uUser_email,u.user_profile1 AS uUser_profile1,u.user_profile2 AS uUser_profile2,u.user_profile3 AS uUser_profile3,u.user_profile4 AS uUser_profile4,u.user_profile5 AS uUser_profile5,u.user_profile6 AS uUser_profile6';

// **CAREFUL** SQL to link picture to user
//  $config_overrides['cfSQLUserDataLink'] = ' ';

// **CAREFUL** Name of user table to seek user information in
//  $config_overrides['cfSQLUserTableName'] = 'cpg1411_users';

// File system path to your Coppermine Photo Gallery
$config_overrides['filesystem_path_to_cpg'] = '/www/sultryangel/coppermine';


// Your sites domain name
//  $config_overrides['domain_name'] = 'www.sultryangel.com';

// Full URL to your CPG gallerys album directory
//  $config_overrides['cpg_album_url'] = 'http://sultryangel.com/coppermine/albums/';

// Full URL to your CPG gallery
//  $config_overrides['cpg_url'] = 'http://sultryangel.com/coppermine/';



/*
===========================================
CPMFETCH DEFAULT VALUES - NO NEED TO CHANGE
===========================================

These settings were created by the cpmFetch install program.  If you want to override
any of these, you can add them into the config_overrides section.

*/
$config_cpmfetchSettings = array(
   'cfBridgedTo' => 'smf10',
   'cfShowPrivate' => 'false',
   'cfDebugMode' => 'false',
   'cfDateFormatString' => 'd-M-Y',
   'cfDefaultDateFormatString' => 'd-M-Y',
   'cfTopPercentForTopRated' => '10',
   'cfTopPercentForMostViewed' => '25',
   'cfFileTypeFilter' => '',
   'cfShowPrivateOnSqlDefault' => ' ',
   'cfShowPrivateOffSqlDefault' => 'AND ((a.visibility = 0 OR a.visibility IS NULL) AND (a.alb_password IS NULL OR a.alb_password = "")) ',
   'cfDefaultImageSize' => 'thumb',
   'cfENABLE_cfrssget' => 'false',
   'cfENABLE_cfimageget' => 'false',
   'cfUseExistingDBConnection' => 'false',
   'cfSQLPictureSelect' => 'p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_name AS pOwner_name, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, p.pid AS pPid, p.pic_rating AS pPic_Rating,  p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, p.user1 as pUser1, p.user2 as pUser2, p.user3 as pUser3, p.user4 as pUser4, c.cid as cCid, c.name as cName, c.description as cDescription, c.pos as cPos, c.parent as cParent, c.thumb as cThumb',
   'cfSQLAlbumSelect' => 'a.aid AS aAid, a.title AS aTitle, a.description AS aDescription, a.visibility as aVisibility, a.pos as aPos, a.category as aCategory, a.thumb as aThumb, a.keyword as aKeyword',
   'cfSQLUserSelect13' => 'u.user_lastvisit AS uUser_lastvisit, u.user_regdate AS uUser_regdate, u.user_email AS uUser_email, u.user_website AS uUser_website, u.user_location AS uUser_location, u.user_interests AS uUser_interest, u.user_occupation AS uUser_occupation',
   'cfSQLUserSelect' => 'u.user_lastvisit AS uUser_lastvisit,u.user_regdate AS uUser_regdate,u.user_email AS uUser_email,u.user_profile1 AS uUser_profile1,u.user_profile2 AS uUser_profile2,u.user_profile3 AS uUser_profile3,u.user_profile4 AS uUser_profile4,u.user_profile5 AS uUser_profile5,u.user_profile6 AS uUser_profile6',
   'cfSQLUserDataLink' => ' ',
   'cfSQLUserTableName' => 'cpg1411_users',
   'filesystem_path_to_cpg' => '/',
   'domain_name' => 'www.sultryangel.com',
   'cpg_album_url' => 'http://sultryangel.com/coppermine/albums/',
   'cpg_url' => 'http://sultryangel.com/coppermine/'
);

I go and execute - http://sultryangel.com/coppermine/cpmfetch/install.php
and it doesn't work, when I look at the config file it now looks like this:


Quote==============================
USER OVERRIDE SETTINGS GO HERE
==============================

These settings placed here will override settings elsewhere in the
config file.  I have placed commented out copies of the cpmFetch created
values for convienence along with a brief comment.
*/


$config_overrides = array();
// if not bridged leave as false, if is bridged you can put in a valid bridge name or just true for a default approach to bridging.
//  $config_overrides['cfBridgedTo'] = 'smf10';

// Consider non-public albums as displayable
//  $config_overrides['cfShowPrivate'] = 'false';

// Toggles debug mode on / off - put inline as HTML comments
//  $config_overrides['cfDebugMode'] = 'false';

// How to format dates
//  $config_overrides['cfDateFormatString'] = 'd-M-Y';

// A date format as defined at http://www.php.net/manual/en/function.date.php
//  $config_overrides['cfDefaultDateFormatString'] = 'd-M-Y';

// What percentage will be evaluated as being top rated
//  $config_overrides['cfTopPercentForTopRated'] = '10';

// What percentage will be evaluated as being most viewed
//  $config_overrides['cfTopPercentForMostViewed'] = '25';

// Filters out file types to display or not-display
//  $config_overrides['cfFileTypeFilter'] = '';

// Do not touch unless you really need too
//  $config_overrides['cfShowPrivateOnSqlDefault'] = ' ';

// Do not touch unless you really need too
//  $config_overrides['cfShowPrivateOffSqlDefault'] = 'AND ((a.visibility = 0 OR a.visibility IS NULL) AND (a.alb_password IS NULL OR a.alb_password = "")) ';

// What size image to show?
//  $config_overrides['cfDefaultImageSize'] = 'thumb';

//
//  $config_overrides['cfENABLE_cfrssget'] = 'false';

//
//  $config_overrides['cfENABLE_cfimageget'] = 'false';

//
//  $config_overrides['cfUseExistingDBConnection'] = 'false';

//  $config_overrides['cfSQLPictureSelect'] = 'p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_name AS pOwner_name, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, p.pid AS pPid, p.pic_rating AS pPic_Rating,  p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, p.user1 as pUser1, p.user2 as pUser2, p.user3 as pUser3, p.user4 as pUser4, c.cid as cCid, c.name as cName, c.description as cDescription, c.pos as cPos, c.parent as cParent, c.thumb as cThumb';

//  $config_overrides['cfSQLAlbumSelect'] = 'a.aid AS aAid, a.title AS aTitle, a.description AS aDescription, a.visibility as aVisibility, a.pos as aPos, a.category as aCategory, a.thumb as aThumb, a.keyword as aKeyword';

//  $config_overrides['cfSQLUserSelect13'] = 'u.user_lastvisit AS uUser_lastvisit, u.user_regdate AS uUser_regdate, u.user_email AS uUser_email, u.user_website AS uUser_website, u.user_location AS uUser_location, u.user_interests AS uUser_interest, u.user_occupation AS uUser_occupation';

//  $config_overrides['cfSQLUserSelect'] = 'u.user_lastvisit AS uUser_lastvisit,u.user_regdate AS uUser_regdate,u.user_email AS uUser_email,u.user_profile1 AS uUser_profile1,u.user_profile2 AS uUser_profile2,u.user_profile3 AS uUser_profile3,u.user_profile4 AS uUser_profile4,u.user_profile5 AS uUser_profile5,u.user_profile6 AS uUser_profile6';

// **CAREFUL** SQL to link picture to user
//  $config_overrides['cfSQLUserDataLink'] = ' ';

// **CAREFUL** Name of user table to seek user information in
//  $config_overrides['cfSQLUserTableName'] = 'cpg1411_users';

// File system path to your Coppermine Photo Gallery
//  $config_overrides['filesystem_path_to_cpg'] = '/';


// Your sites domain name
//  $config_overrides['domain_name'] = 'www.sultryangel.com';

// Full URL to your CPG gallerys album directory
//  $config_overrides['cpg_album_url'] = 'http://sultryangel.com/coppermine/albums/';

// Full URL to your CPG gallery
//  $config_overrides['cpg_url'] = 'http://sultryangel.com/coppermine/';



/*
===========================================
CPMFETCH DEFAULT VALUES - NO NEED TO CHANGE
===========================================

These settings were created by the cpmFetch install program.  If you want to override
any of these, you can add them into the config_overrides section.

*/
$config_cpmfetchSettings = array(
   'cfBridgedTo' => 'smf10',
   'cfShowPrivate' => 'false',
   'cfDebugMode' => 'false',
   'cfDateFormatString' => 'd-M-Y',
   'cfDefaultDateFormatString' => 'd-M-Y',
   'cfTopPercentForTopRated' => '10',
   'cfTopPercentForMostViewed' => '25',
   'cfFileTypeFilter' => '',
   'cfShowPrivateOnSqlDefault' => ' ',
   'cfShowPrivateOffSqlDefault' => 'AND ((a.visibility = 0 OR a.visibility IS NULL) AND (a.alb_password IS NULL OR a.alb_password = "")) ',
   'cfDefaultImageSize' => 'thumb',
   'cfENABLE_cfrssget' => 'false',
   'cfENABLE_cfimageget' => 'false',
   'cfUseExistingDBConnection' => 'false',
   'cfSQLPictureSelect' => 'p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_name AS pOwner_name, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, p.pid AS pPid, p.pic_rating AS pPic_Rating,  p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, p.user1 as pUser1, p.user2 as pUser2, p.user3 as pUser3, p.user4 as pUser4, c.cid as cCid, c.name as cName, c.description as cDescription, c.pos as cPos, c.parent as cParent, c.thumb as cThumb',
   'cfSQLAlbumSelect' => 'a.aid AS aAid, a.title AS aTitle, a.description AS aDescription, a.visibility as aVisibility, a.pos as aPos, a.category as aCategory, a.thumb as aThumb, a.keyword as aKeyword',
   'cfSQLUserSelect13' => 'u.user_lastvisit AS uUser_lastvisit, u.user_regdate AS uUser_regdate, u.user_email AS uUser_email, u.user_website AS uUser_website, u.user_location AS uUser_location, u.user_interests AS uUser_interest, u.user_occupation AS uUser_occupation',
   'cfSQLUserSelect' => 'u.user_lastvisit AS uUser_lastvisit,u.user_regdate AS uUser_regdate,u.user_email AS uUser_email,u.user_profile1 AS uUser_profile1,u.user_profile2 AS uUser_profile2,u.user_profile3 AS uUser_profile3,u.user_profile4 AS uUser_profile4,u.user_profile5 AS uUser_profile5,u.user_profile6 AS uUser_profile6',
   'cfSQLUserDataLink' => ' ',
   'cfSQLUserTableName' => 'cpg1411_users',
   'filesystem_path_to_cpg' => '/',
   'domain_name' => 'www.sultryangel.com',
   'cpg_album_url' => 'http://sultryangel.com/coppermine/albums/',
   'cpg_url' => 'http://sultryangel.com/coppermine/'
);

I have checked the permissions and they are set to 664.  I am at a loss now.

Please advise.

Thanks in advance.



faminsk

Just an update....i finally got the config file righ and have it working on my forum.  The install.php program will not work because it changes the path back.  Now my problem is when I click on the images it should take me to the gallery, but it wants me to log in.  I will search some other posts about bridging problems.

Thanks