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] 2   Go Down

Author Topic: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading  (Read 31664 times)

0 Members and 1 Guest are viewing this topic.

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« on: October 03, 2011, 11:29:48 pm »

I upgraded from from an old 1.5 to latest cpg, I deleted all files folders except anycontent.php, config file and albums folder, I uploaded new files, I deleted install.php then I visited my gallery, everything looked nice!but when I click on a picture or login I get :

Fehler 310 (net::ERR_TOO_MANY_REDIRECTS): Zu viele Umleitungen.

Means too many redirections ... FYI : I dont have a .htaccess file.So I thought maybe my new server has some problems tried to make a fresh cpg install on another database and this one worked fine, all good, so I said maybe if I change database information to my formal cpg all will work but it didnt I had exactly the same 310 Error, so from here I am assuming the problem is with my tables, but I dont know what to edit, what do do ... I would be glad if you guys can help me!Thanks a lot

PS:Cant give the URL for security reasons, but if it is really necessary I can PM the mods.

Anrulz
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #1 on: October 05, 2011, 03:55:07 pm »

If you don't want to give us your gallery url, we cannot give you support.
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #2 on: October 05, 2011, 04:53:15 pm »

I am sorry you are right , I think editing the first post is not possible but here is the url:

www.hababam.biz/galeri

and the dir is pwd protected here it is : login/pass = galdor.hababam : thyglr

The problem is I assume with the "login"

when the debug mode is on there are lots of stuff being displayed but I turned it off now from phpmyadmin, if necessary I can turn it on again.

Thank you very much,
Anrulz
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #3 on: October 07, 2011, 10:11:11 am »

Was your gallery ever bridged to another software?
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #4 on: October 07, 2011, 03:04:15 pm »

Yes it was bridged with joomla but I disabled the bridge from the config file I set 1 to 0.
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #5 on: October 09, 2011, 04:48:13 pm »

would it be possible to switch to wordpress and let every picture like a new artivle or maybe 10 pictures as one article?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #6 on: October 11, 2011, 01:30:30 pm »

Yes it was bridged with joomla but I disabled the bridge from the config file I set 1 to 0.
Just to make sure, please reset all values in the bridge table.
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #7 on: October 11, 2011, 09:43:46 pm »

I did still same error
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #8 on: October 11, 2011, 10:28:05 pm »

I compared a fresh install config db and my config and changed allow_unlogged_access to 3, now pictures are available for viewing but unfortunately login still has the same problem
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1543
  • aka 'i-imagine'
    • Home Page
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #9 on: October 12, 2011, 12:46:37 am »

Start looking at your .htaccess files for redirects / rewrites that could interfere.

Your hosting company might be able to help.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #10 on: October 12, 2011, 09:50:11 am »

From the initial post:
I dont have a .htaccess file

To verify if there's really no redirection outside of Coppermine, please rename login.php to something different and create a new login.php file with the content
Code: [Select]
<?php echo "test"?>
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #11 on: October 12, 2011, 05:09:12 pm »

When I click login I see only the text : test, right now I am leaving it like this but I will be testing new stuff like taking the login.php from the fresh install and replacing but I dont think this will solve ...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #12 on: October 12, 2011, 07:43:44 pm »

If you see "test" it means, that the redirection issue comes from Coppermine and no redirection rule as Joe expected. Replacing all core files might fix your issue. Please give it a try, maybe some files got corrupted during upload.
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #13 on: October 12, 2011, 10:19:39 pm »

Better than replacing I deleted all the files except config, albums and anycontent, then unzipped the latest package, and later I ran the upgrade or update.php ... there is nothing to replace ... all files are core files but in phpmyadmin I see that the fresh cpg I installed has few more tables than my old installation, I dont know why ... but I dont think this causes the problem
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #14 on: October 12, 2011, 11:24:05 pm »

So it works now as expected?
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #15 on: October 12, 2011, 11:36:20 pm »

I did what I said on the 3rd of October, so it isnt working.The problem is with the database ...When I change the config file of a fresh new install cpg with my old config file which means I use the database of my old cpg, the login.php is giving the same error.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #16 on: October 13, 2011, 09:20:52 am »

Sorry I missed the
I dont think this causes the problem


If it's your database, it's impossible to say what's wrong without having a look at your database. Please attach a dump of your Coppermine database to your next reply.
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #17 on: October 13, 2011, 11:31:08 am »

Done

[attachment removed]
« Last Edit: October 14, 2011, 01:00:20 am by Joe Carver »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #18 on: October 13, 2011, 12:25:05 pm »

There's something wrong with your cookie settings (I haven't checked yet what exactly). Additionally a workaround has been implemented wrongly causing an infinite loop.

Please open login.php, find
Code: [Select]
$ref = $CPG_REFERER ? '?referer='.urlencode($CPG_REFERER) : '';and replace with
Code: [Select]
$ref = $CPG_REFERER ? '?reload_once&referer='.urlencode($CPG_REFERER) : '?reload_once';
Logged

Anrulz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS): after upgrading
« Reply #19 on: October 13, 2011, 12:41:11 pm »

This helped now there isnt the infite loop but when I login it tells me : Welcome guest ... and I dont look like logged in ... because login.php is still displayed and I dont see admin options or logged user options ... and in the login.php it gives me this warning :

Enter your username and password to login
Warning your browser does not accept script's cookies

In the database I changed "cpg15" cookie to "hababam_galeri" something like this, created my own cookie, can this be the problem?
Logged
Pages: [1] 2   Go Up
 

Page created in 0.024 seconds with 21 queries.