VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Customer / User Management VM 1.1 => Topic started by: leeburstroghm on February 16, 2011, 19:37:15 pm

Title: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 16, 2011, 19:37:15 pm
 :'(
I have been searching and digging and looking for hours and I am very frustrated now.

I have a different layout in my template for the home page that I setup using this

Code: [Select]
$menu =& JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) $isHome = true;

so in my index.php template file, I check and if we are on the home page then the template is rendered differently.

now, the registration form action is hard coded to index.php so if there is an error and an error raised, everything halts and the index.php page is shown, and everything is jacked.

Where can I change this action to a url that will work instead of just index.php? for some reason, joomla thinks that the redirect is the Default menu item , so everything gets really messed up.

Please HELP!!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 16, 2011, 20:06:00 pm
mod_virtuemart_login
in the registration form itself there will be

   $action =  $mm_action_url. 'index.php?option=com_user&task='.$type;

try and change it

Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 16, 2011, 20:28:23 pm
Where is that File LOCATED?
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 16, 2011, 21:17:03 pm
what module are you using to login?

whatever module it is
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 17, 2011, 02:55:41 am
the login module is the mod_virtuemart_login.php

while there is a registration_url and an $action value here, it has no effect on what the form action is on the registration form.

I am not having issues with the login, I am having issues with the registration form!! the action on the registartion form. if there is a user error, or email error, the page loads on the homepage/default page and its a different template.!

how to change the action on the registration page?!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 17, 2011, 12:16:15 pm
the registration page is

account.billing   in the pages folder
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 17, 2011, 17:09:05 pm
Yes, but the FORM ACTION is not there. only the fields and the bottom of the form.!! Not the form opening tag and no form action !!

Thanks for your efforts though!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 17, 2011, 17:40:32 pm
checkout_register_form.php in the admin/html    folder

check that out.
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 17, 2011, 18:27:31 pm
Yea, I checked there as well already, there is require_once( CLASSPATH . "htmlTools.class.php" ); which has form creation methods but non of them seemed to do the job. nothing in checkout_register. Unless somehow the beginning form is in the $fields = ps_userfield::getUserFields('registration', false, '', false );

?? what a pain ?? this is a major bug!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 17, 2011, 18:53:19 pm
what do you have set to the "shopError" page in vmart administrator?

Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 17, 2011, 19:06:35 pm
shop.error
This issue , as I said, shows the shop page, on the home page in the component area, when you try to sign up and register, and the users email and or username already exists. The form data is posted, the error is raised but everything is on the home page. The Normal joomla registration does not do that.
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 17, 2011, 19:17:36 pm
post your url
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 19, 2011, 12:26:40 pm
BanquetTables!!
the site was up with a splash page, then people were finding the backend, so we had to put it down for maintenance, so . I have a user you can access it with . I will PM you.. ok.. I really could use some help to solve this!!! Any way possible!!!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 19, 2011, 14:31:40 pm
how were they finding the backend?

you should protect the administrator folder with a password
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 19, 2011, 22:49:32 pm
Not the backend. joomla backend, My mis use of nomenclature.

Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 20:30:36 pm
Ok, I have setup a test area, and duplicated the site, so we can resolve this, sorry for the delay, and thank you for any help.

the url is http://nwh(DOT)cnymediahost3(DOT)com/shop-nwhf

Now I notice, when you go to register, it uses ANOTHER menu item URL. but that should not matter.
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 21, 2011, 21:14:37 pm
the newer versions of vmart have this file in the checkout folder

login_registration_ex.tpl

Do you have it in your theme foldeR?

Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 21:19:25 pm
well I have VirtueMart 1.1.6
and the only login file in /components/com_virtuemart/themes/default/tempaltes/checkout/ is login_registration.tpl.php not the one you mentioned!!??!

there is HA get_payment_method_paypal_ex.tpl.php

Is this good? bad?
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 21:26:41 pm
ok, well I have checked most all the patches. I installed a clean 1.1.16.
I have checked the patches and even Patch-VirtueMart-1.1.3-1.1.7.j15 does not have that file!!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 21, 2011, 21:29:28 pm
have you tried WITHOUT SEF?

Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 21, 2011, 21:30:27 pm


login_registration_ex.tpl

at the top of this file it says this

If we have a POST value for "func", we were oviously directed here, because a validation error
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 21:50:37 pm
AS I said, This file does not exist in 1.1.16 or 1.1.13->1.1.16 patch.

I have a clean install of 1.1.16 and it is not present!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 21, 2011, 21:58:19 pm
it was not in mine either, BUT i have a different theme that does not update.

