[SOLVED] : Every call to the module action is done twice ?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
vinc
Forum Members
Forum Members
Posts: 26
Joined: Thu Jun 14, 2007 10:01 am

[SOLVED] : Every call to the module action is done twice ?

Post by vinc »

Hi there,

I'm may be missing something but every action seems to be done twice.

At least, i've got duplicate lines in the admin log for the Order Module (Paypal too).
All these entries are done by the $this->Audit() function.

Do I need to raise a bug ?
Is it reproducible for some of you ?

Regards

Vincent
---
CMSMS 1.10.3
CGEcommerceBase 1.3.9
CGExtensions 1.27.9
CGPaymentGatewayBase 1.0.11
Orders 1.13
PaypalGateway 2.3.5
Last edited by vinc on Fri Mar 23, 2012 11:11 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Orders : Every call to the module action is done twice ?

Post by Dr.CSS »

Either way you will have to give a very detailed explanation of how to reproduce this problem so you might want to start by showing here how you made this happen...
vinc
Forum Members
Forum Members
Posts: 26
Joined: Thu Jun 14, 2007 10:01 am

Re: Orders : Every call to the module action is done twice ?

Post by vinc »

Hi there,

I spent all the day searching to fix this... Not solved, but some more informations in case someone could help me :
-> This problem is coming on a website updated to the last version 1.10.3
-> these actions are done twice : add a line in the admin log, send a mail (formbuilder or order processing).
-> but sending a test mail from CMSMailer is fine.
-> I've made so much tweaks on the core/module files that i can't remember all (but git is my friend...). So I came to replace all the base/module files on a copy to see which modification was in cause.
After replacing all the core files, removing all the modules except the formbuilder, I can say that the files are not the cause !

So this is deep in the database... but I don't know where to look at...

Any idea ?
vinc
Forum Members
Forum Members
Posts: 26
Joined: Thu Jun 14, 2007 10:01 am

Re: [SOLVED] : Every call to the module action is done twice

Post by vinc »

Yata :)

I found what was the problem...

I updated the metadata default content to match this :

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="title" content="{sitename} - {title}" />
<meta name="copyright" content="{sitename}" />
<meta name="description" content="{content|strip_tags|truncate:''150''|strip}" />
<meta name="keywords" content="{search action='keywords' count='15'}" />
<meta name="language" content="{$lang}" />
<meta name="url" content="{root_url}" />
<meta name="identifier-URL" content="{root_url}" />
<meta name="revised" content="{modified_date format="%a, %d %b %Y %H:%M:%S"}" />
But as you can see, for the description, i used "{content|strip_tags|truncate:''150''|strip}" so it parse all the {content} twice (1 for the header, +1 for the real content)... and every action seemed to be done twice...

Now I know it :)
Regards
Post Reply

Return to “Modules/Add-Ons”