For some reason, the Mimbo template seems to have issues with the contact form plugin.
Someone reported to me via email that his installation of mimbo sends an email up to four times when using either the standard or dynamic contact form. This does not happen with a different template, i.e. Bulletproof. I have reproduced this with the standard contact form in my own blog (temporarily switching it to Mimbo), but I can't seem to pinpoint the source of error in the Mimbo .tpl files.
Any ideas?
YL
Mimbo vs. contact form
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Mimbo vs. contact form
Hi!
This could be browser related, when a browser posts the data multiple times to the same page, either because maybe there is a misbheaving mod_Rewrite rule, or links to non-existant files or Fasterfox-like plugins.
Does the same happen when you remove config.inc.php?
Regards,
Garvin
This could be browser related, when a browser posts the data multiple times to the same page, either because maybe there is a misbheaving mod_Rewrite rule, or links to non-existant files or Fasterfox-like plugins.
Does the same happen when you remove config.inc.php?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Mimbo vs. contact form
Even if it only happens with just that template? Remember, it does not happen with BP ...garvinhicking wrote:This could be browser related, when a browser posts the data multiple times to the same page, either because maybe there is a misbheaving mod_Rewrite rule, or links to non-existant files or Fasterfox-like plugins.
Yes. I also cleared templates_c after removing it, of course.garvinhicking wrote:Does the same happen when you remove config.inc.php?
YL
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Mimbo vs. contact form
Hi!
Did you check the firebug NET extension? This one tells you which URLs are loaded. Maybe then you can spot URLs that are called which have a wrong relative path?
On the other hand, it could be that your template includes the event hook that is called to send the contactform multiple times. It could be that each fetchPrintEntries call executes the event hook that the plugin uses to send the mail...
Regards,
Garvin
Did you check the firebug NET extension? This one tells you which URLs are loaded. Maybe then you can spot URLs that are called which have a wrong relative path?
On the other hand, it could be that your template includes the event hook that is called to send the contactform multiple times. It could be that each fetchPrintEntries call executes the event hook that the plugin uses to send the mail...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Mimbo vs. contact form
Since Mimbo makes excessive use of fetchPrintEntries, this sounds far more "promising"garvinhicking wrote:On the other hand, it could be that your template includes the event hook that is called to send the contactform multiple times. It could be that each fetchPrintEntries call executes the event hook that the plugin uses to send the mail...
Erm, how do I figure that out, and if so, what can I/we do about it?
YL
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Mimbo vs. contact form
Hi!
You could start by checking custom smarty usage in all files. I'd start with fetchprintentries and temporarily remove all occurences of that.
The problem is, if it does affect the call, I think the only way to skip this behavior is to disallow executing hooks throgh useHooks=0 or whatever parameter that was. Then it might influence other features of your template...
Regards,
Garvin
You could start by checking custom smarty usage in all files. I'd start with fetchprintentries and temporarily remove all occurences of that.
The problem is, if it does affect the call, I think the only way to skip this behavior is to disallow executing hooks throgh useHooks=0 or whatever parameter that was. Then it might influence other features of your template...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Mimbo vs. contact form
Just for the record: solved.
I can't even remember what the " or $staticpage_pagetitle" was supposed to do, but it is the source of error here. Removing it solves the issue and doesn't change the template's behaviour.
YL
Code: Select all
{if $view == 'entry' or $staticpage_pagetitle}YL
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Mimbo vs. contact form
ya know, I think that should have been {if $view == 'entry' or $staticpage_pagetitle==''} ?? Whatever! As long as it works, right?!!!
I'm also wondering if the true, front page is always, and reliably, detected with just {if $startpage =='true'}
I'm also wondering if the true, front page is always, and reliably, detected with just {if $startpage =='true'}
=Don=
Re: Mimbo vs. contact form
"If view is single entry or a static page which doesn't have a pagetitle"? Doesn't make sense to me.Don Chambers wrote:I think that should have been {if $view == 'entry' or $staticpage_pagetitle==''} ??
I think that wouldn't work at all, but you probably mean {if $view == 'start'}, right? I have no answer for that, but maybe Garvin hasDon Chambers wrote:I'm also wondering if the true, front page is always, and reliably, detected with just {if $startpage =='true'}
YL
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Mimbo vs. contact form
Yes, sorry... got confused for a moment.. thought you were talking about start page detection, not entry pages!
More coffee please.
More coffee please.
=Don=