×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: error: {"html":"saved","error":false}

error: {"html":"saved","error":false} 11 years 6 months ago #20456

  • One Web company
  • One Web company's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
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: onewebcompany.com/test-page.html

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

Thanks,
Bryan

error: {"html":"saved","error":false} 11 years 6 months ago #20457

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
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

error: {"html":"saved","error":false} 11 years 6 months ago #20620

  • dontflinch
  • dontflinch's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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:
$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);

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:
<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>

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.

error: {"html":"saved","error":false} 11 years 6 months ago #20621

  • dontflinch
  • dontflinch's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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:
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!"};

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?

error: {"html":"saved","error":false} 11 years 6 months ago #20637

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
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

error: {"html":"saved","error":false} 11 years 6 months ago #20645

  • dontflinch
  • dontflinch's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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.

error: {"html":"saved","error":false} 11 years 6 months ago #20646

  • dontflinch
  • dontflinch's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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.

error: {"html":"saved","error":false} 11 years 6 months ago #20648

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
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: This email address is being protected from spambots. You need JavaScript enabled to view it.

Regards,
Daniel

error: {"html":"saved","error":false} 11 years 6 months ago #20659

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Did you send me the link? I haven't gotten anything yet?

error: {"html":"saved","error":false} 11 years 6 months ago #20696

  • dontflinch
  • dontflinch's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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.
  • Page:
  • 1
Time to create page: 0.196 seconds