Problem with adding new users to newsletter.

4 years 11 months ago - 1 year 7 months ago #1 by Pawe
I have a problem with NSPro on one of my website. I have update websiteto J3.6.2 and update the NSPro package.

There is a problem to add new user to our mailing list.

Sometimes when you type your name and email and press Subscribe button the email field is selectecd by red border.
Sometimes modul doesn't respond - nothing happend.

I use NSPro on many pages and the problem is on all website.

Usually on home page everything is ok but on subpages there is a problem.

This same problem is when I add to menu NS Pro Subscribe Form. When I try to add new user nothing happend

The website adress are:
http://stantonio.pl/o-restauracji
http://derelefant.com/restauracja

Example
http://podwale25.pl/ <--- work fine
http://podwale25.pl/o-restauracji <--- doesn't work

Thanks for help!

Please Log in or Create an account to join the conversation.

4 years 11 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Problem with adding new users to newsletter.
Hello Pawe and thank you for posting.

Since your post, I have tried several times to see the pages you linked to, but I cannot seem to be able to open them and see the problem.
My guess is that the problem relates to your sites lacking the <base> tag, and thus the module posts to a wrong URL, or that there is some Javascript error somehow.

In an earlier version of NS Pro, this problem could also appear if you had white-spaces in your Unique Form ID in the module or menu item parameters. Make sure that the Unique Form ID is only lowercase letters and underscores, like "stantonio_" or "podwale_" (without the quotes) and that there is a proper <base> tag in your template and this problem should be solved.

Please also make sure that you always use the latest available version.
Thanks again.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

3 months 4 weeks ago #3 by Casper
I don't know if my problem is related, but I cannot add subscription with the module. The wheel keeps spinning.
I just installed NS Pro and I am trying to find my way.
With the user subscription plugin it works fine.
My website is https://germaansegeneeskunde.info
I don't know exactly what I should add to the index.php of the template.

Can you help me with this?
Kind regards,
Casper Rutten

Please Log in or Create an account to join the conversation.

3 months 4 weeks ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic Problem with adding new users to newsletter.
Hello Casper and thank you for posting.
I can see the error. Have you designed the template yourself?
If yes, can you try to write the following, before your <!DOCTYPE> declaration?
$document = JFactory::getDocument();
$document->setBase(JURI::base());

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

3 months 4 weeks ago #5 by Casper
Thanks for your quick reply!
No, it's a color3 template from http://www.accessibletemplate.com/
I've inserted your code in their component.php file, but I don't know if I did it right, therefor I send you the code block.

But the wheel keeps endless turning without subscription.

By the way, can I insert a smtp-header somewhere? My smtp provider needs it to process my bulk mails (Header: X-PM-Message-Stream: newsletter).

Kind regards,
<?php
/**
 * @package   Color 3 (free) - accessibletemplate
 * @version   4.0.0
 * @author    Francesco Zaniol, accessibletemplate - http://www.accessibletemplate.com
 * @copyright Copyright (C) 2011-Present Francesco Zaniol
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 **/
defined('_JEXEC') or die( 'Restricted access' );

//If >Joomla3, add bootstrap
if(substr(JPlatform::getShortVersion(), 0, 2) === '12' || substr(JPlatform::getShortVersion(), 0, 2) === '13'){
    JFactory::getDocument()->addStyleSheet($this->baseurl . '/media/jui/css/bootstrap.min.css');
    JHtml::_('bootstrap.framework');
}
$document = JFactory::getDocument();
$document->setBase(JURI::base());
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
	<jdoc:include type="head" />
</head>
<body class="contentpane" style="padding:10px">
	<jdoc:include type="message" />
	<jdoc:include type="component" />
</body>
</html>

Please Log in or Create an account to join the conversation.

3 months 3 weeks ago #6 by Christopher Mavros
Replied by Christopher Mavros on topic Problem with adding new users to newsletter.
Hi again!
Please remove the code I mentioned from your template index.php file.

I am currently working on a very large scale update for NS Pro, so I have released a temporary patch to fix this.
Please update to version NS Pro 2.4.750 and let me know if the error is resolved.

Thanks again.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros