Page 1 of 2
Bug in Newsletter made simple?
Posted: Thu Jun 08, 2006 12:46 pm
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?
Re: Bug in Newsletter made simple?
Posted: Thu Jun 08, 2006 1:07 pm
by calguy1000
That bug is fixed in svn, download the nightly snapshot and check it in, you should have good luck with that.
Re: Bug in Newsletter made simple?
Posted: Thu Jun 08, 2006 1:43 pm
by quadracer
I'm wondering - if I download the nightly snapshot from
here I get version 0.1

...
Re: Bug in Newsletter made simple?
Posted: Thu Jun 22, 2006 8:35 pm
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
Re: Bug in Newsletter made simple?
Posted: Wed Jun 28, 2006 5:43 pm
by lemkepf
You want to "checkout" a copy of the newsletter, then upload it to your website into the modules folder.
Re: Bug in Newsletter made simple?
Posted: Thu Jun 29, 2006 1:38 am
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
Re: Bug in Newsletter made simple?
Posted: Thu Jun 29, 2006 4:01 am
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.
Re: Bug in Newsletter made simple?
Posted: Fri Jun 30, 2006 12:32 am
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
Re: Bug in Newsletter made simple?
Posted: Sat Jul 01, 2006 2:11 pm
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
Re: Bug in Newsletter made simple?
Posted: Tue Jul 04, 2006 2:58 pm
by calguy1000
I'll try to backport a fix this week.
Re: Bug in Newsletter made simple?
Posted: Wed Jul 05, 2006 1:23 am
by brainpoo
I would love to see a fix for this as well.
Shawn
Re: Bug in Newsletter made simple?
Posted: Wed Jul 05, 2006 3:16 am
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]
Re: Bug in Newsletter made simple?
Posted: Wed Jul 05, 2006 7:31 am
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 )
Re: Bug in Newsletter made simple?
Posted: Wed Jul 05, 2006 12:50 pm
by calguy1000
Search through the files for the word DEBUG and delete those lines.... it's an errant debug statement is all.
Re: Bug in Newsletter made simple?
Posted: Wed Jul 05, 2006 4:52 pm
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