Insight / Help (Non-CPG?) Insight / Help (Non-CPG?)
 

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

Main Menu

Insight / Help (Non-CPG?)

Started by Joe Carver, January 03, 2022, 01:17:44 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Joe Carver

Am stuck, and have had no previous success from host. Looking for any advice
or information before going back to them and/or moving once again.

Have installed 1.6 here for testing: Link Removed (JC)

This is what happens with all CPG installations on this hosting account:

  • Open home page, all shows fine
  • Click a thumbnail, displayimage opens without showing intermediate, no nav links
  • Click anything, server returns a 403
  • 403 from site until cache cleared

Have not yet found any obvious .htaccess files, the installation here was done on an empty DB.

Thanks in advance

phill104

Only way is to look at the logs. Whenever a 403 is generated it will be logged with the reason why. That should point you in the right direction. Sounds like some silly SE Linux feature is enabled but without the logs it is impossible to say what. Or just change host.
It is a mistake to think you can solve any major problems just with potatoes.

ron4mac

If it would help for me to take a look at your account, just PM me the credentials.

Joe Carver


ron4mac

A very strange thing happening. I've never seen it before. I used the installer_stub to do a quick install of CPG (twice) and everything functions as expected. Login, logout, make config changes, create albums ... all good.  But as soon as an image is uploaded, all requests start getting 404 errors (manifests differently on the screen). I think the solution has to be resolved by your host.

Joe Carver

Thanks for trying and your time.
(the last time I went to them with this, they claimed there were no failures
that they could see - you have confirmed more faults - thanks)

ron4mac

Looking into it more, I determined it is only when displayimage.php is being called. I'll look into it more to see if I can come up with the precise thing that is pissing off the server. The only thing that allows me to normally access anything else again in the domain (cpg or not) is to delete the cpg data cookie in my browser.

phill104

Still sounds like an SE Linux configuration problem. I wonder what the like ownerships are? See who owns the Coppermine files compared to who owned the uploaded images.
It is a mistake to think you can solve any major problems just with potatoes.

ron4mac

I've pinpointed the issue down to an apparent problem the server is having with the CPG cookie. As long as the cookie doesn't have %3D (=) on its end, things hum along. That character is used for padding characters when the cookie length is not an exact multiple of 3 characters (long story). The cookie length changes when an image has been viewed. The server is rejecting any request when it sees those padding characters on the end of the cookie.

Maybe your host will fix it if they know what the issue is. It is possible to program around but we shouldn't have to do that when there is no such issue on other servers.

ron4mac

Today I'll undo most of what I left laying around on your account. Do you want me to leave a functioning CPG instance somewhere? Or perhaps let you know the couple modifications that should get around the server issue?

ron4mac

Okay ... I cleaned things up.  I made 2 modifications at jrcarver.com (actest) that should allow the gallery to function properly (getting around the server issue).
Is it okay for me to post here an annotated snippet of your access log that shows the http requests going from good to bad? You might want to provide it to your host.

Joe Carver

Thanks, wow, and thanks again.

Yes, please feel free to post log snips. Right now I had to take a quick trip
home to post this reply as the Coppermine sites are on/off blocked at the office,
and today is one odd day back in...

For sure, I would like to have the fixes on-hand. The bad effect first occurred on
my main / home page, which still might need attention too.

Thanks again, will be back here later today.

ron4mac

Attached is the access log going from successful requests to failures. I troubleshot in a CPG instance I ran in shorescape.

Joe Carver

Great, thanks again, will copy that to the host.

Thanks for looking at the other directories - I had seen a couple of updated files,
and haven't peered in too much yet but can safely assume you put some significant
time in for the fixes.

Marked as solved.  :)