Page 1 of 1

"Sorry there are currently no newsletters available"

PostPosted: 1:36pm, Fri 12 Jun, 2009
by Statick
I have 4 lists, two of which are active and two are not.

1 - inactive - 1 member
3 - active - 2088 members
4 - active - 1051 members
5 - inactive - 2699 members

there used to be a list ID 2 which has been deleted.

yet when i go to the user preferences page, i get this error "Sorry there are currently no newsletters available"
i'm using v2.10.10

is this because i deleted list #2 ?

what can i do about this ?

Re: "Sorry there are currently no newsletters available"

PostPosted: 2:08pm, Fri 12 Jun, 2009
by Statick
ok, i've had a look at the code, and it's clearly not because i deleted a list.

for some reason, when the preferences page calls the ListAvailableList() function, this is the query it generates :

Code: Select all
SELECT * FROM (list) where id in (1) order by listorder, name


so it's only checking the first list... now i just need to figure out why

the decision to only search "where id in (1)" is being passed from the calling parameters, using $data[lists] as the passed parameter. as i don't see any reason to not search all of the lists at this point, i'm going to edit this and see what happens

Re: "Sorry there are currently no newsletters available"

PostPosted: 2:13pm, Fri 12 Jun, 2009
by Statick
sure enough, i seem to have fixed it, although i'm not sure that simply removing code is the right thing to do!

simply editing line 392 of index.php from this :
Code: Select all
$html .= ListAvailableLists($userid,$data["lists"]);


to this :
Code: Select all
$html .= ListAvailableLists($userid,"");


has fixed the problem, and now the active lists are displayed as expected.

Re: "Sorry there are currently no newsletters available"

PostPosted: 11:06pm, Tue 11 Aug, 2009
by ajaygautam
This solution did not work for me. However, editing line #512 in the same file from

Code: Select all
$html .= ListAvailableLists("",$data["lists"]);


to

Code: Select all
$html .= ListAvailableLists("");


did the trick for me.

Using version 2.10.10

I wonder what the developers have to say about this. If any devs are reading this, please add your views.

Re: "Sorry there are currently no newsletters available"

PostPosted: 2:50am, Sat 29 Aug, 2009
by technobob
Thanks Ajay. Your cure worked for me too.

Re: "Sorry there are currently no newsletters available"

PostPosted: 7:04pm, Tue 02 Feb, 2010
by RonFred
Thanks Ajay:

Your proposed fix on line 512 of ...\lists\index.php file worked perfectly for me as well. Thank you.

After installing version 2.10.10 I have been very disappointed in the code quality and management of all that needs to be fixed. Using Ajay's forum fix here although very nice to find, does not seem to be the correct way for a code base team to manage errors that are 5 to 6 months old. This is the third really stupid error I have had to find and fix manually. I have seen the bug/fix list for this version and see that there are at least 20 other errors that I am likely to have to find through accidental discovery while my newsletter system is live and customer facing.

My original version 2.10.2 had no errors to fix - I am probably going to have to revert back to that old version if code quality and maintenance remains this poor. Sorry, but FOSS projects that are this popular are just not as bad as this in my experience on other projects. I suppose the governance behind this project is falling apart? If I can be of help, let me know.

Best regards,

Ron

Re: "Sorry there are currently no newsletters available"

PostPosted: 3:55am, Wed 24 Mar, 2010
by H2B2
Thanks the info, though I cannot reproduce this issue on my 2.10.10 installation. Nor does this seem to be a general problem since there a just a few users reporting this issue.

Please mention whether this issue occurred on a vanilla installation, i.e. prior to having made any code modifications, and please include the usual info on your server configuration.

Opened the following entry in the bug tracker: http://mantis.phplist.com/view.php?id=15425
You are welcome to add your info/insights to that report.

Re: "Sorry there are currently no newsletters available"

PostPosted: 11:01pm, Wed 02 Jun, 2010
by nhoeller
I ran into this exact problem after a clean install of phplist when I created a new mailing list. The bypass describe above got me up and running. Further testing shows that my problem as a 'user error' - the new mailing list had not been associated with the subscriber page I was using. Once I had edited the subscriber page and checked off the new mailing list, I was able to subscribe using the original index.php code.

Re: "Sorry there are currently no newsletters available"

PostPosted: 1:44pm, Fri 28 Jan, 2011
by solmar
Just added my explanation in Mantis. Hope it helps.

It is not a bug, the system works, but the UI allows the list admin to generate this weird result.

Using 2.11.5

My steps: created a list, let it "inactive", created a subscribe page, checked that list.
Result: visiting the subscribe page, it tries to expose the selected list, but is told that the same is inactive. As the page is left with no active lists, the corresponding message appears.

My suggestions:
- Either in subscribe page's create/edit inform the admin that lists selected here "will be made active", repeating the concept in list's create/edit form.
- Or limit selectable lists (in subscribe page's create/edit) to those that are active.

Re: "Sorry there are currently no newsletters available"

PostPosted: 3:42pm, Sat 12 Mar, 2011
by mattrock
I would hesitate to delete or modify any core files. The following page is a wonderful resource for trouble-shooting your PHPlist installation and issues. I had the same issue (no newsletters available) and was resolved easily without having to delete/modify any code.

Cheers!

http://www.asiteaboutnothing.net/c_phplist.html

Re: "Sorry there are currently no newsletters available"

PostPosted: 5:52am, Mon 08 Oct, 2012
by jenpen
Thanks mattrock, that page is gold.

Re: "Sorry there are currently no newsletters available"

PostPosted: 10:53am, Sun 28 Oct, 2012
by susheel3010
You’ve created and activated a list. It shows on your subscribe page. You click on it, and it says “Sorry there are currently no newsletters available”. On the admin page, you need to click on “Subscribe Pages”, create a page, and, MOST IMPORTANT, all the way at the bottom, associate it with your list (“Select the lists to offer”).

http://www.susheelonline.com/2012/10/28 ... available/