Author Topic: New user Registration, username or email already exists, brings up index page  (Read 15468 times)

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+

so it Will always go to the home page, unless the action url is changed!

on my site here is the action

<form action="/index.php" method="post" name="adminForm">

it does NOT redirect
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
here you go
admin.user_address_form.php

   <!-- Registration form -->
   <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post" name="adminForm">
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

leeburstroghm

  • Beginner
  • *
  • Posts: 41
Nope, that is not where it is at. I changed that form action. I even added I AM HERE under the form just to make sure its the correct form.

<fieldset>
   <legend><span class="sectiontableheader"><?php echo $VM_LANG->_('PHPSHOP_SHOPPER_FORM_SHIPTO_LBL') ?></span></legend>

   <!-- Registration form -->
   <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post" name="adminForm">
    I AM HERE!!

This does not change the registration form!!!!
"If you make yourselves sheep, the wolves will eat you." -- Benjamin Franklin
Knowledge is the price for freedom. http://www.1215.org]http://www.1215.org

leeburstroghm

  • Beginner
  • *
  • Posts: 41
I think I found it!!!
admin/ ps_userfields. echos out the start of the form.

I did a grep for the javascript right before the form. function submitregistration()

it was found in /administrator/components/com_virtuemart/classes/ps_userfield.php so in there line 287 there it is..

if( $startForm ) {
         echo '<form action="'. $mm_action_url .basename($_SERVER['PHP_SELF']) .'" method="post" name="adminForm">';
      }

YEP IT WORKED!! FINALLY!!!

I am changing it there.. holy crappers, I think this is it!!!
"If you make yourselves sheep, the wolves will eat you." -- Benjamin Franklin
Knowledge is the price for freedom. http://www.1215.org]http://www.1215.org

leeburstroghm

  • Beginner
  • *
  • Posts: 41
thanks for your time and effort looking into this,

what a messed up place to make the registration form..

and thanks for spotting that phpmyadmin CRAP! I fixed that. finaly a SOLUTION

!YAY!
"If you make yourselves sheep, the wolves will eat you." -- Benjamin Franklin
Knowledge is the price for freedom. http://www.1215.org]http://www.1215.org