cbelea Posted November 1, 2011 Share Posted November 1, 2011 Hello, I've put online a shop, since about two weeks. Now the shop owner told me - and I've verified, that new customers cannot register. If I try to create a new account, I fill all required fields, but after submit I get: There are 9 errors : id_default_group is required. last_passwd_gen is required. newsletter is required. ip_registration_newsletter is required. newsletter_date_add is required. optin is required. note is required. date_add is required. date_upd is required. Also, when I log in with an existing account, and go to My Account -> My personal information I get a blank page with "Fatal error (Customer -> newsletter_date_add is empty)" Beside that, Statistics -> Stats Dashboard (by day) shows me twice the day 2011-10-30 but none of today. Prestashop version is 1.4.5.1; I didn't modified anything in the database; the template I use is just a copy of the default template with some graphics changed and a minor modification of footer.tpl. Can anybody please give me some ideas? Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 1, 2011 Share Posted November 1, 2011 I Have the same problem with Doasboard, And I also get twice day on the same date, and none new for this day 1/11-2011. And whebn a customer wanted to logging on with new account , it been this message at the start: date_add needed.. I think it have something to do with the date. I'm using Presta ver. 1.4.4.4 Someone who know whats wrong? Can it be because I empty my cashes? manually? Link to comment Share on other sites More sharing options...
cbelea Posted November 1, 2011 Author Share Posted November 1, 2011 Found out what the customer did: on the Customers tab he checked all the fields in Required Fields down the page. I think it's a bug in Prestashop... Now I have to find out what's the problem with the statistics. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 1, 2011 Share Posted November 1, 2011 Hi cbelea, Can you please post your URL so that I can look into this for you? -Mike Link to comment Share on other sites More sharing options...
cbelea Posted November 1, 2011 Author Share Posted November 1, 2011 Hello, Mike. The shop URL is http://tigara-de-cluj.ro . If you need further access please let me know. Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 Hello Mike and cbelea! I hope that you will share what happens. I'm still stuck, And my customer can't do the registration on my site. And for me it's only because the birthdays * date_add required * Must have help to fix it..HELP. PS: Mike my URL is www.presta.mrpellets.se PS: cbelea I went to your site and did a registration: No problem with that, everything worked for me. HOW DID YOU FIX IT?????? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 2, 2011 Share Posted November 2, 2011 Hi cbelea, As Mr Pellets just posted, I had no issue registering on your site either. Are you still having this problem? -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 2, 2011 Share Posted November 2, 2011 Hi Mr Pellets, In your customer.php file, can you please look for this string starting at line 145 and copy and paste your version? public function add($autodate = true, $nullValues = true) { $this->birthday = (empty($this->years) ? $this->birthday : (int)($this->years).'-'.(int)($this->months).'-'.(int)($this->days)); $this->secure_key = md5(uniqid(rand(), true)); $this->last_passwd_gen = date('Y-m-d H:i:s', strtotime('-'.Configuration::get('PS_PASSWD_TIME_FRONT').'minutes')); if (empty($this->id_default_group)) $this->id_default_group = 1; /* Can't create a guest customer, if this feature is disabled */ if ($this->is_guest AND !Configuration::get('PS_GUEST_CHECKOUT_ENABLED')) return false; if (!parent::add($autodate, $nullValues)) return false; -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 Hi cbelea, As Mr Pellets just posted, I had no issue registering on your site either. Are you still having this problem? -Mike Hello Mike! Hope that this is what you mean: public function add($autodate = true, $nullValues = true) { $this->birthday = (empty($this->years) ? $this->birthday : (int)($this->years).'-'.(int)($this->months).'-'.(int)($this->days)); $this->secure_key = md5(uniqid(rand(), true)); $this->last_passwd_gen = date('Y-m-d H:i:s', strtotime('-'.Configuration::get('PS_PASSWD_TIME_FRONT').'minutes')); if (empty($this->id_default_group)) $this->id_default_group = 1; /* Can't create a guest customer, if this feature is disabled */ if ($this->is_guest AND !Configuration::get('PS_GUEST_CHECKOUT_ENABLED')) return false; if (!parent::add($autodate, $nullValues)) return false; My version is: V. 1.4.4.1 Regards//MrPellets Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 2, 2011 Share Posted November 2, 2011 Hi Mr Pellets, Please provide me with the code I just posted above so that I can try to help you out. -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 Hi Mr Pellets, Please provide me with the code I just posted above so that I can try to help you out. -Mike Sorry Mike! Wonder if I understand you correctly?? Did you mean that I should take the code you sent, and copy it and past it, in my customer.php at the same line in 145? I have tryed that, but no differents, I just stuck with the same message Date_add needs... The other thing I have is that in stat, it don't uppgrader todays dated. It looks like this: 2011-10-29 2011-10-30 2011-10-30 2011-10-31 2011-11-01 2011-10-31 Double days and in wrong place... Data of today I don't get yet.??But It's better that the customer can get in and doing their registration.. Regars//MrPellets PS: This line: /* Can't create a guest customer, if this feature is disabled */ Do you think I have this disabled some where?? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 2, 2011 Share Posted November 2, 2011 No, I was asking you to post your version of that code here on this thread. It may be the exact same, but we need to be able to compare them first. -Mike Link to comment Share on other sites More sharing options...
cbelea Posted November 2, 2011 Author Share Posted November 2, 2011 Hello Mike, Hello Mr Pellets. As I've said before, I've discovered what my customer did: on the Customers tab he checked all what he found under "Select the fields you would like to be required for this section." After that new customer registrations didn't work anymore. Fortunately he remembered what he did, we unchecked all and everything went ok. That's why new customer registration works at this time. Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 No, I was asking you to post your version of that code here on this thread. It may be the exact same, but we need to be able to compare them first. -Mike Ok Mike. My code I have allready giving you. But I can put here again..It´s the same code.. public function add($autodate = true, $nullValues = true) { $this->birthday = (empty($this->years) ? $this->birthday : (int)($this->years).'-'.(int)($this->months).'-'.(int)($this->days)); $this->secure_key = md5(uniqid(rand(), true)); $this->last_passwd_gen = date('Y-m-d H:i:s', strtotime('-'.Configuration::get('PS_PASSWD_TIME_FRONT').'minutes')); if (empty($this->id_default_group)) $this->id_default_group = 1; /* Can't create a guest customer, if this feature is disabled */ if ($this->is_guest AND !Configuration::get('PS_GUEST_CHECKOUT_ENABLED')) return false; if (!parent::add($autodate, $nullValues)) return false; I have tryed to change the attribut to 755 to from 644 dosn't help. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 2, 2011 Share Posted November 2, 2011 Hi Mr Pellet, Can you please PM me with your FTP credentials so that we can look into this for you? -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 Hello Mike, Hello Mr Pellets. As I've said before, I've discovered what my customer did: on the Customers tab he checked all what he found under "Select the fields you would like to be required for this section." After that new customer registrations didn't work anymore. Fortunately he remembered what he did, we unchecked all and everything went ok. That's why new customer registration works at this time. Hello cbelea! Im glad that yor site working again, I went to that and had a registration, I got a letter later, because my city is not in Rumania, but I could not registration Sweden there. :-). Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 2, 2011 Share Posted November 2, 2011 Hello cbelea! Im glad that yor site working again, I went to that and had a registration, I got a letter later, because my city is not in Rumania, but I could not registration Sweden there. :-). Same thing here, so I quickly Googled Romanian zip codes just to make sure I could test it all the way through. Everything looks good from here in Beverly Hills, Romania ! -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 Hi Mr Pellet, Can you please PM me with your FTP credentials so that we can look into this for you? -Mike -Mike I have posted the PM to you. Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 -Mike Why does it only have birtsday, month, and year? The other 4 figures missing, (totaly 10 number)and I need all from my customer to check them out, before I sending them Invoces and so on. So I can see if the have Clear minds, if you understand what I mean. Now I must look them up the hard way= where they living(living adress) and on their totaly name, the hard way I mean, taking more time for me . If I get all numbers direcly it going faster to check them out. And what I have seen I don't have the red * that they must put all in before they can do the registration. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 2, 2011 Share Posted November 2, 2011 Can you please PM me your Back Office details as well? -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 Can you please PM me your Back Office details as well? -Mike -Mike Done... Take you time and fix more at the same time It's Ok with an Invoce... Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 -Mike Done... Take you time and fix more at the same time It's Ok with an Invoce... -Mike did you get in? Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 -Mike did you get in? Whats up for the dogs, schäfer his name is Luffe and will let you in but Don´t let you out . Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 2, 2011 Share Posted November 2, 2011 Hi Mr Pellets, All the login information was fine, I'm just waiting to sit with a developer to look a little deeper into this for you than I am capable of doing on my own. -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 2, 2011 Share Posted November 2, 2011 Hi Mr Pellets, All the login information was fine, I'm just waiting to sit with a developer to look a little deeper into this for you than I am capable of doing on my own. -Mike Ok Mike. Thats allright. If the dogs been too hungrie, behind the left door is some food.. Give them that...At the right one is same cold beer. You can take some.. I'm so greatful that you helping me to fix whats wrong with the this problem I got . So my customer can registrat in again.. Regards// Mr Pellets Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 3, 2011 Share Posted November 3, 2011 Hi Mr Pellets and cbelea, In terms of the statistics issue, we have identified the bug and you can fix it easily by making a small edit to the statsforecast module: In line 128 of your statsforecast.php file, please replace if ( $ cookie -> stats_granularity == 10 ) { $ dateEnd = strtotime ( $ employee -> stats_date_to . '23:59:59' ); $ dateToday = time (); for ( $ i = strtotime ( $ employee -> stats_date_from . '00:00:00' ); $ i <= $ dateEnd AND with if ( $ cookie -> stats_granularity == 10 ) { $ dateEnd = strtotime ( $ employee -> stats_date_to . '23:59:59' ); $ dateToday = time (); for ( $ i = strtotime ( $ employee -> stats_date_from . '00:00:00' ); $ i <= $ dateEnd AND $ i <= $ dateToday ; $ i = strtotime ( "+1 This should fix the calculation loop that is causing you issues in this situation. I hope this helps! -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 3, 2011 Share Posted November 3, 2011 Hi Mike. I had that on line 128...??? And tryed to put it there, and then I have No stats at all?? So I change it back.. Did n't help.?? I also have permission 777.. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 3, 2011 Share Posted November 3, 2011 Hi Mike. I had that on line 128...??? And tryed to put it there, and then I have No stats at all?? So I change it back.. Did n't help.?? I also have permission 777.. What version of the module do you have? -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 3, 2011 Share Posted November 3, 2011 I hope it's the same to what I uppgade to before. Ver. 1.4.4.1 Sorry I was Away a moment. Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 3, 2011 Share Posted November 3, 2011 I hope it's the same to what I uppgade to before. Ver. 1.4.4.1 Sorry I was Away a moment. Aha You meant this. V. 1.0 Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 3, 2011 Share Posted November 3, 2011 cbelea! I tried your idé about backoffice, client and option, *Set required fields for this section* I allready have the fields empty, and trying it both way. Nothing changes..But thanks for the tips. I Think that -Mike have giving up to Some one who's has New idea??? Regards//Mr Pellets Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 3, 2011 Share Posted November 3, 2011 Hi Mr Pellets, I haven't given up, I've actually passed this along to our development team but they need to work through their queue to get to it. However, if you would like to bring this to their attention sooner, please post your issue to our Bug Tracker or call our support team at 888 947 6543 and ask for Matt. -Mike Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 3, 2011 Share Posted November 3, 2011 Hi Mike I'm glad to see you. Witch time can a call them ?? Have they phonetime or something like that?? Or are they waked the all time... Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 3, 2011 Share Posted November 3, 2011 Hi Mr Pellets, In the United States, we are available by phone from 9AM to 6PM Eastern time. -Mike Link to comment Share on other sites More sharing options...
cbelea Posted November 3, 2011 Author Share Posted November 3, 2011 Hello Mike, [...] In line 128 of your statsforecast.php file, please replace [...] I think the forum software played a prank - the code snippets are incomplete - I mean the last for doesn't end syntactically correct. Sorry for my inactivity on this topis, it's a very busy period at work. But I'll be back Best regards. Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 3, 2011 Share Posted November 3, 2011 Hello cbelea and Mike again! Can it be something with the time to do??It strange But the 30 of october and here in Sweden we got wintertime?? can it have something with that to do?? That day it started for me.. Maybe a stupid thougth!! Maybe I shall trying to restore a backup??From prestashops backup..any comments of that.. over 10 days old..??waiting on your replay on that. Link to comment Share on other sites More sharing options...
cbelea Posted November 3, 2011 Author Share Posted November 3, 2011 Yes, "DST off" also here, on October 30th. Crossed my mind, but I don't think so... Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 3, 2011 Share Posted November 3, 2011 Yes, "DST off" also here, on October 30th. Crossed my mind, but I don't think so... Hi cbelea! But when did your problems started then??Is it at the same time??Same date? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 3, 2011 Share Posted November 3, 2011 Hi Mr Pellets, We just fixed the date_add issue for you. You actually had checked the date_add option under Addresses, which is not where you originally checked. We fixed that for you as well as an issue with your Ajax cart that didn't allow you to edit the quantity or delete an item because you had two different values for your website in your Back Office under Preferences > URLs. Enjoy! -Mike Link to comment Share on other sites More sharing options...
cbelea Posted November 4, 2011 Author Share Posted November 4, 2011 Hello, yes, Mike, my stats problems started exactly on the 30th. Look at the screenshot Regards. Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 4, 2011 Share Posted November 4, 2011 Hi Mr Pellets, We just fixed the date_add issue for you. You actually had checked the date_add option under Addresses, which is not where you originally checked. We fixed that for you as well as an issue with your Ajax cart that didn't allow you to edit the quantity or delete an item because you had two different values for your website in your Back Office under Preferences > URLs. Enjoy! -Mike Hi Mike say hello and thanks to the developments too. It's working Now :) YES! YES!! I'm back on Track...Thanks, many Thanks.. What should I do without your feedback... Regards//Mr Pellets Link to comment Share on other sites More sharing options...
Mr Pellets Posted November 4, 2011 Share Posted November 4, 2011 Hello, yes, Mike, my stats problems started exactly on the 30th. Look at the screenshot Regards. Hi cbelea! Your screenshot It´s the same I have on my stats. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 4, 2011 Share Posted November 4, 2011 Hi cbelea and Mr Pellets, Due to PrestaShop rules, I must mark this thread as solved and move on from it because the original issue has been taken care of. However, please do not hesitate to post your other question as a separate thread so that we can continue to help you out with it. -Mike Link to comment Share on other sites More sharing options...
Mike Kranzler Posted November 4, 2011 Share Posted November 4, 2011 Or even better, join the existing discussion here: http://www.prestashop.com/forums/topic/139935-issue-stats-not-showing-visitors-since-october/ -Mike Link to comment Share on other sites More sharing options...
Recommended Posts