| Author |
Message |
x-byte
Joined: 14 Nov 2005 Posts: 170
|
|
|
|
 |  | for me the admin panel for it is working perfect but I am having a problem with adding the form ...
when I add the cn_subscribe();
it is showing
Fatal error: Call to undefined function: cn_subscribe()
what's wrong ? |
Have you enabled the "CN functions" plugin?
I have a different problem. I've checked that the text files have write access, but it doesn't work. Here's the error message:
 |  | Warning: file(): Unable to access ../data/emails.txt in /usr/home/web/wno65308/wii-fan.net/artikler/plugins/newsletter.php on line 349
Warning: file(../data/emails.txt): failed to open stream: No such file or directory in /usr/home/web/wno65308/wii-fan.net/artikler/plugins/newsletter.php on line 349
Warning: fopen(../data/emails.txt): failed to open stream: No such file or directory in /usr/home/web/wno65308/wii-fan.net/artikler/plugins/newsletter.php on line 350
Warning: Invalid argument supplied for foreach() in /usr/home/web/wno65308/wii-fan.net/artikler/plugins/newsletter.php on line 352
Warning: fwrite(): supplied argument is not a valid stream resource in /usr/home/web/wno65308/wii-fan.net/artikler/plugins/newsletter.php on line 360 |
I can add emails manually.
EDIT:
And just another ting. How do I enable use of letters not in the english alphabet? Using UTF-8 for instance.
|
|
| Mon Jan 22, 2007 1:57 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 2027 Location: US |
|
|
|
I had to change the directory it was pointing to in newsletter.php for the emails.txt file.. maybe try putting ../../emails.txt instead? Or maybe type full URL. I had a similar error.
_________________ www.scodal.com is an example of cnr as a social forum - www.scottdizzle.com is an example of cnr as a personal website to share whatever cool stuff i feel like. i have another, but it's nsfw. pm me  |
|
| Mon Jan 22, 2007 8:09 am |
|
 |
master7

Joined: 11 Apr 2006 Posts: 27
|
|
|
|
 |  | I had to change the directory it was pointing to in newsletter.php for the emails.txt file.. maybe try putting ../../emails.txt instead? Or maybe type full URL. I had a similar error. |
I had tha same problems.
The solution is to change paths in newsletter.php file.
|
|
| Mon Jan 22, 2007 8:20 am |
|
 |
x-byte
Joined: 14 Nov 2005 Posts: 170
|
|
|
|
*PROBLEM SOLVED* (in a way)
Seems I have mistaken an old version of this file which I had on my PC. I redownloaded it and it seems to be running mostly fine. Although I can't seem to add emails via: cn_subscribe();
Seems it doesn't write to emails.txt
EDIT: And one more problem.
How do I clear the newsletter content? It should remove the newsletter data when the mail is sent right? Or is there a different way?
|
|
| Mon Jan 22, 2007 10:27 am |
|
 |
maqs

Joined: 20 Aug 2006 Posts: 112 Location: Lund, Sweden |
|
|
|
It clears the data when it's time for you to post a new newsletter. So don't worry about that. 
_________________ www.eldar.se
marcus@eldar.se |
|
| Mon Jan 22, 2007 3:23 pm |
 |
 |
x-byte
Joined: 14 Nov 2005 Posts: 170
|
|
|
|
No it did not do that when I tested....
|
|
| Mon Jan 22, 2007 7:07 pm |
|
 |
flesh

Joined: 04 Mar 2006 Posts: 89 Location: Poland |
|
|
|
 |  |  |  | for me the admin panel for it is working perfect but I am having a problem with adding the form ...
when I add the cn_subscribe();
it is showing
Fatal error: Call to undefined function: cn_subscribe()
what's wrong ? |
Have you enabled the "CN functions" plugin?
|
yes 
|
|
| Mon Jan 22, 2007 7:21 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
 |  | for me the admin panel for it is working perfect but I am having a problem with adding the form ...
when I add the cn_subscribe();
it is showing
Fatal error: Call to undefined function: cn_subscribe()
what's wrong ? |
You have to include head.php before using cn_subscribe().
 |  | It should remove the newsletter data when the mail is sent right? |
Why? The old newsletter data will only be replaced by the new data.
|
|
| Mon Jan 22, 2007 8:38 pm |
|
 |
x-byte
Joined: 14 Nov 2005 Posts: 170
|
|
|
|
Thanks for the info FI-DD
Do you have an idea of why I can't add emails via cn_subscribe() ? From the plugin works fine.
|
|
| Mon Jan 22, 2007 8:43 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
I guess it's a path problem.
Play around with the paths in the function cn_subscribe().
|
|
| Mon Jan 22, 2007 9:28 pm |
|
 |
flesh

Joined: 04 Mar 2006 Posts: 89 Location: Poland |
|
|
|
 |  |  |  | for me the admin panel for it is working perfect but I am having a problem with adding the form ...
when I add the cn_subscribe();
it is showing
Fatal error: Call to undefined function: cn_subscribe()
what's wrong ? |
You have to include head.php before using cn_subscribe().
 |  | It should remove the newsletter data when the mail is sent right? |
Why? The old newsletter data will only be replaced by the new data. |
yes I know... the form is showing and when I enter the e-mail and the name and when I press ok it shows the same page but without the form and the e-mail is not added ... the url that is shown after pressing ok is "http://mysite.com/index.php/zz303/?doaction=subscribe" and the e-mail is not added 
Last edited by flesh on Wed Jan 24, 2007 11:59 am; edited 1 time in total |
|
| Tue Jan 23, 2007 6:27 pm |
|
 |
flesh

Joined: 04 Mar 2006 Posts: 89 Location: Poland |
|
|
|
 |  |
yes I know... the form is showing and when I enter the e-mail and the name and when I press ok it shows the same page but without the form and the e-mail is not added ... the url that is shown after pressing ok is "http://mysite.com/index.php/zz303/?doaction=subscribe" and the e-mail is not added  |
can someone help ? I am using friendly urls ... is it the problem ?
because the url is something like this "http://mysite.com/index.php/zz303/?doaction=subscribe"
|
|
| Wed Jan 24, 2007 11:55 am |
|
 |
astrostart

Joined: 11 Feb 2007 Posts: 124 Location: The Netherlands |
|
|
|
cn_subscribe doesn't work for me either
Well, I get the boxes, but when I fill them in with a name and an e-mail and I add it, I just get a blank screen.
_________________ My site: http://www.astrostart.nl | Thanks to everyone here who has helped me! |
|
| Fri Feb 23, 2007 2:53 pm |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Has anyone figured this problem out? I changed the paths in cn_subscribe to be specifically pointed at the emails.txt and newsletter.txt but I still get a blank screen when I put in a name and an e-mail address. It doesn't get added to the database and if I put in a wrong email (like 12at3.com) it doesn't give me an error, it just shows the blank screen.
Any other suggestions FI-DD? I saw that maqs (www.eldar.se) works on his site but I couldn't figure out how he did it...
Thanks for any help on this,
-HIM
|
|
| Tue Feb 27, 2007 3:00 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
I fixed a small bug. Please download it again.
|
|
| Tue Feb 27, 2007 8:37 pm |
|
 |
|