1. One Web company
  2. Bugs
  3. Sunday, 28 April 2013
  4.  Subscribe via email
I am running Joomla 3.0.x and just activated the newsletter module, and am getting the above error.

The form is submitting and processing, I am getting the notification mails for subscription to mailchimp, the system just isn't completing the processing.

I tried adding the jquery no conflict, but that is already running.

The URL is: http://onewebcompany.com/test-page.html

I know the issue is with the slideshow -- when I turn the slideshow off, the module works.

Thanks,
Bryan
Responses (9)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
there is a js conflict on the page. Actually the mail should be submitted and you should stay on the same page. You are including several times jquery I think. Look at your site with firebug(firefox) or the inspector tool in chrome & fix the js errors. AFter that it should work properly.

Regards,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 1
Accepted Answer Pending Moderation
I am having a similar problem.

I thought it was a conflict with the slideshow, as if I have cmc enabled the slideshow stops working, which I have pinned down to removing this from default.php:

[code type=php]$script = 'window.addEvent("domready", function() {

var options = {

language : {

"updated" : '.json_encode(JText::_( $params->get( 'updateMsg' ))) .',

"saved" : '.json_encode(JText::_( $params->get( 'thankyou' ) )) .'

},

spinner : "spinner-'.$moduleId.'"

}

new cmc("cmc-signup-form-' . $moduleId . '", options);

});';


$document->addScriptDeclaration($script);[/code]

in which case slideshow starts working again.

then I noticed I was getting similar errors on signup submit: "{"html":"Invalid Email Address: ","error":true}", etc. and no processing but just a raw page.

I have stripped it down to just this for a head script load and am still having problems:
[code type=php] <script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/caption.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/media/mod_cmc/js/cmc.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEvent('load', function() {
new JCaption('img.caption');
});
window.addEvent("domready", function() {

var options = {

language : {

"updated" : "You were already subscribed to this list. Your settings have been updated. Thank you!",

"saved" : "Thank you! Please check your email and confirm the newsletter subscription."

},

spinner : "spinner-95"

}

new cmc("cmc-signup-form-95", options);

});
</script>
<script type="text/javascript">
(function() {
var strings = {"THANK YOU! PLEASE CHECK YOUR EMAIL AND CONFIRM THE NEWSLETTER SUBSCRIPTION.":"Thank you! Please check your email and confirm the newsletter subscription.","YOU WERE ALREADY SUBSCRIBED TO THIS LIST. YOUR SETTINGS HAVE BEEN UPDATED. THANK YOU!":"You were already subscribed to this list. Your settings have been updated. Thank you!"};
if (typeof Joomla == 'undefined') {
Joomla = {};
Joomla.JText = strings;
}
else {
Joomla.JText.load(strings);
}
})();
</script>[/code]

maybe it is a variable or the document.id or something? can you wrap your function somehow, would that help? I am looking into it but I am not a js expert so thanks for any help. I'm using J3.1 and the 1.2.1 cmc. the site does not have ecommerce.
  1. more than a month ago
  2. Bugs
  3. # 2
Accepted Answer Pending Moderation
update:

after a couple ctrl f5s the barebones load I showed above does make everything work, but it is only if there is no other js file call on the page. As soon as I add any back (djslider, jcemediabox, etc) the submit fails again. they all work fine without cmc loading and cmc works fine if no others load, but this make me think it is something with your variable (options?) use.


========================================================


update 2: I have moved around a few of the header loads on some of the other components/modules and actually have the whole thing working - on the second submit.

if I just load the page image loaders are working properly, everything looks good but when I try to submit the form it give the raw error page.

however as soon as I click "back" and submit a second time it works properly, either giving the slide down error or the animated loader submit with thanks message.

when I look at the scripts with firebug inspector the first load this:
[code type=javascript]var strings = {"THANK YOU! PLEASE CHECK YOUR EMAIL AND CONFIRM THE NEWSLETTER SUBSCRIPTION.":"Thank you! Please check your email and confirm the newsletter subscription.","YOU WERE ALREADY SUBSCRIBED TO THIS LIST. YOUR SETTINGS HAVE BEEN UPDATED. THANK YOU!":"You were already subscribed to this list. Your settings have been updated. Thank you!"};
[/code]

