Jump to content

[Solved] Error message on 'Log in, Create an account'


Recommended Posts

Hi,

I get an error message on Log in page when I click on 'Create an account' after entering an email address.

Error message:

 

TECHNICAL ERROR: unable to load form.

Details:

Error thrown: [object Object]

Text status: parsererror

 

I've searched on line but couldn't find any solution or workaround.

I would appreciate if anybody can give some info about this issue.

I am on version 1.5.4.1 default theme.

 

Please see the screenshot.

 

Thank you

post-154019-0-03534100-1372178744_thumb.jpg

Edited by bruce-rez (see edit history)
Link to comment
Share on other sites

vekia,

turn on browser console (shift+ctrl+J in chrome) and check console log, please paste error code here

 

Is it possible to do the similar thing in Firefox 21 or IE9? I don't have the Chrome.

By the way I've turn on Prestashop error reporting and It does not show any error.

Thank you

Link to comment
Share on other sites

your log:

n7woDR9.png

 

 

 

this is proper log:

DLDk1LF.png

 

 

as you can see - you've got there "301 moved peranently" status - it mean that the problem may be related to the .htaccess file

have you got any custom redirections there?

try to regenerate it.

Link to comment
Share on other sites

vekia,

Thanks for the report.

have you got any custom redirections there?

 

The only thing is that may domain name 'newstarfabrics.com' is redirected to 'newstarfabrics.com/en/'. I did this because it solved lot of broken links that I had before.

Now everything is working fine except this current issue "Log in, Create an account".

 

try to regenerate it.

 

How can I regenerate?

Is there any risk for the website if I do regenerate?

Thanks.

Link to comment
Share on other sites

Hi Benjamin,

This is a upgraded installation from 1.5.4 to 1.5.4.1 and I use my default theme which is duplicated from defaul theme in BO.

 

Have you tried turning off the mobile theme?

Where mobile theme is located?

If you mean it's in back-office > Preferences > Themes, no It's not there.

Thanks.

Link to comment
Share on other sites

 

The only thing is that may domain name 'newstarfabrics.com' is redirected to 'newstarfabrics.com/en/'. I did this because it solved lot of broken links that I had before.

Now everything is working fine except this current issue "Log in, Create an account".

 

 

I think he means this redirection that you did.

Link to comment
Share on other sites

vekia,

Unfortunatly no, I had some problem like broken links, top menu horizontal, After redirection evrything looks working correctly except this current error message for 'Create an account' in login, excluding bugs.

I am going to contact my hosting to see if there is way to disable temporary redirection in order to troublshooting the 'Create an account' issue and I'll get back here.

Thank you

Link to comment
Share on other sites

it's really weird, i don't know how its possible that they suggest change the name of the .htaccess file, for what purposes? I totally don't understand why. Regenerate this file, just go to the preferences > Seo & urls and, for example, turn off friendly urls - save. Then turn it on again and save changes again.

Link to comment
Share on other sites

vekia,Benjamin, agree with you.

I contacted my hosting about the error message 404 and regarding disabling the redirection temporily for debugging, they say:

Hello,

I have seen the .htaccess file there but it is blank however, the website newstarfabrics.com comes up fine without any redirection rules. Please let us know if you are still facing the page not found issue.

Best regards,

Link to comment
Share on other sites

Benjamin,

For me, the 404 error is not happening. The htaccess probably needed some time to update. I'm receiving the TECHNICAL ERROR now.

Agree with you. Now the redirection is disabled and the website is like before with the wrong top menu bar and when I click on the "create an account" in login page and I get the same error message.

So my understanding is that the problem is not about redirection.

Do you agree with me?

Thanks.

Link to comment
Share on other sites

Benjamin,

 

In your root/themes folder, what do you have. Do you have something called default_grid?

Yes I do.

 

Now regenerate your htaccess by toggling on and off Friendly URL. Make sure you have a backup ready though!

 

I will do it but before this, I've talked to my hosting about the "Create an account" issue then they searched on the net and they suggest me :

Hello,

I searched and found the same issue and they said:

Have you installed the Mobile theme plugin ?

If yes you should DELETE it and it would work.

 

http://www.prestasho...echnical-error/

 

Please try this and let us know.

Best regards,

I know this topic,If you remember we talked about disabling the Mobile theme and I disabled in BO but this did not resolve my problem. By the way do you know how to delete the Mobile theme by FTP, I need to know where is located (in what folder)?

 

What do you recommend:

#1- I go with you rseggestion; Now regenerate your htaccess by toggling on and off Friendly URL. Make sure you have a backup ready though!

I just remind you that my website is not redirected and what we see now it's the old version with all broken links.

Or

