1. Peter Keijsers
  2. Bugs
  3. Sunday, 07 October 2012
  4.  Subscribe via email
[strike]Dead[/strike]Dear ;) 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 http://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
Responses (7)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
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
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
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="//http://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 :(
  1. more than a month ago
  2. Bugs
  3. # 2
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
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?
http://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
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. # 3
Accepted Answer Pending Moderation
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 :)
  1. more than a month ago
  2. Bugs
  3. # 4
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
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
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. # 5
Accepted Answer Pending Moderation
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
  1. more than a month ago
  2. Bugs
  3. # 6
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
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
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
  • Page :
  • 1


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

Last questions

How to close commenting on an article?
I've installed CComment Core on Joomla 4. I just can't seem to find out how to c...
0 Replies
Posted on Sunday, 05 December 2021
  • New
    • #CComment
    Trying to override default_form.php in Joomla 4 bu
    I've installed CComment Core on my Joomla 4 site. Looks good so far, except for ...
    1 Replies
    Posted on Thursday, 02 December 2021
  • Resolved
  • New
  • Cant save Hotspot global settings
    Using Joomla 4.0.2 and Yootheme installed. After installing Hotspot Core success...
    5 Replies
    Posted on Saturday, 23 October 2021
    • #hotspot
    • #hotspots core
    • #joomla 4
    How much do you take to develop a plugin to displa
    Hello, I have a site with Hotspots Pro 6 installed. How much do you take to ...
    2 Replies
    Posted on Wednesday, 24 November 2021
    • #hotspots pro
    Installing Compojoom
    Hi, I just bought the Matukio Events and tried to install the extension via Comp...
    11 Replies
    Posted on Sunday, 28 November 2021
  • New