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: Lightbox Plugin Error  (Read 6622 times)

0 Members and 1 Guest are viewing this topic.

kettwicht

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Lightbox Plugin Error
« on: February 02, 2010, 09:55:36 am »

Hi all,

I am a new "customer" using the COPPERMINE GALLERY .....
I installed version CPG 1.4.25 ( stable )  and installed the LIGHT_BOX( 1.3 ) Plugin from this DOWNLOAD page via Plugin Manager.
I do tho MOD in the PLUGIN ( modify the lightbox_s.js  ) as described in your forum and everything works fine..... but the PICTURE COUNTER does not work ... !!!!!

When I look in the folder /plugins/light_box I can see a file called : error_log.

[02-Feb-2010 03:08:58] PHP Warning:  require(include/init.inc.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/freierco/public_html/xxxgalerie/plugins/light_box/addhit.php on line 7
[02-Feb-2010 03:08:58] PHP Warning:  require(include/init.inc.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/freierco/public_html/xxxgalerie/plugins/light_box/addhit.php on line 7
[02-Feb-2010 03:08:58] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required 'include/init.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/freierco/public_html/xxxgalerie/plugins/light_box/addhit.php on line 7
[02-Feb-2010 03:09:10] PHP Warning:  require(include/init.inc.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/freierco/public_html/xxxgalerie/plugins/light_box/addhit.php on line 7


For your information :
Coppermine is installed in a subdiroctory of my HP directory /xxxgalerie and this is my addhit.php in /xxxgalerie/plugins/light_box :

Code: [Select]
<?php
define
('IN_COPPERMINE'true);

require(
'include/init.inc.php');

if (isset(
$_GET['pid'])) {
  
// Add 1 to hit counter
  
$pid = (int)$_GET['pid'];
  if (!
in_array($pid$USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {
      
add_hit($pid);
      if (
count($USER['liv']) > 4array_shift($USER['liv']);
      
array_push($USER['liv'], $pid);
      
user_save_profile();
  }  
}
?>

Pls HELP a newbie ......  ???

Thx

Kettwicht
Logged

Nibbler

  • Guest
Re: Lightbox Plugin Error
« Reply #1 on: February 02, 2010, 10:10:32 am »

Edit lightbox_s.js, find

Code: [Select]
xmlHttp.open("GET", "plugins/light_box/addhit.php", false);

Change to

Code: [Select]
xmlHttp.open("GET", "index.php?file=light_box/addhit", false);
Logged

kettwicht

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Lightbox Plugin Error
« Reply #2 on: February 02, 2010, 10:17:46 am »

thx for your FAST response.......
I will check it !!!!
Logged

kettwicht

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Lightbox Plugin Error
« Reply #3 on: February 02, 2010, 12:23:42 pm »

....after changing the source of lightbox_s.js as adviced the error.log is not written anymore .... but the counter does not WORK !!!!   ???
Can there be another problem ??? ( permission , etc ..... )

I set all the required subdirectories to 755 and when I look into the database the table xxxx_pictures says hits = 0 and lasthit_ip = 'NULL' for every picture.
How can I trace this ? Any suggestions ???
Logged

Nibbler

  • Guest
Re: Lightbox Plugin Error
« Reply #4 on: February 02, 2010, 12:29:16 pm »

Admin views are not counted. If it doesn't work with a normal account post a link to your gallery.
Logged

kettwicht

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Lightbox Plugin Error
« Reply #5 on: February 02, 2010, 12:40:47 pm »

... I understand That's good,  but I run the Gallery as a CLOSED User GoupG ... No registration allowed... only guest visitors.

Will guest views also not be counted ??? If so how can i change this ??
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Lightbox Plugin Error
« Reply #6 on: February 02, 2010, 01:10:46 pm »

Guest views should be counted. Try it, log on as a guest and see what happens. If they do not count then do as suggested and post a link to your gallery.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

kettwicht

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Lightbox Plugin Error
« Reply #7 on: February 03, 2010, 09:15:47 am »

Hi Supporter,

thx for yout "FAST"  help.   IT works !!!!

Because of the FLAT rate ( static IP ) --- it seemed to me like it doesn't work.

After getting a new IP address  I tried again and ..... everything works fine up to my current mods ....  ;)

Thx again

Kettwicht


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Lightbox Plugin Error
« Reply #8 on: February 03, 2010, 10:28:07 am »

In the future (instead of waiting to be assigned a new IP address by your provider), you could test using different browsers. Alternatively, you could have used an anonymization proxy. Anyway, the issue was on your end (as you didn't understand that guests are being tracked by their IP address), so I suggest to review your attitude (the word fast in double quotes negates it in this aspect). This is not a hotline anyway. You haven't done as suggested and posted a link to your gallery although that is mandatory per board rules. Board rules explain as well how to resolve your threads properly. If you want support in the future you better respect them.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.