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

Author Topic: bug found  (Read 3995 times)

0 Members and 1 Guest are viewing this topic.

wareagle

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
bug found
« on: November 18, 2003, 04:41:50 pm »

I found a bug in the register module.


it seems the program does not like subdomains.

if I access potmphoto.tsfowler.com

and try to register. it gives me the accept screen and I click I agree I then get a page not found error.

it trys to go to potm.tsfowler.com/potmphoto/register.php

but if I access tsfowler.com/potmphoto/index

it works fine.
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
bug found
« Reply #1 on: November 18, 2003, 04:48:24 pm »

Not a bug with CPG but problem with your subdomain setup

The form action is set to $PHP_SELF and in your case it is potm.tsfowler.com/potmphoto/register.php

hth
Logged
SANIsoft PHP applications for E Biz

wareagle

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
hmmmm
« Reply #2 on: November 18, 2003, 05:09:05 pm »

ok where do I set up the subdomain in cpg?

all other functions work from

http://potmphoto.tsfowler.com

except register

it is the only one that changes the path to

http://potmphoto.tsfowler.com/potmphoto/register.php

the correct path is

http://tsfowler.com/potmphoto/register.php

it is only after the you click on the I agree button that it fails if using a subdomain to register a new user
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
bug found
« Reply #3 on: November 18, 2003, 08:16:46 pm »

As a work around, you can hard code the correct location into the form action spot in register.php.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 18 queries.