NMS archive list and messages

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Stryker777
Forum Members
Forum Members
Posts: 17
Joined: Sat Mar 08, 2008 4:21 am

NMS archive list and messages

Post by Stryker777 »

When clicking on a link in the archive list of newsletter messages, I get the following error:
"One or more required parameters are missing from the request. This action cannot proceed"

I am using mod-rewrite and the link I get in the archive list to go to the message is in the following structure:
http://www.mydomain.com/NMS/message/3.html

I looked at the action.showmessage.php file and it appears it is that it is not getting the message id here:

Code: Select all

if( !isset($params['msgID']) )
  {
    $this->_DisplayErrorPage($id,$params,$returnid,
			     $this->Lang('error_insufficientparams'));
    return;
  }
Can anyone help me with where this is filled or where the link is being parsed out?  Even better, does anyone know how to fix it already lol.
Thanks
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: NMS archive list and messages

Post by calguy1000 »

Looks like pretty url support for NMS is very broken.  I would suggest you don't use it.
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.
Stryker777
Forum Members
Forum Members
Posts: 17
Joined: Sat Mar 08, 2008 4:21 am

Re: NMS archive list and messages

Post by Stryker777 »

Meaning turn off mod-rewrite for the whole site?
Maybe I should just fix it lol.  This is for a homeschool site that uses the website for its main comm.  Preferences and unsubscribe do work, just so everyone knows.  So far, this is the only one that does not so I will post it when I figure out where to fix it.
Thanks Calguy.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: NMS archive list and messages

Post by calguy1000 »

NMS can read pretty urls but it doesn't generate them.... the functionality is just not properly implemented.

To get this one function working you need the returnid (which isn't given on the url) and there's no preference for it in the application, so the URL itself has to be changed.

Then, the value parameter has to be changed to msgID.  this part is easy.
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.
Stryker777
Forum Members
Forum Members
Posts: 17
Joined: Sat Mar 08, 2008 4:21 am

Re: NMS archive list and messages

Post by Stryker777 »

Thanks for the heads up :) I will get it fixed today.
Take care and great job on everything.
Stryker777
Forum Members
Forum Members
Posts: 17
Joined: Sat Mar 08, 2008 4:21 am

Re: NMS archive list and messages

Post by Stryker777 »

Found the problem.  The message value is not going into $params['msgID'] it is going into $params['uniqueid']
So, to fix it you can open action.showmessage.php and edit every msgID to uniqueid or for code integrity, just add the following  which can easily be removed later if needed for future versions:
replace:

Code: Select all

if( !isset($params['msgID']) )
  {
    $this->_DisplayErrorPage($id,$params,$returnid,
			     $this->Lang('error_insufficientparams'));
    return;
  }
with

Code: Select all

if( !isset($params['msgID']) )
  {
        if(isset($params['uniqueid']))$params['msgID']=$params['uniqueid'];
	else{
               $this->_DisplayErrorPage($id,$params,$returnid,
			     $this->Lang('error_insufficientparams'));
               return;
	         }
  }

Thats it.  All fixed now.

Thanks again.
Last edited by Stryker777 on Mon Mar 10, 2008 4:12 pm, edited 1 time in total.
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: NMS archive list and messages

Post by jack4ya »

Does not work for me...  :'(

From the archive list to the detail... > wrong detail/newsletter is shown
It shows the right messageid, subject line, tect message, but wrong html message.
When more htmlcontents are made, all are wrong

simplified piece of output on detail page

Code: Select all

Message ID  	1
Subject 	1
...
Text Message 	1
HTML Message 	2
Last edited by jack4ya on Mon Jul 07, 2008 3:12 pm, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”