Advanced search  

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

Pages: [1]   Go Down

Author Topic: No full size images when running under XAMPP  (Read 6241 times)

0 Members and 1 Guest are viewing this topic.

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
No full size images when running under XAMPP
« on: September 25, 2007, 04:05:42 pm »

I'm running Coppermine 1.4.13 very succesfully on our local Historical Society website:

http://www.miltonmalsorhistory.org.uk/gallery/

I'm also running the site locally on an XAMPP installation running under WindowsXP for development purposes and to be able to demonstrate the site off-line.

XAMPP is v1.6.1 and contains PHP v4.4.6 and MySQL v5.0.37

Everything works fine under the XAMPP installation, except that full size images don't appear when you click on the intermediate size images. The image files are all in place, as are the JavaScript files.

When I first ran Coppermine on XAMPP I discovered I needed to change the MySQL database password held in the config.inc.php from the encrypted version used on the live website to its "plain language" version. Is it possible that my "full size image" problem is related, and if so how can I fix it?

Grateful for any help - searching previous postings didn't throw up any solution that worked.

Steve

« Last Edit: September 27, 2007, 12:05:16 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No full size images when running under XAMPP
« Reply #1 on: September 25, 2007, 06:17:57 pm »

Are you absolutely sure that http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#noFullsizePopup doesn't apply on the local copy? Another thing to look into is third-party-software (pop-up-blockers). Hard to advise anything else, as the site you have issues with is not available publicly.

When I first ran Coppermine on XAMPP I discovered I needed to change the MySQL database password held in the config.inc.php from the encrypted version used on the live website to its "plain language" version.
I have no idea what you mean. The database password is being stored unencrypted in that file no matter what.

Is it possible that my "full size image" problem is related, and if so how can I fix it?
I don't think so, as I'm unable to replicate that encryption issue in the first place.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: No full size images when running under XAMPP
« Reply #2 on: September 25, 2007, 07:39:18 pm »

Quote
Are you absolutely sure that http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#noFullsizePopup doesn't apply on the local copy?

Yes, I'm sure. Original images are typically set to 1024 width, intermediates are 600 wide and all the JavaScript files and references look right.

Quote
I have no idea what you mean. The database password is being stored unencrypted in that file no matter what.
I installed Coppermine using my Webhost's Fantastico facility. During the installation it created a MySQL database automatically and asked me for a password. The password I see in the website config.inc.php is not the same as the one I entered during the installation process - it appears to be an encrypted version of it. If I take a dump of the website database and Coppermine files, then load them onto my local XAMPP installation, I have to change the password in config.in.php back to the password I originally provided, otherwise I get the error :Coppermine says: "Coppermine critical error:
Unable to connect to database !" MySQL said: Access denied for user 'steve_copp1'@'localhost' (using password: YES)

I assumed this was due to some difference in the way the website MySQL database is configured compared to the local one, and wondered if that could also account for Coppermine not being able to retrieve the full size image. But I guess it's odd that it's accessing the thumbnails and intermediates OK.

I don't know if it sheds any light, but if I copy the displayimage.php parameters from the Intermediate page HTML source:
Quote
onclick="MM_openBrWindow('displayimage.php?pid=39&fullsize=1','3201946f944ebf1672','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=1029,height=672')
directly into the browser URL field it produces the Coppermine error: "The selected album/file does not exist !  "
Logged

Nibbler

  • Guest
Re: No full size images when running under XAMPP
« Reply #3 on: September 25, 2007, 07:50:45 pm »

We support Coppermine, not fantastico. Coppermine does not encrypt the password.

Do you get a popup with a broken image or no popup atall?
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: No full size images when running under XAMPP
« Reply #4 on: September 25, 2007, 08:17:24 pm »

Quote
Do you get a popup with a broken image or no popup atall?
No pop-up at all and no error messages. You click on the intermediate and nothing happens.
Logged

Nibbler

  • Guest
Re: No full size images when running under XAMPP
« Reply #5 on: September 25, 2007, 08:21:23 pm »

Did you check for javascript error messages? Check also with another web browser. Check accessing scripts.js directly in your browser. Check using another theme.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: No full size images when running under XAMPP
« Reply #6 on: September 25, 2007, 11:01:07 pm »

No JavaScript errors
Same result with Firefox and IE7
scripts.js opens fine when accessed directly by the browser
Same result in several themes, including Classic

Thanks for your help - I don't want to waste your time on an issue that is not a "show stopper" for me. If there are no obvious things left to try I'll abandon full-size images on the local version of the website and put in slightly larger Intermediates.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: No full size images when running under XAMPP
« Reply #7 on: September 27, 2007, 10:32:21 am »

