Bug in Newsletter made simple?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
User avatar
quadracer
Forum Members
Forum Members
Posts: 44
Joined: Wed Apr 26, 2006 9:59 am

Bug in Newsletter made simple?

Post by quadracer »

Hi forum,

I'm trying to use Newsletter made simple 1.0 beta 1 with CMSms 0.13 but I've got the following error on calling (default) template to subscribe:

Code: Select all

Warning: Invalid argument supplied for foreach() in C:\programs\xampp\xampp\htdocs\cms013\lib\classes\class.module.inc.php on line 1886
I'm trying to call it like {cms_module module="NMS" mode="subscribe"} and {cms_module module='NMS' mode='subscribe'} but the result is no changing  :'( . Tried it with PHP4/5.

But I've read in forum there's a problem with intercepting errors in class.module.inc.php.

Any ideas?
Last edited by quadracer on Thu Jun 08, 2006 12:51 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Bug in Newsletter made simple?

Post by calguy1000 »

That bug is fixed in svn, download the nightly snapshot and check it in, you should have good luck with that.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
quadracer
Forum Members
Forum Members
Posts: 44
Joined: Wed Apr 26, 2006 9:59 am

Re: Bug in Newsletter made simple?

Post by quadracer »

I'm wondering - if I download the nightly snapshot from here I get version 0.1  :-\ ...
sanjay
Forum Members
Forum Members
Posts: 19
Joined: Fri Oct 15, 2004 7:28 am

Re: Bug in Newsletter made simple?

Post by sanjay »

calguy1000 wrote: That bug is fixed in svn, download the nightly snapshot and check it in, you should have good luck with that.
How do you "check it in"?  I've downloaded the folder, unzipped it and ftp'd it to modules. That doesn't seem to do much... -- I'm sorry if it's a basic question.

~sanjay
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Re: Bug in Newsletter made simple?

Post by lemkepf »

You want to "checkout" a copy of the newsletter, then upload it to your website into the modules folder.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Bug in Newsletter made simple?

Post by psy »

Hi

I have had trouble with the 'foreach' error too.  I checked out the latest version but it requires a pre-release version of CMSMS.  I then tried NMS SVN revision 96 (NMS 1.0beta2 which works with CMSMS v0.13 WinXP/Apache) but I'm still getting the 'foreach' error.

What am I doing wrong?

Please help.
Cheers
psy
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Bug in Newsletter made simple?

Post by calguy1000 »

You are not doing anything wrong.

I fixed the foreach bug in the svn stream, along with a few others, and had to require 1.0-svn of CMS due to some recent changes that Ted did wrt adodb-lite, as I use the latest and greatest svn code for development.  I wasn't "quite" ready to release a new beta when ted made his changes and forced me to do the same.

so your choices are:
  a) upgrade to the latest and greatest, hot off the press, but could be full of problems version of CMS
        or
  b) try revision 95 of the svn tree
        "svn co -r 95 ....."
        or
  c) talk to me "real nice"  :) to release a beta 2.1 (which will be revision 95).  I've been working fast and furious on the 1.0 stuff as of late.
      and am swamped as we all are.

My thought at the moment, is that NMS 1.0 final won't be released until CMS 1.0 comes out.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Bug in Newsletter made simple?

Post by psy »

Thanks for the quick reply calguy1000

Option (a) is way too scary
Option (b) no luck
Option (c) always want to be ' real nice  :-* ' but no point spending your time on releasing it - see option (b)

As it's only a warning, not a fatal error if you can think of anything else (eg trying a 'manual hack to hide the error message') please please let me know.  I have 4 websites desperately in need of this this feature.

Best regards
psy
jan_hut
Forum Members
Forum Members
Posts: 60
Joined: Sat Jul 01, 2006 1:48 pm

Re: Bug in Newsletter made simple?

Post by jan_hut »

I'm getting the foreach error as well. I called the module with {cms_module module="NMS" mode="subscribe"} and the result is:
Warning: Invalid argument supplied for foreach() in /home/formules/domains/formuleshop.nl/public_html/lib/classes/class.module.inc.php on line 1886

After  submitting an email address I get the thank you thingie as I'm supposed to. However "an email has justr been sent to {$email}" shows up just like that {$email}

Also no email is being sent at all (and yes I have tested CMSmailer) so the user remains unconfirmed.

Although it seems only a warning some not so fatal error is occurring, so just hiding the error message is not gonna cut it for me.

I've tried the latest snapshot at no avail I'm affraid. To be frank, most of us are somewhat of an end-user rather than a developer and have no clue on how to "check out" that SVN in the first place.

I'd love to see a quick fix in the form of just the necessary file(s) instead of a complete new release or SVN
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Bug in Newsletter made simple?

Post by calguy1000 »

I'll try to backport a fix this week.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
brainpoo
Forum Members
Forum Members
Posts: 37
Joined: Wed Jul 05, 2006 1:21 am

Re: Bug in Newsletter made simple?

Post by brainpoo »

I would love to see a fix for this as well.

Shawn
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Bug in Newsletter made simple?

Post by calguy1000 »

Here's a (potential) fix.

lemme know how it goes.

Rename NMS-1.0--beta3.tar.gz.txt to NMS-1.0-beta3.tar.gz and it should work.



[attachment deleted by admin]
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jan_hut
Forum Members
Forum Members
Posts: 60
Joined: Sat Jul 01, 2006 1:48 pm

Re: Bug in Newsletter made simple?

Post by jan_hut »

That works like a charm calguy! There's one thing that's still a bit odd. Might not have anything to do with this and just be an error on my side though. After a user confirms the email address The following text appears in the confirmation page just before the confirmation message on the site:

DEBUG record = Array ( [uniqueid] => 9533f07a9ea801b90f1d40ef25df9e8f [dateconfirmed] => 2006-07-05 09:27:32 )
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Bug in Newsletter made simple?

Post by calguy1000 »

Search through the files for the word DEBUG and delete those lines.... it's an errant debug statement is all.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
brainpoo
Forum Members
Forum Members
Posts: 37
Joined: Wed Jul 05, 2006 1:21 am

Re: Bug in Newsletter made simple?

Post by brainpoo »

I installed the Beta1 via the XML file... and now I can't seem to overwrite any of the files, or delete anything... or anything at all.

Any idea why?  Is it due to installing via the XML file?

Shawn
Post Reply

Return to “Modules/Add-Ons”