SergeiG Posted April 23, 2017 Share Posted April 23, 2017 Hello! After upgrade from 6.1.5 to 6.1.7 the function of adding e-mail to mailing list stopped to work. After that, I installed an empty base 6.1.7 on another domain and the feature doesn't work in 'fresh' environment too. Do you have any suggestions? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 23, 2017 Share Posted April 23, 2017 Is this the admin, Mailing List, Import Subscribers tab? If so, I see no difference in the code that would now stop CubeCart from adding comma-delimited emails to the database. (I am currently not able to trace out the code execution, so cannot determine what may be happening.) Quote Link to comment Share on other sites More sharing options...
SergeiG Posted April 23, 2017 Author Share Posted April 23, 2017 14 hours ago, bsmither said: Is this the admin, Mailing List, Import Subscribers tab? If so, I see no difference in the code that would now stop CubeCart from adding comma-delimited emails to the database. (I am currently not able to trace out the code execution, so cannot determine what may be happening.) Oh, it's my bad, sorry. It's frontend side. As a customer I located on the homepage and add my e-mail at the bottom of the page in the mailing list. When I press 'Subscribe' button, I moved on the top of the page. But I don't see any messages like 'You e-mail successfully added to the mailing list" and as an admin I don't see new e-mails in the mailing list. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 23, 2017 Share Posted April 23, 2017 (edited) There seems to be some new code regarding this "Mailing List" text field. Testing the demo store results in crashing the javascript when clicking the "Subscribe" button. I will submit an issue into the Github. Sorry, but I currently am unable to troubleshoot for the exact cause. Edit: after a second test, for which I forced my browser to reload all the page's resources (specifically, 3.cubecart.validate.js), this functionality is working correctly. If this is your own observation, then force your browser to reload page resources (usually by CTRL-F5), and try again. If you have visitors complaining, then we may need to make an edit to the template that will require the browser to load this file for each page request, thus ensuring the most recent version is always being used. Edited April 23, 2017 by bsmither Quote Link to comment Share on other sites More sharing options...
SergeiG Posted April 24, 2017 Author Share Posted April 24, 2017 7 hours ago, bsmither said: There seems to be some new code regarding this "Mailing List" text field. Testing the demo store results in crashing the javascript when clicking the "Subscribe" button. I will submit an issue into the Github. Sorry, but I currently am unable to troubleshoot for the exact cause. Edit: after a second test, for which I forced my browser to reload all the page's resources (specifically, 3.cubecart.validate.js), this functionality is working correctly. If this is your own observation, then force your browser to reload page resources (usually by CTRL-F5), and try again. If you have visitors complaining, then we may need to make an edit to the template that will require the browser to load this file for each page request, thus ensuring the most recent version is always being used. I checked several time on different computers with different browsers (cache was cleaned) - same behavior. Moreover, I installed a new 6.1.7 environment on the new domain and this feature doesn't work from the first steps. Additional details: 1) Backend a) As an admin I tried to add an e-mail by 'Mailing List/Import subscribers' feature. The result is error: "/admin_XXXXXX/sources/customers/subscribersgeneral.inc.php - not found." But e-mail was added to the mailing list. b ) As an admin I tried to delete an e-mail by 'Mailing List/Import subscribers' feature. The result is error: "/admin_XXXXXX/sources/customers/subscribersgeneral.inc.php - not found." But e-mail was deleted from the mailing list. 2) Frontend a) As an user I tried to add an existing e-mail. Verification works fine b ) As an user I tried to add an invalid e-mail looks like 'ab' or 'av@' Verification works fine c) As an user I tried to add an invalid e-mail looks like 'ab@ccc' Verification doesn't work d) As an user I tried to add a new valid e-mail. It doesn't work VM103:2 Uncaught SyntaxError: Unexpected token < in JSON at position 1 at JSON.parse (<anonymous>) at Object.dataFilter (3.cubecart.validate.js:124) at N (jquery.js:14) at c (jquery.js:25) at XMLHttpRequest.<anonymous> (jquery.js:27) e) As an user I make an order and tick the option 'Add my e-mail to the mailing list' A order processes without errors. A email added to the mailing list correctly. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 24, 2017 Share Posted April 24, 2017 I will add this to the issue in the Github. 1 Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 24, 2017 Share Posted April 24, 2017 I cannot reproduce the backend behavior on CubeCart's "Demo" store. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted April 24, 2017 Author Share Posted April 24, 2017 1 hour ago, bsmither said: I cannot reproduce the backend behavior on CubeCart's "Demo" store. My test environment is http://cube.mywinnipeg.info/ It's installation 'from box' - no any changes. Could you be so kind to try to add any valid e-mail to a mailing list? P.S. I can send you admin credentials by e-mail. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted April 24, 2017 Author Share Posted April 24, 2017 (edited) 12 hours ago, bsmither said: I cannot reproduce the backend behavior on CubeCart's "Demo" store. I checked front-end and back-end cases this morning from another computer (different OS, different versions of browsers in comparison with previous tests). The result is next: 1) Back-end works fine - no errors. 2) Front-end behavior is same - impossible to add e-mail to a mailing list. However, I found your e-mail in the mailing list. Was it successfully from the first time or did you find any difficulties? Do you need any admin credentials? Edited April 24, 2017 by SergeiG Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 24, 2017 Share Posted April 24, 2017 I can't tell when it was successful. I was trying to use Firebug's javascript debugger and couldn't understand how to work it. So, I gave up for the day. I won't be able to do much troubleshooting for a number of weeks. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 24, 2017 Share Posted April 24, 2017 I can't help on this, either, as I use a MailChimp plugin for mailing lists. I have tested that, and it seems to be working on 6.1.7, but I wouldn't swear to it. I have had to turn off recaptcha completely for the time being, and since subscribing involves the registration page or checkout, I can't be sure it would work with captcha on. Just as a possibility - temporarily turn off recaptcha and see if the subscription works then. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted April 24, 2017 Author Share Posted April 24, 2017 8 minutes ago, Dirty Butter said: I can't help on this, either, as I use a MailChimp plugin for mailing lists. I have tested that, and it seems to be working on 6.1.7, but I wouldn't swear to it. I have had to turn off recaptcha completely for the time being, and since subscribing involves the registration page or checkout, I can't be sure it would work with captcha on. Just as a possibility - temporarily turn off recaptcha and see if the subscription works then. For testing reasons I turned off captcha/recaptha features at all from the first steps. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 24, 2017 Share Posted April 24, 2017 Sorry - I was hoping... Quote Link to comment Share on other sites More sharing options...
SergeiG Posted April 24, 2017 Author Share Posted April 24, 2017 3 minutes ago, Dirty Butter said: Sorry - I was hoping... Me too... I hoped to launch a shop an this weekend and this feature is critically important. But right I can't choose what is better - launch site on the 6.1.5 and have upgrade issues later, or use 6.1.7 and have issues now with hope for bug-free future... Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 24, 2017 Share Posted April 24, 2017 I delayed until this weekend upgrading from 6.1.5 on our main store. I tested lots on the other two stores, but I guess I didn't test newsletter subscription. If this is crucial for you my humble opinion would be to wait for 6.1.8 or a temporary code fix for this in 6.1.7. Good luck, no matter which you decide. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 24, 2017 Share Posted April 24, 2017 I did some more testing, and MailChimp is NOT currently getting the new subscriber info IF the customer tries to subscribe from the Checkout or Registration page. If they use the Subscribe/Unsubscribe button from their Account Newsletter Subscriptions button - Subscribe shows up in the MailChimp List. Unsubscribe doesn't see to work properly. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted April 25, 2017 Share Posted April 25, 2017 12 hours ago, SergeiG said: But right I can't choose what is better - launch site on the 6.1.5 and have upgrade issues later, or use 6.1.7 and have issues now with hope for bug-free future... With the number of different issues with 6.1.7 I would strongly suggest going with 6.1.5. There are no upgrade issues if you do a manual upgrade which is simple and has been documented several times on here and always works Ian Quote Link to comment Share on other sites More sharing options...
keat Posted April 25, 2017 Share Posted April 25, 2017 From the customer side, i added an email to my mailing list without issue. I'm using the Mican skin if it helps. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 25, 2017 Share Posted April 25, 2017 I am convinced the problem is with the new code added to 3.cubecart.validate.js in the Foundation skin. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 27, 2017 Share Posted April 27, 2017 Clearing temporary internet files will fix this in 6.1.7. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 27, 2017 Share Posted April 27, 2017 The OP said this failed on a fresh domain. I have not known a browser to use cached files from a foreign domain. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 27, 2017 Share Posted April 27, 2017 @SergeiG Can you go to the stores settings and just click save then see if it works? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 27, 2017 Share Posted April 27, 2017 On 4/24/2017 at 0:21 AM, SergeiG said: My test environment is http://cube.mywinnipeg.info/ It's installation 'from box' - no any changes. Could you be so kind to try to add any valid e-mail to a mailing list? I just subscribed with an obviously fake registration without any problems. My browser has the newest javascript versions in use, as I have two sites on 6.1.7. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 27, 2017 Share Posted April 27, 2017 On 24/04/2017 at 6:21 AM, SergeiG said: My test environment is http://cube.mywinnipeg.info/ It's installation 'from box' - no any changes. Could you be so kind to try to add any valid e-mail to a mailing list? P.S. I can send you admin credentials by e-mail. It didn't work for me. There is no default product? Did you delete it after install? Maybe the store isn't installed right or there was an error on install. Quote Link to comment Share on other sites More sharing options...
SergeiG Posted April 27, 2017 Author Share Posted April 27, 2017 3 hours ago, Al Brookbanks said: @SergeiG Can you go to the stores settings and just click save then see if it works? Sorry for delay with answers, I tried to collect enough information... 1) The error "VM103:2 Uncaught SyntaxError: Unexpected token < in JSON at position 1 at JSON.parse (<anonymous>) at Object.dataFilter (3.cubecart.validate.js:124) at N (jquery.js:14) at c (jquery.js:25) at XMLHttpRequest.<anonymous> (jquery.js:27)" was caused by usage 'incognito' mode in Chrome. 2) I created absolutely new site - cube2.mywinnipeg.info No any errors during an installation process. Subscription doesn't work from the first launch. I visited 'Store setting', updated the country and the county, press 'Save' - didn't help. 3) In total I have 3 domains (two different hosting company): 6.1.5 - works fine 6.1.7 upgraded from 6.1.5 - doesn't work 6.1.7 'from the box' - doesn't work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.