Java code does not seem to work on an installed gallery Java code does not seem to work on an installed gallery
 

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]

Main Menu

Java code does not seem to work on an installed gallery

Started by ichard.ibbotson@gmail.com, April 18, 2009, 04:01:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ichard.ibbotson@gmail.com

Hi

Have a look at this for more info...

http://www.kenshinkan.org.uk/pictures/index.php

Coppermine 1.4.20.  the gallery mostly works but when I select a single picture and click on it to enlarge it and to download a full size picture in a separate frame which is created by the browser the picture tries to download but the java code that makes it work does not start up.  Have tried this with Linux and Microsoft and Mac desktops.  Exactly the same thing every time.

Anyone make any suggestions about what is causing this ?  I've tried to contact tech support at www.nativespace.co.uk who host the site.  Their answer is that there is obviously something wrong with the Coppermine software and they tell me to use the forum here to find out how to fix it.  As far as I'm concerned it the server at the hosting company that is not configured properly.  But, any help would be a good thing.
Richard

Nibbler

You've applied some kind of modification here.


    <table>
      <tr>
            <td>
          <div id="content">
                <script language="JavaScript" type="text/JavaScript">
                 document.write(applet_tag);
                </script>
               <PARAM name="active_zoom" value="x">

               <PARAM name="filenames" value="albums/sato/sato151.jpg">                  </APPLET>
          </div>
        </td>
      </tr>
    </table>


I don't recognise which mod this is but you should reverse it if it causes issues.

Joachim Müller


ichard.ibbotson@gmail.com

Quote from: Nibbler on April 18, 2009, 04:08:13 PM
You've applied some kind of modification here.


    <table>
      <tr>
            <td>
          <div id="content">
                <script language="JavaScript" type="text/JavaScript">
                 document.write(applet_tag);
                </script>
               <PARAM name="active_zoom" value="x">

               <PARAM name="filenames" value="albums/sato/sato151.jpg">                  </APPLET>
          </div>
        </td>
      </tr>
    </table>


I don't recognise which mod this is but you should reverse it if it causes issues.

Okay, that's some help :)  Thanks.  Unfortunately I'm not much good at PHP and don't understand which bit of code to hack on.  Maybe someone out there could explain in simple terms ?  As for the upgrade root.  That's out of the question due to the fact that I don't own the account that the box that the gallery runs on.
Richard

Nibbler

You're using the CPGAnis plugin (and the sample plugin too apparently). Disable them and the problem should go away.

If you don't keep the gallery up to date it will get hacked.

Joachim Müller

Sample plugin is still enabled. Not a bright move to enable such things out of curiosity.

ichard.ibbotson@gmail.com

Quote from: Nibbler on April 19, 2009, 04:09:40 PM
You're using the CPGAnis plugin (and the sample plugin too apparently). Disable them and the problem should go away.

If you don't keep the gallery up to date it will get hacked.

Yes. Thanks for the advice.  Not much you can do when the hosting company in question refuse to allow you to upgrade to the most recent version.  I have to wait until they switch it on at their end.
Richard

phill104

What do you mean by they refuse to allow you to upgrade? I'm assuming you used their installer and they have not yet caught up?

To upgrade you only need ftp access and to spend a little time reading the docs. You do not have to wait for your host and if you do because they prevent you doing so via ftp then it is time to switch host.

Glad you got the initial problem sorted but you really need to do something about upgrading.
It is a mistake to think you can solve any major problems just with potatoes.

ichard.ibbotson@gmail.com

Quote from: Nibbler on April 19, 2009, 04:09:40 PM
You're using the CPGAnis plugin (and the sample plugin too apparently). Disable them and the problem should go away.

If you don't keep the gallery up to date it will get hacked.

Great, that sorted it out.  Thank you.  Now, if only there were a way to upgrade...
Richard

Joachim Müller

As Phill suggested: use your FTP app to access the files on your server - that's all you need. If your webhosting is deniying you access by FTP, start looking for a better webhost immediately. If you need details, start a new thread on the upgrading board after having read the docs.