I have an eccomerce bundle I downloaded on 1/28 and it has that file in 1.1.6
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 21, 2011, 21:58:41 pm
have you tried WITHOUT SEF?




^^^^
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 22:05:44 pm
?? without sef.. would not help me. but.. Same thing with sef turned completely off.

returns to the default page when exisitng email or user exists!!!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 21, 2011, 22:07:05 pm
download the eccomerce package, and put that file in the folder

Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 22:07:48 pm
I do not understand what package you are referring to!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 22:09:10 pm
you must be talking about the virtuemart and joomla ecommerce bundle package??
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 21, 2011, 22:10:00 pm
yes, the bundle
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 22:18:55 pm
ok, I did download the bundle, pull out that file.
I might need the original login_registration.tpl.php file as well, as just uploading the ex file did nothing.

what are you thinking??!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 22:20:26 pm
the two files are identical. login_registration.tpl from 1.1.16 and the ecommerce bundle

so that is not it. I uploaded the login_registration_ex.tpl with no change. I will clear cache but I dont think that will matter
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 21, 2011, 22:50:54 pm

create a joomla menu item to  shop.registration

and check that way
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 22:58:03 pm
Well, there is not virtuemart shop.registration menu item type. and the joomla registration is not going to work.. so how do I do this?! to work correctly!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 21, 2011, 23:10:08 pm
ok, DUH. in the menu item for virtuemart there is a page, I used shop.registration.

Used that new menu item. Located under Shop NWHF and still get sent to the home page when user exists error message!!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 22, 2011, 13:56:17 pm
what happens when you turn off the cookie check?


I cannot recreate this problem. On my site the form post to index.php. and stays on the same page if an account is attempted to be created under an existing email.

BUT the url does change to index.php

Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 16:21:14 pm
I am not aware of any cookie check. I dont recall seeing it anywhere in joomla or virtue mart, so where is this that you are referring to?!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 22, 2011, 17:09:47 pm
virtuemart configuration

"core settings"
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 17:13:07 pm
Turned it off, no effect...!!!!????
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 22, 2011, 17:16:22 pm
WTF is this doing in the url?


index.php?option=com_content&view=article&id=17&Itemid=25&phpMyAdmin=4bc4d62a99fteccf40
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 17:34:54 pm
Wrong post!!.. Nothing like that in my urls!!! and yeahh.. um WHOA WTF is right!!

non of my shop urls deal with article ID 17!!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 22, 2011, 17:41:23 pm
Wrong post!!.. Nothing like that in my urls!!! and yeahh.. um WHOA WTF is right!!

non of my shop urls deal with article ID 17!!

thats on the sign up for newsletter at bottom of page.

I know its not a vmart url, but i have never seen anything like that before
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 17:42:51 pm
Oh crappers, sure enough.. that is a constant contact module that was installed.. holy crap, thanks for noticing. that should not be there, WHOA!

with SEF turned on, you never saw it, the girl who put the url in there, I dont know where that url came from. JCE adv menu link I think
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 17:48:14 pm
So what about this index or default page showing. how can I fix. Mytime is running out!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 22, 2011, 17:50:46 pm
ok,

lets try something. The only difference between your shop that I know of an mine is your itemids change for virtuemart items

Mine are all fixed to a certain #

backup ps_session in administrator/components/com_virtuemart/classes/ps_session.php

THEN, change all of these
$tmp_Itemid=

to a fixed # like this
$tmp_Itemid=4;

upload and try

On my sites, it is not redirected, and thats the only think I can see different

Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 18:00:14 pm
I presume you are talking about my menu items, itemID that is generated from my menu items.

because I have links to the virtuemart sections pages, from different locations in my menu??!

I did as you suggested, set $tmp_Itemid = '48'; line 511, to $tmp_Itemid = 48;

neither work.

You can see the action on the registration form is domain.com/index.php

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

OR is there some value that is available in some object so that I can just display the correct template. so if virtuemart is persistent some where in $this or some other object that I can query in the template code??!

how do I change this action to a different url,
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 22, 2011, 18:04:08 pm

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
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: PRO on February 22, 2011, 18:14:42 pm
here you go
admin.user_address_form.php

   <!-- Registration form -->
   <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post" name="adminForm">
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 18:31:27 pm
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!!!!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 18:39:37 pm
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!!!
Title: Re: New user Registration, username or email already exists, brings up index page
Post by: leeburstroghm on February 22, 2011, 18:40:50 pm
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!