Showthumb.php.png In Search New Panel Showthumb.php.png In Search New Panel
 

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

Showthumb.php.png In Search New Panel

Started by nowordneeded, March 26, 2019, 08:50:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nowordneeded

I am using the latest stable version of 1.6.05 and my gallery is here http://tamara-braun.com/gallery

As I posted in another thread, I recently moved this gallery and all was okay with a few minor glitches, however, I have the showthumb.php.png image in my search new panel instead of the thumbnail of the image. How can I revert back to the thumbnail?

Included screenshot.

Sometimes my musings are too confusing for someone not inside my head.

ron4mac

Check that permissions are correct for the October, November and December article directories.

nowordneeded

Sometimes my musings are too confusing for someone not inside my head.

ron4mac

Your uploads directory is browsable. There must be some issue with the OCTOBER, NOVEMBER and DECEMBER directories because, if there are files in them, they cannot be seen.

http://tamara-braun.com/gallery/albums/uploads/articles/Tamara%202011/

phill104

Also check ownership of the directories in question. It can get a little messed up in the move.
It is a mistake to think you can solve any major problems just with potatoes.

nowordneeded

Phill:

Sorry for my late reply. Had a ton of stuff to do today.

Explain how to take ownership?
Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

Quote from: ron4mac on March 26, 2019, 08:53:38 PM
Your uploads directory is browsable. There must be some issue with the OCTOBER, NOVEMBER and DECEMBER directories because, if there are files in them, they cannot be seen.

http://tamara-braun.com/gallery/albums/uploads/articles/Tamara%202011/

Ron:

Is that normal the directories should be browsable?
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

Quote from: nowordneeded on March 27, 2019, 07:51:02 AM
Is that normal the directories should be browsable?

It's neither normal nor abnormal ... it just depends on how the server is configured. If you want to prevent it, there are 2 methods you can use.

If your server is an Apache (type) server and allows .htaccess files, you can put this line in an .htaccess file in your uploads folder:
Options -Indexes

Or you can place a small file named index.html in EVERY directory that you don't want to be browsed. The file should contain:
<!DOCTYPE html><title></title>
Do NOT place one of these files in a directory that already has a file named index.xxx.

phill104

Quote from: nowordneeded on March 27, 2019, 02:58:00 AM
Phill:

Sorry for my late reply. Had a ton of stuff to do today.

Explain how to take ownership?


That depends on how your host sets things up.

Here is a useful guide on ownership - https://www.computerhope.com/unix/uchown.htm

When you move host using the method you have some files may have group and user permissions that the new host hasn't, or does have but with specific restrictions. If a group or user does not exist it will often be assigned to a default group, or an ftp user group. The permissions for these can be set differently especially with the complexities of suhosin. There can be files set to 777 but the rules for its group and user ownership may still prevent them from being read.

It has been a while since I used FileZilla but I think you can see, check and change ownership through its interface. You can easily do this with WinSCP and its interface.
It is a mistake to think you can solve any major problems just with potatoes.

nowordneeded

Quote from: Phill Luckhurst on March 27, 2019, 03:37:29 PM

That depends on how your host sets things up.

Here is a useful guide on ownership - https://www.computerhope.com/unix/uchown.htm

When you move host using the method you have some files may have group and user permissions that the new host hasn't, or does have but with specific restrictions. If a group or user does not exist it will often be assigned to a default group, or an ftp user group. The permissions for these can be set differently especially with the complexities of suhosin. There can be files set to 777 but the rules for its group and user ownership may still prevent them from being read.

It has been a while since I used FileZilla but I think you can see, check and change ownership through its interface. You can easily do this with WinSCP and its interface.

Ron:

The .htaccess file worked. When I click on the link that was posted to my gallery's uploads files, it goes to an error page on my main site. So problem solved.
Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

Quote from: Phill Luckhurst on March 27, 2019, 03:37:29 PM

That depends on how your host sets things up.

Here is a useful guide on ownership - https://www.computerhope.com/unix/uchown.htm

When you move host using the method you have some files may have group and user permissions that the new host hasn't, or does have but with specific restrictions. If a group or user does not exist it will often be assigned to a default group, or an ftp user group. The permissions for these can be set differently especially with the complexities of suhosin. There can be files set to 777 but the rules for its group and user ownership may still prevent them from being read.

It has been a while since I used FileZilla but I think you can see, check and change ownership through its interface. You can easily do this with WinSCP and its interface.

Ron:

The .htaccess file worked. When I click on the link that was posted to my gallery's uploads files, it goes to an error page on my main site. So problem solved.
Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

Quote from: Phill Luckhurst on March 27, 2019, 03:37:29 PM

That depends on how your host sets things up.

Here is a useful guide on ownership - https://www.computerhope.com/unix/uchown.htm

When you move host using the method you have some files may have group and user permissions that the new host hasn't, or does have but with specific restrictions. If a group or user does not exist it will often be assigned to a default group, or an ftp user group. The permissions for these can be set differently especially with the complexities of suhosin. There can be files set to 777 but the rules for its group and user ownership may still prevent them from being read.

It has been a while since I used FileZilla but I think you can see, check and change ownership through its interface. You can easily do this with WinSCP and its interface.

Phill:

My apologies for calling you Ron. I clicked on the wrong quote link. I'll read that link you gave me and see what I can figure out.

Thanks again for all your help. Once again sorry for the gaffe.
Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

So I do own the files but still displaying the green dot thing with no thumbnail. I'm pulling hair out now trying to figure out what is going on!!!!
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

Perhaps the files are corrupt. If you place the attached file in the root of your site (unzipped as filemanager.php), I'll take a look to see if I can determine your issue.
(no one but me can use the tool)

nowordneeded

Ron:

Done. Thing is I just tried the same on another moved site and the same thing is happening there.

Thanks.
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

I have determined that there was a CPG problem causing it to reject some of your files (ones with hyphens) as not valid file names. I have corrected the issue on your Tamara, Laura and Oona galleries. I will update CPG to reflect the correction.


nowordneeded

Ron:

Many thanks. I'm glad it wasn't me! LOL!!!

So will I have to re-download the CPG 1.6.05 files in order to get the fixed version, or what file(s) would I have to fix myself in order to have the corrected files?

Thank you again.
Sometimes my musings are too confusing for someone not inside my head.

ron4mac


nowordneeded

Ron, what I'm talking about is the CPG version I used to move those galleries was a fresh install of CPG version 1.6.05. So whatever was problematic in those installs was from the fresh package. What files were fixed in the package not directly on those galleries you fixed are going to have be fixed, or will that be corrected in the download for version 1.6.05?

Did I make that clear?   ???
Sometimes my musings are too confusing for someone not inside my head.

phill104

It is never a good idea to use hyphens in file names in Linux. They can be miss-interpreted as a switch. Best avoid them in future.
It is a mistake to think you can solve any major problems just with potatoes.