Guest Posted March 21, 2004 Share Posted March 21, 2004 hello, i've read all the posts regarding the newsletter contribution. i'm in over my head, and i need some help! i have followed the steps at: http://www.oscommerce.com/forums/index.php?sho...ewsletter&st=40 which seemed to solve the errors i was getting. now when i try to send a newsletter, i get this error: Fatal error: Cannot redeclare class newsletter_subscribers in /home/*****/public_html/catalog/admin/includes/modules/newsletters/newsletter_subscribers.php on line 13 line 13 and 14 is: class newsletter_subscribers { var $show_choose_audience, $header, $title, $contenta, $unsubscribea, $unsubscribeb, $footer; what is happening? why am i getting this error? how do i fix it? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2004 Share Posted March 21, 2004 ok, once i figured out the "cannot redeclare class" means there's code repeating somewhere, i realized that there are two different files of the same name (newsletter_subscribers)in two different locations that i confused, and i copied one file in the two different locations. fixed that and then got loads more errors, some of which i actually fixed - but i still have these: Warning: reset(): Passed variable is not an array or object in /home/******/public_html/catalog/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/*****/public_html/catalog/admin/includes/classes/object_info.php on line 18 line 13-19: class objectInfo { // class constructor function objectInfo($object_array) { reset($object_array); while (list($key, $value) = each($object_array)) { $this->$key = tep_db_prepare_input($value); next error: Fatal error: Cannot instantiate non-existent class: in /home/selfeste/public_html/catalog/admin/newsletters_subscribers.php on line 270 line 270: $module = new $module_name($nInfo->header, $nInfo->title, $nInfo->contenta, $nInfo->unsubscribea, $nInfo->unsubscribeb, $nInfo->footer); any ideas as to what to look for, or how to fix these errors would be much appreciated, thank you, eva Quote Link to comment Share on other sites More sharing options...
Guest Posted March 23, 2004 Share Posted March 23, 2004 finally got it working. posted what i did in installation and configuration. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2005 Share Posted January 25, 2005 Could you post a link? Quote Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2005 Share Posted January 25, 2005 Could you post a link? <{POST_SNAPBACK}> i'll see if i can't find it - it would've been helpful to leave a link...it was so long ago, i have no recollection of what i did...but i will look Quote Link to comment Share on other sites More sharing options...
Guest Posted January 25, 2005 Share Posted January 25, 2005 this is where i found that post - not sure if that'll help - but the link is: http://www.oscommerce.com/forums/index.php?showtopic=73061&hl= the way i found this post is that i did an advanced search and filtered according to username - and that way i could track down the post you were interested in... good luck, anymore questions - if i can help, i'll try... eva 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.