coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: bryan on January 10, 2005, 12:54:44 PM

Title: How come when click on photo, cannot fullsize?
Post by: bryan on January 10, 2005, 12:54:44 PM
How come when click on photo, cannot fullsize?

http://www.bryanchung.per.sg/gallery/displayimage.php?album=41&pos=0

I cannot understand what is wrong. The status bar will show a "!" yellow sign with a javascript; error.

How do I solve this?
Title: Re: How come when click on photo, cannot fullsize?
Post by: Abbas Ali on January 10, 2005, 01:38:07 PM
Make sure that you have scripts.js file in your installation folder i.e 'gallery' folder.

If the file is not there then uzip or untar a fresh download of cpg and copy scripts.js from there to your current installation folder.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 10, 2005, 02:04:51 PM
i do see that file in my main /gallery folder ... but still same problem
Title: Re: How come when click on photo, cannot fullsize?
Post by: Nibbler on January 10, 2005, 02:21:15 PM
http://www.bryanchung.per.sg/gallery/scripts.js

I don't know what a 406 is exactly, but it doesn't sound good.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 10, 2005, 02:23:00 PM
anyone knows?
Title: Re: How come when click on photo, cannot fullsize?
Post by: Casper on January 10, 2005, 10:27:11 PM
try replacing it with a fresh copy, in case it is corrupted
Title: Re: How come when click on photo, cannot fullsize?
Post by: kegobeer on January 10, 2005, 11:03:07 PM
Here are three links that may help.

What is a 406 error?

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Two possible solutions, both are related to host security settings.

http://www.pmachine.com/forum/threads.php?id=26248_0_16_0_C
http://forums.webattention.net/archive/index.php/t-235.html
Title: Re: How come when click on photo, cannot fullsize?
Post by: foster117 on January 10, 2005, 11:44:26 PM
I have also the same problem. But without error message.

http://www.sohva.ee/testzone/gallery/cpg1.3.2/cpg132/index.php

Anyone?
Title: Re: How come when click on photo, cannot fullsize?
Post by: kegobeer on January 11, 2005, 01:01:46 AM
In config, what do you have in the ecards more pic target?
Title: Re: How come when click on photo, cannot fullsize?
Post by: kegobeer on January 11, 2005, 04:13:32 AM
You should also check your server logs to see if there are any error messages related to Coppermine.

Also, enable debug and notices in your config settings.  Please post your server setup: Server, OS, PHP version, MySQL version.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 03:32:08 PM
Quote from: kegobeer on January 11, 2005, 01:01:46 AM
In config, what do you have in the ecards more pic target?

this is under?
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 03:35:54 PM
Quote from: kegobeer on January 11, 2005, 04:13:32 AM
You should also check your server logs to see if there are any error messages related to Coppermine.

Also, enable debug and notices in your config settings.  Please post your server setup: Server, OS, PHP version, MySQL version.

Ok I ON both and it looks quite bad.  ??? I Enable debug mode for EVERYONE. So you can revisit http://www.bryanchung.per.sg/gallery/index.php to take a look.

