ostsolutionss / wp-ajax-newsletter

Automatically exported from code.google.com/p/wp-ajax-newsletter
0 stars 0 forks source link

Error when i want to use "option ->newsletter" #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install plug in
2. install widget
3. activate plug in and widget
4. go to "option->newsletter"

What is the expected output? What do you see instead?
Warning: newsletterconfig(backoffice.php) [function.newsletterconfig]: 
failed to open stream: No such file or directory 
in /mnt/137/sdb/f/2/mathieu.lambert1/wp-content/plugins/wp-ajax-
newsletter.php on line 200

Warning: newsletterconfig() [function.include]: Failed 
opening 'backoffice.php' for inclusion 
(include_path='/mnt/137/sdb/f/2/mathieu.lambert1/include:.:/usr/php4/lib/ph
p') in /mnt/137/sdb/f/2/mathieu.lambert1/wp-content/plugins/wp-ajax-
newsletter.php on line 200

What version of the product are you using? On what operating system?

I use wordpress 2.3 (www.mathieulambert.com)

Please provide any additional information below.

Original issue reported on code.google.com by mathieu_...@yahoo.fr on 15 Apr 2008 at 3:46

GoogleCodeExporter commented 9 years ago
you seem to have not extraced all files correctly.

I also got the blank admin options page, but it was dued to the large amount of 
post
queried from db at first run since install, dued to the fact the plugin by 
default
takes all post since 1st Jan 1970!

To fix this I edited wp-ajax-newsletter.php around lines 240

replaced:

add_option("snews_last","1970-01-01 00:00:00");
add_option("snews_last_letter","1970-01-01 00:00:00");

with:

update_option("snews_last",$t = date("Y-m-d H:i:s"));
update_option("snews_last_letter",$t);

So that the plugin activation date is taken as reference instead of 1st Jan 
1970. I
dont know if this could be okay for you, since not all posts will be sent when 
your
first newsletter will be sent, but only those who where created after the 
plugin was
enabled, but it was required for me to let me access options page...

Original comment by ban...@gmail.com on 24 Apr 2009 at 9:39