does not turn red but also does not turn green. when I submit (and get error screen) then click the back button it turns green. is there some sort of initialization maybe needed? or variable released?
  1. more than a month ago
  2. Bugs
  3. # 3
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
You need to solve the js conflicts that you get on the page.
The cmc js code doesn't produce any on a standard joomla installation so it must be something interacting with it.

Also -> you get the {html...} because you've removed the js initialization and instead of an ajax request in the background, the form gets sent...

Without a link to your site I cannot give you a better advise.

Regards,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 4
Accepted Answer Pending Moderation
hi daniel,

thanks for replying!

have you considered offering support ticketing for CMC?

or maybe a newer paid version where you re-write the functions and variables to be conflict-free?

After looking, I have seen many people complain of the conflicts.

nowadays most people do not just make a plain beez install and they want some other js things on the pages.

I have seen other developers of other components/modules talk about how they are careful in specific naming queries/elements/variables to not be conflicting and also that the main functions are wrapped.


you have a VERY nice component (and the only one 3.x compatible?), and I do not want to seem complaining about a free thing, which is why I looked for paid support or a paid upgrade option.

wouldn't it be very worth it for you to get paid to spend a couple days re-working the package instead of so many of us who use it spending so many hours trying to fix it each ourselves.

please consider offering some paid and/or updated "no conflict" support on this.
  1. more than a month ago
  2. Bugs
  3. # 5
Accepted Answer Pending Moderation
p.s. on the main problem:

I had only temporarily removed that load to identify where the problem was happening.

In fact, after moving around where some things are loading, I now have it where in IE9 it works correctly but in firefox and chrome it won't act properly until I submit a wrong input (empty does not work) then click back button. THEN everything (cmc and slider, etc) operates 100% properly in those browsers.

So some sort of initialization (or variable release?) fails in chrome and firefox on first load but succeeds on first try in IE9.

I am going to probably try re-writing the JText::script into a $document->addScript higher up in the head load and see if that works. I must resolve the conflict as the client wants what they want, they do not say 'well it conflicts with the other so forget it'. ;)

I would love to pm you a link to the site if that is possible? but I cannot post it on the open forum unfortunately.

thanks again for replying and for your nice extension and help.
  1. more than a month ago
  2. Bugs
  3. # 6
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
I cannot rewrite the functions to be conflict free - they are already conflict free. I don't want to go into a discussion about that, but we do everything correctly - our code is encapsulated in a Class, and the code is initialized in a domready event. the only variable in the global scope is cmc...

Send me a link to your website: daniel@compojoom.com

Regards,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 7
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Did you send me the link? I haven't gotten anything yet?
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 8
Accepted Answer Pending Moderation
no, I didn't. I had to move on and just made a form in mailchimp and embedded it. it is not nearly as attractive as yours but even when I had almost all the other conflicts resolved I had run into a probably insurmountable one with chronoform page. thank you very much for your reply though and for the very nice free extension.
  1. more than a month ago
  2. Bugs
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Errror on Google Captcha V3 in Matukio
Hi, I am experiencing spam-problems on contact-forms protected by google reCa...
0 Replies
Posted on Wednesday, 20 March 2024
Google map styles migrating......
Google are updating their map styles. Is there anything we need to do to migrate...
0 Replies
Posted on Monday, 18 March 2024
  • #google maps
  • #map styles
Latest Hotspots Makes Website Hang
When using the Latest Hotspot module, the webpage slows down and does not load....
3 Replies
Posted on Monday, 15 January 2024
Text ändern
Hallo in der Übersicht der Veranstaltungen kann man ja auf "Mehr Informati...
0 Replies
Posted on Thursday, 14 March 2024
When is CComment compatible with Joomla 5?
When is CComment compatible with Joomla 5?...
3 Replies
Posted on Tuesday, 05 December 2023
  • #CComment
  • #Joomla 5