coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: wareagle on November 18, 2003, 04:41:50 PM

Title: bug found
Post by: wareagle 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.
Title: bug found
Post by: Tarique Sani 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
Title: hmmmm
Post by: wareagle 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
Title: bug found
Post by: hyperion 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.