Adding Debug Points To Clarify "Submit Emaillist" Fault

Hi,

As a temporary test, I did something crazy: I erased the file: emailMarketing.js

From this folder:

/usr/local/CyberCP/emailMarketing/static/emailMarketing/

And guess what? The Cyberpanel EMAIL MARKETING does exactly the same things as in my previous posts!

(That is: It does not work: gets stuck and shows just two spinning balls)

So, my (additional [see also my previous posts]) questions at this point are:

  1. Is also the javascript file emailMarketing.js functionality permanently compiled (just like the python stuff) in to:

/usr/local/CyberCP/emailMarketing/pycache/ …files?

  1. I noticed two lines that are commented out in;

folder: /usr/local/CyberCP/emailMarketing

file: emailMarketingManager.py

line number: 144 => # em = EM(‘createEmailList’, extraArgs)
line number: 145 => # em.start()

What is the purpose of these?

Asking because looks kind of a suspicious especially because those lines are withing/part-of the function:

line number: 121 => def submitEmailList(self):

I would appreciate if those persons knowledgeable of these issues would start giving some useful pointers…

Hi,

Yes, uncommenting the following two lines did it:

folder: /usr/local/CyberCP/emailMarketing

file: emailMarketingManager.py

FROM:

line number 144: # em = EM(‘createEmailList’, extraArgs)
line number 145: # em.start()

TO:

line number 144: em = EM(‘createEmailList’, extraArgs)
line number 145: em.start()

Now an email list can be created by submitting a file which has the emailaddresses

However, how to include any additional debug points into any desired place in the code is still a mystery. So, I am keeping this topic open for a while in case someone has anything to add regarding that.