lolstar Posted April 15, 2003 Share Posted April 15, 2003 hello i have this problem when i want to send a newsletter whit the module newsletter: what matter ? ///////////////////////////////////////// Warning: Missing argument 3 for newsletter_subscribers() in /home/ouestlek/www/delsey/admin/includes/modules/newsletters/newsletter_subscribers.php on line 16 Warning: Missing argument 4 for newsletter_subscribers() in /home/ouestlek/www/delsey/admin/includes/modules/newsletters/newsletter_subscribers.php on line 16 Warning: Missing argument 5 for newsletter_subscribers() in /home/ouestlek/www/delsey/admin/includes/modules/newsletters/newsletter_subscribers.php on line 16 Warning: Missing argument 6 for newsletter_subscribers() in /home/ouestlek/www/delsey/admin/includes/modules/newsletters/newsletter_subscribers.php on line 16 //////////////////////////////////////// Quote Link to comment Share on other sites More sharing options...
cochien Posted June 27, 2003 Share Posted June 27, 2003 I've got same problem, have you find a solution ? bye; Quote Link to comment Share on other sites More sharing options...
cochien Posted June 27, 2003 Share Posted June 27, 2003 Ok i've find the problem (sorry for my english...) When you use newsletter manager (newsletter.php) you can chose the module to use (newsletter/newsletter_subscriber/products_notification). If you use newsletter_subscriber you use the function : function newsletter_subscribers($header, $title, $contenta, $unsubscribea, $unsubscribeb, $footer) (in admin/modules/newsletters/newsletter_subscribers.php) If you use another module you use this function : function newsletter($title, $content) (in admin/modules/newsletters/newsletter.php) So, you can see that some parameters are missing... Change that : in admin/modules/newsletters/newsletter.php change : function newsletter($title, $content) in function newsletter_subscribers($header, $title, $content, $unsubscribea, $unsubscribeb, $footer) idem in products_notification.php in admin/newsletter.php next elseif ($HTTP_GET_VARS['action'] == 'send') { replace : $newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . tep_db_input($nID) . "'"); $newsletter = tep_db_fetch_array($newsletter_query); by $newsletter_query = tep_db_query("select p.title, p.content, p.module, q.header, q.footer, q.unsubscribea, q.unsubscribeb from " . TABLE_NEWSLETTERS . " p, " . TABLE_SUBSCRIBERS_INFOS . " q where p.newsletters_id = '" . tep_db_input($nID) . "' "); $newsletter = tep_db_fetch_array($newsletter_query); after... replace $module = new $module_name($nInfo->title, $nInfo->content); by $module = new $module_name($nInfo->header, $nInfo->title, $nInfo->content, $nInfo->unsubscribea, $nInfo->unsubscribeb, $nInfo->footer); inthe same file find } elseif ($HTTP_GET_VARS['action'] == 'confirm') { and make the same changes as below.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.