#2- I get back to redirection version and then doing your suggestion (#1).

 

Thank you

Edited by bruce-rez (see edit history)
Link to comment
Share on other sites

My honest suggestions would be

1) be very careful and make sure you have a backup confirmed and working, it's good that your hosting is working with you so that shouldn't be a problem.

2) try out both suggestions. [Try to regenerate the .htaccess first] Hopefully that doesn't totally take your store offline. You have contacts with hostgator and a backup so that is not too big of a issue.

Link to comment
Share on other sites

Benjamin,

I will contact my hosting to make sure they have a backup of my website before testing the suggestions,

By the way do you know how to delete the Mobile theme by FTP, I need to know where is located (in what folder)?

Thank you.

Link to comment
Share on other sites

You can also backup your own files and database and test them.

 

You can download your Database form Cpanel, and from FTP you can Copy your folders and files to somewhere safe. It's good to check with your hosting provider as well.

 

I think your problem does not lie in the mobile theme, that was an error mainly from the earlier versions of PrestaShop 1.5.

Link to comment
Share on other sites

Behjamin,

You can download your Database form Cpanel, and from FTP you can Copy your folders and files to somewhere safe.

 

I will do it probably by FTP. it takes some times but It worths it.

 

I think your problem does not lie in the mobile theme, that was an error mainly from the earlier versions of PrestaShop 1.5.

Agree, I read somewhere that was related to an older version than 1.5.4.1.

Thank you.

Link to comment
Share on other sites

Behjamin,

 

 

I will do it probably by FTP. it takes some times but It worths it.

 

 

Agree, I read somewhere that was related to an older version than 1.5.4.1.

Thank you.

 

Make sure that you also have a download of your database. If you have any older backups, do not overwrite them. Just make sure they are grouped in a dated folder along with your PrestaShop files to note the data and time the backup was created.

Link to comment
Share on other sites

Make sure that you also have a download of your database. If you have any older backups, do not overwrite them. Just make sure they are grouped in a dated folder along with your PrestaShop files to note the data and time the backup was created.

I am doing a backup right now through FTP.

Thanks

Link to comment
Share on other sites

So i have the same issue.

I customized my site to only show the center column for visitors (ie hide right and left columns).

 

Then i uncovered that the create account was no longer working.

After searching this forum, i found the following:

 

It has something to do with authentification.tpl. where the create account form has to load in the div: #center_column (as specified in line 120), but this div doesnt exist...

 

I got it to work partially by updating the authentication.tpl and adding "<div id="center_column"></div>" at line 153 (just above the form section).

 

The account creation page does load... (good!!)

Unfortunately, it now shows both the my-account and account-creation forms on the same page (not so good...)

See https://www.ice-cont...ccount-creation

 

If anyone has an idea on how to fix this...

Edited by Noorlander (see edit history)
Link to comment
Share on other sites

So i have the same issue.

I customized my site to only show the center column for visitors (ie hide right and left columns).

 

Then i uncovered that the create account was no longer working.

After searching this forum, i found the following:

 

It has something to do with authentification.tpl. where the create account form has to load in the div: #center_column (as specified in line 120), but this div doesnt exist...

 

I got it to work partially by updating the authentication.tpl and adding "<div id="center_column"></div>" at line 153 (just above the form section).

 

The account creation page does load... (good!!)

Unfortunately, it now shows both the my-account and account-creation forms on the same page (not so good...)

See https://www.ice-cont...ccount-creation

 

If anyone has an idea on how to fix this...

Hi Noorlander, this is actually how it should work normally. There is no fix because this is how acts normally.

Link to comment
Share on other sites

Hey Ben,

 

i think i didnt explain correctly.

 

After the partial fix as described above, the 'create account' button actually brings me to the next page, where all the account details are to be filled out: first name, last, data of birth, password, etc. So from that perspective the issue as encountered by Bruce has been resolved.

 

However, on that same page, i now also get the breadcrums twice, then i see the form where all the detailed account information needs to be filled out and underneith i get the 2 forms for account creation and login all with the relevant buttons...

 

.

Link to comment
Share on other sites

I resolve my issue by removing the div transition to display the transition

 

Page now loads fine

 

I quoted out lines 120 - 126 like this:

 

 

// adding a div to display a transition

//$('#center_column').html('<div id="noSlide">'+$('#center_column').html()+'</div>');

//$('#noSlide').fadeOut('slow', function(){

//$('#noSlide').html(jsonData.page);

// update the state (when this file is called from AJAX you still need to update the state)

//bindStateInputAndUpdate();

//$(this).fadeIn('slow', function(){

//document.location = '#account-creation';

 

 

Edited by Noorlander (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...