Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter help!!!


Guest

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 10 months later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...