×

Notice

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

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

{"html":"saved","error":false} error 11 years 5 months ago #18023

  • Peter Keijsers
  • Peter Keijsers's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
DeadDear ;) Compojoom

First of all, you've build a nice little module which is working very good so far (for one minor error which is probably caused by me ;)):

I'm encountering an error when submitting an email adress in the module in the front end of the website www.offsetagency.nl/joomla

I saw another thread in this forum from a person with the same error message. I've looked into the solution you provided to him.

- I checked for javascript errors, there are none for what I can see in the console of firebug.
- I checked for double loaded javascript libraries. We currently only load jquery-1.7.1.min.js

I have no other clues as to where this error is comming from.

Do you have any more suggestions where I should look?

many thanks in advance

Kind regards.
Peter Keijsers

{"html":"saved","error":false} error 11 years 5 months ago #18024

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Peter,
Now you got me wondering - "dear" or "dead" compojoom :D:D:D

I just had a look at your website. First of all I see an error message in the firebug console:

Error: useless setInterval call (missing quotes around argument?)
[Break On This Error]

interval = setInterval(_loaded(), 5000);


but I don't htink that this is the problem. You see the module has some javascript and for the javascript we use mootools. On your page it seems that something is preventing the mootools library to be loaded on the page with the module. Check your template for such an option. (maybe you have a plugin that is doing that).

Once you get the mootools framework in there it should work.
Daniel

{"html":"saved","error":false} error 11 years 5 months ago #18025

  • Peter Keijsers
  • Peter Keijsers's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hej Daniel

hehe sorry for the dead wish ;)
And wow what a fast reaction, thanks a lot for that!

I've loaded a mootools library from google:
(<script src="//ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script>)

I could not find a module that is disabling mootools. In jooma 1.5 you had a mootools plugin, but nog in 2.5 I cant find it anymore so I loaded this above librariy into the head of my page.

It is however not making the submit error happy :(

{"html":"saved","error":false} error 11 years 5 months ago #18028

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Peter,
the javascript on your page is still not working as it should (that is why the page actually redirects you when you click submit, instead of just doing everything with ajax in the background (as it does on our home page for example)).
could you please try to add a line for the jquery noConflict mode in your template?
api.jquery.com/jQuery.noConflict/

If I was you - the way I would debug this would look like this:
Change the template to a standard one -> check if the module is working. If it is not there are 2 options:
1. jquery is not loaded with noconflict mode
2. there is a plugin that disables mootools.

On joomla 2.5 there is no need to use a plugin to load the proper version of mootools. It comes with the latest mootools version and it is loaded whenever a script is needing it.

Regards,
Daniel

{"html":"saved","error":false} error 11 years 5 months ago #18048

  • Peter Keijsers
  • Peter Keijsers's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hej Daniel

It is working! Many thanks for you great help so far!
It was indeed a javascript conflict. I've doubled checked the schripts in the index.php and delete one. After that it worked fine!

I was hoping you could helpt me with one more thing I encountered. When I add an email adress in the frontend that already exists in both mailchimp and your components database it does not say it already exisists.
I dont get an email, but I do get the succes message... which is a bit odd I think.

I hope this is the last of my errors :)

{"html":"saved","error":false} error 11 years 5 months ago #18058

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
What is actually supposed to happen when you enter an address that is already in the list?
I don't think that we have to notify the user per email that he is on the list. A success message in that case is perfectly ok I think?

Daniel

{"html":"saved","error":false} error 11 years 5 months ago #18065

  • Peter Keijsers
  • Peter Keijsers's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hello Daniel

Oh no a message is perfectly fine. No email needs to be send.

The thing is I dont see this "update message" as it is called in the modules backend. When I enter an email adres which already excists I get the "thank you" message.
When I look in the list in the backend I see 10 times my own email adress. It does not check if the email is already in the list or not.

*update*
It seems with some email adresses I do get the "update message" and with some I do not get it.

I've deleted all subscribers in mailchimp list. Als i deleted all users in the CMC mailchim for joomla component. Some I could not delete so I deleted the database entries for those users in the table: cmc_users.
Now there should be no record if a user has already subscribed or not is it? But when I enter my email adress in the frontend I get the "update message" that the email adress already subscribed.

Are there any more database tables which contain CMC mailchimp for joomla data?
And if not, how is this possible :)

thanks for your reply

kind regards
Peter

{"html":"saved","error":false} error 11 years 5 months ago #18081

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Peter,
I need to look at the code again, but I don't think that we are looking at the joomla db for the emails -> we are requesting the info from mailchimp - if they tell us that there is no record for that user -> we write it in the db.
Now mailchimp tells us that the email is not in the list if you don't confirm the link in the mail, maybe that is why you saw the same email 10 times in the db.

Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.117 seconds