USER:
------------------
Array
(
    [ID] => 3abba7a1356a0012563e91f37e8abbc2
    [am] => 1
    [liv] => Array
        (
           
Title: Re: How come when click on photo, cannot fullsize?
Post by: kegobeer on January 14, 2005, 04:20:41 PM
You may not see the 406 error, but you do have the same problem.  You need to do what I suggested in my earlier posts - look at your logs and visit the links I provided.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 05:10:22 PM
So my above didn't help?
Title: Re: How come when click on photo, cannot fullsize?
Post by: kegobeer on January 14, 2005, 05:37:34 PM
No.  There was no useful information in the debug output.  Did you visit the links and try those suggestions yet?
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 05:39:54 PM
yeah i read .. but can you tell me more?

What should I ask my server provider about?

???
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 06:18:12 PM
Gosh .. so many errors when I on the mode ..

Notice: Undefined index: cat_thumb in /home/bryan/public_html/gallery/themes/rainy_day/theme.php on line 1152

Notice: Undefined index: cat_albums in /home/bryan/public_html/gallery/themes/rainy_day/theme.php on line 1154


what's all these?
Title: Re: How come when click on photo, cannot fullsize?
Post by: Joachim Müller on January 14, 2005, 06:43:10 PM
you were meant to enable debug_mode - nobody said you were to enables notices as well, since they can be safely ignored if they don't mean anything to you. Only warings and hard errors are important to you. Go to coppermine config and disable notices, but leave debug_mode turned on. Then do as kegobeer suggested above.

Joachim
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 06:47:38 PM
I am not sure what I am suppose to tell my server providers ...
Title: Re: How come when click on photo, cannot fullsize?
Post by: Joachim Müller on January 14, 2005, 06:55:32 PM
Bryan,

is this a language issue? I told you what to do, please post what exactly you don't understand and I'll try to put it in other words.

Joachim
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 06:57:44 PM
Ok.

Look.

I went to http://forums.webattention.net/archive/index.php/t-235.html and I cannot see how any thing there can help me since I am not the server provider. I am a client. I contacted my server provider and they said they needed more information so I too refered them to the above URL.

Like what do I actually I have to tell them to look into to help me get this solve?

Bryan
Title: Re: How come when click on photo, cannot fullsize?
Post by: kegobeer on January 14, 2005, 07:28:18 PM
Both links I provided explain that those errors are server related security settings.  Your host needs to look at any recent changes to security they implemented that would cause 406 errors.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 07:32:07 PM
ok i will mail them that line. thanks.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 14, 2005, 07:38:02 PM
So if they can't do anything about it .. I guess this can't be solve too right?
Title: Re: How come when click on photo, cannot fullsize?
Post by: kegobeer on January 14, 2005, 08:56:06 PM
There may be a solution, but I don't have any ideas.  Unfortunately, everything I've read points to the server and not the website content.  This thread will stay open and maybe someone else will have a possible fix to try.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 15, 2005, 02:52:58 AM
Quote
Hi Bryan,

It seems that the mod_security matched /scripts string in url.
Please rename scripts.js to other name and it should work.


Best Regards,

Ok that was the reply I got from my server side. So now if I do rename scripts.js ... where do I go to edit the template to match the new filename?
Title: Re: How come when click on photo, cannot fullsize?
Post by: Abbas Ali on January 15, 2005, 06:00:09 AM
Edit the file template.html in the themes/themeName/ folder.

Find this code
<script type="text/javascript" src="scripts.js"></script>
and replace scripts.js with the new file name.

You will have to do this for each theme.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 15, 2005, 06:10:56 AM
thanks sir .. any filename would be fine right?
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 15, 2005, 06:17:42 AM
oh I got it fix! Great. Thanks everyone for your patience and help!
Title: Re: How come when click on photo, cannot fullsize?
Post by: Abbas Ali on January 15, 2005, 06:19:16 AM
You are most welcome.
Title: Re: How come when click on photo, cannot fullsize?
Post by: bryan on January 16, 2005, 05:27:23 AM
maybe to prevent this from happening, the future upgrades should rename scripts.js to something else ...
Title: Re: How come when click on photo, cannot fullsize?
Post by: dan.park on February 11, 2005, 08:26:46 AM
I find this happens an aweful lot, so much so it's annoying.

One thing tho, if I let the page load fully not just the layout/picture, I mean till the progress bar in the bottom right of the IE window stops. Then I click on the picture that I want to be displayed full screen, it works 100% of the time.

http://www.icompletedtheinternet.com/gallery/

That's a link to my gallery, on a supposed fast server, yet it takes ages for the scripts to load/initialise.
Title: Re: How come when click on photo, cannot fullsize?
Post by: Tranz on February 11, 2005, 08:38:11 AM
I guess the page loaded too quickly for me to even see the progress bar. The longest delay was getting to your gallery but after that it was really quick with DSL. A trace to your server showed some slowness in the last few hops.