Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Newsletter-Only Subscriptions for v1.3x

Newsletter-Only Subscriptions for v1.3x

11 May 2007, 9:11 AM
#461
songoku avatar

songoku

New Zenner

Join Date:
May 2007
Posts:
2
Plugin Contributions:
0

Post #461 by songoku

Hello. I'm using the mod 2.0.6 in ZC 1.3.0.2, and it works perfect but only one problem, after i push the button in the sidebox i get the comfirmation text but my sideboxes in the right go outside the design

http://www.prime-records.com/shop/

somehow is to wide, is any way to fix this problem

THX

11 May 2007, 12:11 PM
#462
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

Post #462 by meadwench

Has a solution for removing subscribers been found yet? I have to remove subscribers manually using PHPmyAdmin. When you try to delete someone via the software, it asks you if you wish to delete, and when you confirm, goes back to the list as though it deleted them, but it does not remove them.

Anyone have an idea?

11 May 2007, 12:50 PM
#463
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Post #463 by chuckl

Delete subscriber works fine in all systems on which I have it installed. The only test in the code is for admin 'demo' mode, i.e. whether the person requesting the delete is a full admin or not. If true the delete is ignored.

11 May 2007, 2:21 PM
#464
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

Post #464 by meadwench

Thats odd. I am a full admin, and this has never worked from the time it was installed. Every other function works fine, but deleting subscribers via the admin interface never has.

Where in the code is the 'demo' mode info? I went through all the code, and couldn't even find where it did the SQL to remove the subscriber.......thats why I'm puzzled.

11 May 2007, 2:32 PM
#465
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Post #465 by chuckl

What version are you using, I'm assuming 2.06 or 2.07?
Look in /admin/subscription_manager.php, case statement lines 110-129.

11 May 2007, 3:20 PM
#466
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

Post #466 by meadwench

Chuckl:

What version are you using, I'm assuming 2.06 or 2.07?
Look in /admin/subscription_manager.php, case statement lines 110-129.

I'm using 2.06. Is there a 2.07? I didn't see it in the downloads or on the website. Found the code. I noticed it was checking subscription date, and my DB had the zero subscription date, so I updated that in my database to 1-1-2007.

I went in again to admin. The first email on the list happened to be a test email I subscribed today to test this. I selected it, and told it to delete, and it removed it from the list showing. Good stuff. So I searched for the second one to delete, found it, and with that the only one showing (from the search). Deleted it, and then searched it again. It was still there. So I searched the first one I deleted. Also still there.

I am hugely puzzled here. I have no errors in my server logs, and no error returns in Zencart. It looks like it is deleting, but a search after deleting shows the record still there.

I never get the success message when deleting. All subscribers are showing confirmed, and have sub dates of 1-1-2007. I am the admin on the site, admin demo is off.

Just to make sure it wasn't something I did, I reloaded all the original 2.06 code from the zip file, right down to the email templates before I did all this........

11 May 2007, 3:58 PM
#467
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Post #467 by chuckl

Yes there is a 2.07, may well be a beta release however, don't remember to be honest, and minimally different to 2.06.
Minor point, I never see a success message, but the entry disappears from the list. Could just be refreshing too quickly.
At the risk of stating the obvious, does your Zen Cart DB user have delete priviledges/permissions on that table in that database?
Other than that, all I can think of is caching or persistent connections or similar. The code is hardly very complicated, just - if confirmed and not demo set, delete the entry.

11 May 2007, 6:23 PM
#468
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

Post #468 by meadwench

Chuckl:

Yes there is a 2.07, may well be a beta release however, don't remember to be honest, and minimally different to 2.06.
Minor point, I never see a success message, but the entry disappears from the list. Could just be refreshing too quickly.
At the risk of stating the obvious, does your Zen Cart DB user have delete priviledges/permissions on that table in that database?
Other than that, all I can think of is caching or persistent connections or similar. The code is hardly very complicated, just - if confirmed and not demo set, delete the entry.

Yep, I've got delete/create/etc. permissions (I'm the site designer). I don't know about refreshing too quickly, I just let the site do that when I delete the entries. I know what you mean about the code, it is simple! I haven't made any gross changes to the Zen Cart code, and definitely didn't mess with persistent connections. Caching? I'm not sure how that would affect it.

::sigh:: Frustrating!!!

12 May 2007, 7:26 AM
#469
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Post #469 by chuckl

By refreshing too quickly, I meant that the server I was testing on was 2 yards away on a direct network connection, so any message would have flashed by too quickly for me to see.
On the caching side - clutching at straws really, the thought that it might be returning a cached page with the info still there, or that the DB writes are writing to cache, but not propagating out to the DB.
A couple of judiciously placed debug writes or echo statements to ensure that the code is being executed?

18 May 2007, 6:54 PM
#470
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Post #470 by robbyn7

I tested newsletter subscribe and received a confirmation email which required me to confirm. For some reason the link took me back to my home page and not a confirmation page. Am I missing a file?

Thanks
http://www.foxxydiva.com/fashions

22 May 2007, 2:21 PM
#471
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

Post #471 by meadwench

Chuckl:

By refreshing too quickly, I meant that the server I was testing on was 2 yards away on a direct network connection, so any message would have flashed by too quickly for me to see.
On the caching side - clutching at straws really, the thought that it might be returning a cached page with the info still there, or that the DB writes are writing to cache, but not propagating out to the DB.
A couple of judiciously placed debug writes or echo statements to ensure that the code is being executed?

