Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: displaying latest images - no images or error messages  (Read 4301 times)

0 Members and 1 Guest are viewing this topic.

debraguk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
displaying latest images - no images or error messages
« on: March 30, 2010, 03:21:10 pm »

I am using cpmfetch in my sidebar  and previously it was working. I am usig the following code

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

If I change gallery to cpg I get the following message

Quote
Warning: include(./cpg/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/divahos/public_html/alib/wp-content/themes/ali/footer.php on line 37

looking at the install.php file images show up and I am told to use

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

My cpmfetch is installed in the gallery directory but that just gives me the following error

Quote
Warning: include(./cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/divahos/public_html/alib/wp-content/themes/ali/footer.php on line 37

Warning: include(./cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/divahos/public_html/alib/wp-content/themes/ali/footer.php on line 37

Warning: include() [function.include]: Failed opening './cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/divahos/public_html/alib/wp-content/themes/ali/footer.php on line 37
Error: config file ./cpmfetch_config.php specified but was not found.

Debug

Quote
CpmFetch Install Script version 2.0.0
do=
path=
force=
Running default command: install
* * BEGIN SERVER SETTINGS * *
SERVER DOCUMENT_ROOT: /home/divahos/public_html/alib
SERVER GATEWAY_INTERFACE: CGI/1.1
SERVER HTTP_ACCEPT: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application
/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, applica
tion/vnd.ms-xpsdocument, application/xaml+xml, */*
SERVER HTTP_ACCEPT_ENCODING: gzip, deflate
SERVER HTTP_ACCEPT_LANGUAGE: en-gb
SERVER HTTP_CACHE_CONTROL: max-age=43200
SERVER HTTP_CONNECTION: keep-alive
SERVER HTTP_COOKIE: wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_0
0445485435d2ac5f9e5a3e51168f533=admin%7C1270111246%7C129971e26ca60ea026e5c7db7a4
b97e2; wp-settings-time-1=1269944444; 351f56fe5f94fbe9f3111e052642b406=70f57f095
5c0b04b06a29368e1b56a68; coppermine_data=YTo0OntzOjI6IklEIjtzOjMyOiJiYzJlYmVhYjM
4MjljZDBlOTZhNzE2MjE1OTc2YmRiNiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czoxMDoiZW5nbGl
zaF9nYiI7czozOiJsaXYiO2E6NTp7aTowO3M6MjoiNTkiO2k6MTtzOjM6IjEzMCI7aToyO3M6MzoiMTI
5IjtpOjM7czozOiIxMTYiO2k6NDtzOjI6Ijc1Ijt9fQ%3D%3D; wp-settings-1=editor%3Dtinymc
e; logintheme=cpanel; cprelogin=no; cpsession=Hgo8_ToEu1EDScoSgHvvl33wM8kCqOLeRL
mg9WczogYkECXBz3apSs20RBSzI06B
SERVER HTTP_HOST: alib.diva-host.com
SERVER HTTP_REFERER: http://alib.diva-host.com/gallery/cpmfetch/
SERVER HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Tride
nt/4.0; GTB6.4; FunWebProducts; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET
 CLR 3.5.30729; .NET CLR 1.1.4322)
SERVER PATH: /bin:/usr/bin
SERVER QUERY_STRING:
SERVER REDIRECT_STATUS: 200
SERVER REDIRECT_URL: /gallery/cpmfetch/install.php
SERVER REMOTE_ADDR: 149.254.58.13
SERVER REMOTE_PORT: 15753
SERVER REQUEST_METHOD: GET
SERVER REQUEST_URI: /gallery/cpmfetch/install.php
SERVER SCRIPT_FILENAME: /home/divahos/public_html/alib/gallery/cpmfetch/install.
php
SERVER SCRIPT_NAME: /gallery/cpmfetch/install.php
SERVER SERVER_ADDR: 69.73.170.11
SERVER SERVER_ADMIN: webmaster@alib.diva-host.com
SERVER SERVER_NAME: alib.diva-host.com
SERVER SERVER_PORT: 80
SERVER SERVER_PROTOCOL: HTTP/1.1
SERVER SERVER_SIGNATURE: Apache/1.3.41 Server at alib.diva-host.com Por
t 80

SERVER SERVER_SOFTWARE: Apache/1.3.41 (Unix) mod_gzip/1.3.26.1a mod_log_bytes/1.
2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31
 OpenSSL/0.9.8b
SERVER PHP_SELF: /gallery/cpmfetch/install.php
SERVER REQUEST_TIME: 1269954968
SERVER argv: Array
SERVER argc: 0
* * END SERVER SETTINGS * *
Found config file at ../include/config.inc.php
Found init file at ../include/init.inc.php
Checking for existing cpmfetch config file
Found cpmfetch_config.php file - now reading
Config file is version 2.0.0 read in
Last flagged version is 1.9.9
Config written version same or newer than last flagged version - reinstall optio
nal
Producing output screen and exiting

I'm not sure what is going on.
Logged

debraguk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: displaying latest images - no images or error messages
« Reply #1 on: March 30, 2010, 03:28:37 pm »

UPDATE

Just realised it's due to have cpmfetch in a post at the same time. I thought you could use it more than once?
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.