I haven't quite given up yet, and did some more tests this morning.

I added a line to the MM_openBrWindow(...) function definition in scripts.js to pop-up an alert box. Clicking on the Intermediate image brings up the alert box, so at least I know the scripts.js file is being accessed OK. The problem seems to be with the window.open(...) call which does nothing.

Is there anything obvious - server config etc - which might cause this ? Or is this a more appropriate question for an XAMPP forum?
Logged

Nibbler

  • Guest
Re: No full size images when running under XAMPP
« Reply #8 on: September 27, 2007, 10:41:11 am »

Javascript is client-side, so it's nothing to do with the server config or XAMPP. Try making a simple page outside coppermine with a window.open() and see if that works.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: No full size images when running under XAMPP
« Reply #9 on: September 27, 2007, 11:40:19 am »

Nibbler - thanks for your continuing support. This gets stranger and stranger.

Here's my sequence of tests:

test.html with JS window.open(...) function defined in <head>, dragged directly to browser: OK
test.html with JS window.open(...) function defined in <head>, served by XAMPP: OK
test.html with JS window.open(...) function defined in seperate test.js file, served by XAMPP: OK
test.html with JS window.open(...) function defined in Coppermine scripts.js file, served by XAMPP: OK
test.html calling MM_openBrWindow(...) in Coppermine scripts.js file, served by XAMPP: OK

Finally, I copied and pasted the <a> tag from the source code of the Intermediate View window into my test.html file. Replaced the <img> part of the tag with "Click here" and accessed test.html via XAMPP. When I clicked, the expected image opened up at full size in a new window.

So what can be the difference between the call to MM_openBrWindow(...) from my test.html file compared to the template.html file?
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: No full size images when running under XAMPP
« Reply #10 on: September 27, 2007, 11:59:34 am »

Just tried disabling Norton Internet Security and everything now works OK; When I re-enable NIS the symptoms return. I don't quite understand this, but I guess I now have a solution.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No full size images when running under XAMPP
« Reply #11 on: September 27, 2007, 03:17:44 pm »

Ah, once again notorious "Norton Internet Security" is the culprit. This damn application interferes in places where it simply should not interfere. If you want my advice: uninstall this piece of crap. Get a decent virus scanner instead without any additional pseudo-security functionality like pop-up blocking, cookie blocking etc.
In case that you have not been aware of this: "Norton Internet Security" really is a badly programmed application, as even when using factory defaults it interferes with stuff that is hardly related to security at all. If you're not convinced yet: search the forum for "Norton Internet Security" - you'll find a lot of threads that end like this one, where people have been puzzled that things don't work as expected and after really trying everything they could think of they finally turned off this absurd piece of software and *bang* their issues were solved instantaneously.
Thanks for returning and posting your solution though.
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: No full size images when running under XAMPP
« Reply #12 on: September 27, 2007, 04:38:39 pm »

GauGau,

Just to complete the saga, it's the JS "top" and "tail" that the NIS ad/popup blocker throws into the web page that causes the problem; turning off ad & popup blocking cures the problem. It still seems odd that the same Norton JS inserted on the live website doesn't cause the problem, but a bit of "Googling" has confirmed that others also see apparently inconsistent NIS effects.

I tried various tricks like inserting <script></script> into an HTML comment - in some instances this tricks NIS to insert its JS within the comment - but nothing worked consistently.

I should have thought of NIS earlier as the likely cause; the problem is I go for a few months before the next NIS problem crops up - long enough for me to forget to be suspicious of it.

Off topic, I know, but is there a recommended alternative to NIS .... preferably "free". Im a newbie steadily making the transition to Open Source: now on Firefox, Thunderbird, Open Office, Coppermine .... it'd be nice to go one further step :)
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: No full size images when running under XAMPP
« Reply #13 on: September 27, 2007, 06:03:25 pm »

..... and finally, for anyone following this detective story:

I just discovered that the injected Norton JS does not cause a problem providing it is all there - the stuff it injects at the top of the page and the stuff it injects at the bottom after the final </html> tag.

For some reason the bottom Norton JS stuff was not being added to my Coppermine template.html file when served via XAMPP. Solution - remove the final CRLF character after the </html> tag and Norton decides it will inject the bottom stuff !!!!! Then everything works fine.

Life's difficult enough for a newbie without having to cope with Norton's idiosyncracies :)
Logged
Pages: [1]   Go Up
 

Page created in 0.042 seconds with 20 queries.