Nope, not returning a cached page, I checked the database via PhpMyAdmin, and the info was still there.

I tried overwriting the files, in case there was a glitch somewhere, but it still isn't deleting when I remove someone via the admin interface.....

23 May 2007, 5:21 PM
#472
bradsmith avatar

bradsmith

New Zenner

Join Date:
Jan 2007
Posts:
50
Plugin Contributions:
0

Post #472 by bradsmith

Installed everything as carefully as possible... but perhaps I skipped a step. I'm getting this error :

1054 Unknown column 'subscribed_date' in 'field list'
in:
[REPLACE INTO subscribers ( customers_id, email_address, email_format, subscribed_date ) VALUES ( '2', '[email protected]', 'HTML', NOW() )]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I'm pretty desperate to get the newsletter installed, so any help is greatly appreciated.

Brad Smith, Serigraph Printer
https://www.RickRushArt.com

23 May 2007, 5:24 PM
#473
bradsmith avatar

bradsmith

New Zenner

Join Date:
Jan 2007
Posts:
50
Plugin Contributions:
0

Post #473 by bradsmith

After hitting the Back button, I see this...

1054 Unknown column 'confirmed' in 'field list'
in:
[select subscriber_id, customers_id, email_address, email_format, confirmed, subscribed_date from subscribers order by subscriber_id DESC limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

                                              Subscription Management                            [\[IMG\]http://rickrushart.com/admin/includes/languages/english/images/buttons/button\_remove.gif\[/IMG\]](http://rickrushart.com/admin/subscription_manager.php?action=remove)                                                               [\[IMG\]http://rickrushart.com/admin/includes/languages/english/images/buttons/button\_new\_subscription.gif\[/IMG\]](http://rickrushart.com/admin/subscription_manager.php?action=new) |               [\[IMG\]http://rickrushart.com/admin/includes/languages/english/images/buttons/button\_purge\_subscriptions.gif\[/IMG\]](http://rickrushart.com/admin/subscription_manager.php?action=purgeunconfirmed) |               [\[IMG\]http://rickrushart.com/admin/includes/languages/english/images/buttons/button\_import.gif\[/IMG\]](http://rickrushart.com/admin/subscription_manager.php?action=import)                                                            Status: C=Customer   N=Newsletter-Only Subscriber   P=Pending Confirmation

Brad Smith, Serigraph Printer
https://www.RickRushArt.com

24 May 2007, 8:12 PM
#474
ft11 avatar

ft11

New Zenner

Join Date:
Feb 2007
Posts:
16
Plugin Contributions:
0

Post #474 by ft11

All of the files have been uploaded, and mods made.

When I hit the 'install' button, the page goes to a blank white, with this left as the address.

/admin/subscription_manager.php?action=install

Going back to the page to install again, only gives the same result.

The database is not being updated. Do you have the necessary SQL that I can manually run thru phpMyAdmin?

That or any suggestions as to what might be wrong. Thanks.

24 May 2007, 8:19 PM
#475
ft11 avatar

ft11

New Zenner

Join Date:
Feb 2007
Posts:
16
Plugin Contributions:
0

Post #475 by ft11

NM. Problem fixed.

25 May 2007, 1:06 PM
#476
bradsmith avatar

bradsmith

New Zenner

Join Date:
Jan 2007
Posts:
50
Plugin Contributions:
0

Post #476 by bradsmith

I'm still desperate for help... We're about to kick off an advertising campaign and having the newsletter would be awesome.

To refresh my situation, I'm getting the following error...

When I click 'SEND' on a Newsletter, I get the following error :

1054 Unknown column 'confirmed' in 'where clause'
in:
[SELECT email_address as customers_email_address FROM subscribers WHERE email_format != 'NONE' and confirmed = 1 and (customers_id IS NULL or customers_id = 0) order by email_address ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Any help would be greatly appreciated...

Brad Smith, Serigraph Printer
https://www.RickRushArt.com

25 May 2007, 11:30 PM
#477
chrisrub avatar

chrisrub

New Zenner

Join Date:
May 2007
Posts:
22
Plugin Contributions:
0

Post #477 by chrisrub

I installed the newsletter mod, now it breaks my page when you try to subscribe. Test for yourself here: https://www.axcelsports.com/store

Can someone please help with this? Any idea why it would do that?

26 May 2007, 9:02 AM
#478
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Post #478 by chuckl

BradSmith, in your first post above, you refer to an error in a SQL statement - a 'Replace'. Where is that to be found in the Newsletter Subscribers mod? Replace can be dangerous, Update might be safer.

1054 errors are caused by running MySQL 4 code on MySQL 5. A search on the error in the forums will give several solutions.

26 May 2007, 9:12 AM
#479
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Post #479 by chuckl

On a closer look, your error seems to be somewhat self inflicted. The Replace did not set a value for the confirmed column, and the default value is 'NULL'. Edit that to '1'.

26 May 2007, 2:03 PM
#480
bradsmith avatar

bradsmith

New Zenner

Join Date:
Jan 2007
Posts:
50
Plugin Contributions:
0

Post #480 by bradsmith

Changing the Confirmed Column Value from NULL to 1 needs to be done from the database by editing a table there, right?

I suppose it's a tad obvious that I've never been involved in this sort of thing before, but I was sort of pushed into the whole web developing thing.

Brad Smith, Serigraph Printer
https://www.RickRushArt.com