Quote from: danthach6 at Sep 14, 2008, 04:43 PM
Quote from: smashingred at Mar 17, 2008, 11:25 AM
I had the same problem. This include_once(../../../manager/includes/config.inc.php) won’t work. If you go to /assets/modules/temailer/unsubscribe.php and hard code your path this should work. I also think it may work if you change the call to the following (but I haven’t tested it) include_once($modx->config[’base_path’].manager/includes/config.inc.php) I am not sure if it will get the $modx variable without having gotten the config.inc.php file but I think it should work since the page should be called via MODx first.
I hard coded the correct directory, but now I have a different error in my unsubscribe snippet. can anyone help please?
PHP error debug
Error: include_once() [function.include-once]: URL file-access is disabled in the server configuration
Error type/ Nr.: Warning - 2
File: /home/content/c/o/b/cobroker1/html/assets/modules/temailer/unsubscribe.php
Line: 2
Line 2 source: include_once("http://www.brianquigley.com/manager/includes/config.inc.php");
I can’t say for sure, because it was my business partner who wrote the code, and not me, but by the nature of the error itself, it looks like you cannot include a URL, so maybe take out the
http://www.brianquigley.com and put in something like
/home/content/c/o/b/cobroker1/html/manager/includes/config.inc.php instead?
I also wanted to dop a quick note that, due to our client’s demands, we made some modifications to the script. The client has an email list of over 2,000 people now, and of course, he is limited by his web host, so he cannot send that many emails out at once, and also he was getting MYSQL errors on his server, because godaddy’s virtual dedicated servers are terrible and have no memory, so we have amended the script so that it divides the ~2,000 emails needed to be sent into blocks of 10 (or 25, or 43, or whatever the user wants), and spaces out the number of blocks of emails over a period of time, so it takes about 30 minutes to send out all ~2,000 emails, but the server no longer runs out of memory, and he doesn’t violate his web host’s terms of service for number of emails sent out at once.
I know other people have modified our script, but I’m wondering if anyone is interested in this new functionality, and would like to see an update released?
Thanks to
everyone for their work on this, and their compliments and support of this module! I know that we haven’t been here much to support it, but it’s great how other people have picked up some of the slack, and I hope that we can keep contributing here.