PDA

View Full Version : cant access newsletter.php on my site.


Hornstar6969
05-15-2008, 06:44 AM
After upgrading to the new version, I can no longer access the newsletter.php page, I get a:

Hornstar6969, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Have you verified your account So you can post and access special features? If not click Here







Usergroup Manager: I have both set to YES for GAZ

Everything else is set right, Ive been through the settings several times, but I still get the cant access error.

Any ideas?

Morgan
05-15-2008, 07:28 AM
Make sure the newsletter and issue are marked as active.

Hornstar6969
05-15-2008, 08:12 AM
More errors reported by members


Hey, I just tried to unsubscribe to the newsletter, but it says that it can't find my subscription information.
If you could follow that up..thanks.

Hornstar6969
05-15-2008, 08:12 AM
Make sure the newsletter and issue are marked as active.


They are, as stated in the 1st post. :/

Morgan
05-15-2008, 03:52 PM
Check that your usergroup is ticked in the 'Usergroups allowed to subscribe' section for each newsletter.

Hornstar6969
05-15-2008, 08:43 PM
Check that your usergroup is ticked in the 'Usergroups allowed to subscribe' section for each newsletter.

yes, only the banned usergroup is not ticked, all the rest are.



2nd, im getting more of these emails:


When I click on your newsletter: "Unsubscribe to this newsletter"
It leads me to here:

http://www.gamerzneeds.net/forums/newsletter.php?do=unsubscribe&u=97045&h=&n=1

And says:
"Your subscription information could not be located. If you feel that you have reached this message in error, please contact the administrator"

Morgan
05-16-2008, 04:04 AM
ReFTP the newsletter.php file to your server. Maybe the old version is still there. Also rebuild bitfields:

http://www.gamerzneeds.net/forums/admincp/index.php?do=buildbitfields

There is only one place in the newsletter.php file where print_no_permission occurs: nothing to show, no permission, not active. As to the other issue, not yet sure.

Hornstar6969
05-16-2008, 06:10 AM
After installing the plugin again with overwrite set to yes, it seems to have fixed things up.

Morgan
05-16-2008, 06:34 AM
Strange in a good way, maybe MySQL dropped out at some point with the first import, not sure, but as to the second issue, am looking into it and will post when resolved.

henrikhansen
05-16-2008, 05:41 PM
After installing the plugin again with overwrite set to yes, it seems to have fixed things up.

Nice to hear it works for someone, I have tried everything mentioned in this thread and have now given up for the time being - cannont access newsletter.php.

EDIT: problem solved, I had changed newsletter.php to another scriptname

Morgan
05-17-2008, 06:29 PM
More errors reported by members

Hey, I just tried to unsubscribe to the newsletter, but it says that it can't find my subscription information.
If you could follow that up..thanks.



Revert the following two templates if changed from their originals, grab the GAZ package again, and re-import the product-gaz.xml file via the ACP (do not uninstall, do allow overwrite), and then afterwards reapply any template changes you want:

gaz_html_footer
gaz_text_footer

Alternatively, in the two listed templates find:

<if condition="$show['unsubscribe']">

And replace with:

<if condition="$show['unsubscribe'] AND $unsubscribehash">

rrr
05-18-2008, 04:28 PM
Revert the following two templates if changed from their originals, grab the GAZ package again, and re-import the product-gaz.xml file via the ACP (do not uninstall, do allow overwrite), and then afterwards reapply any template changes you want:

gaz_html_footer
gaz_text_footer

Alternatively, in the two listed templates find:

<if condition="$show['unsubscribe']">

And replace with:

<if condition="$show['unsubscribe'] AND $unsubscribehash">

Does the file available in the GAZ download area already have this fix?

Morgan
05-19-2008, 04:41 PM
Yes, it does.

rrr
05-23-2008, 07:13 PM
I've tried renaming newsletter.php, I've tried making sure the right usergroup boxes are checked. I've reuploaded newsletter.php

I rebuilt the bitfields and that changed the error from "you do not have permission to access the newsletter area" to the default vbulletin no access error.

This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Morgan
05-23-2008, 07:34 PM
Please check all my replies in this thread, as there is nothing more that I can offer that what I already posted. Maybe if you do this (http://www.thevbgeek.com/showpost.php?p=24497&postcount=8) it will resolve itself.

rrr
05-23-2008, 08:17 PM
Please check all my replies in this thread, as there is nothing more that I can offer that what I already posted. Maybe if you do this (http://www.thevbgeek.com/showpost.php?p=24497&postcount=8) it will resolve itself.
I've gone through the replies in the thread and tried them. I just tried re-importing the gaz product xml file and allowing overwrite and it's still not letting me view the newsletter page.

I'm hoping that there is something more you can offer in the way of support to get this working.

Morgan
05-24-2008, 10:51 AM
Here is the code where I think you are getting the print_no_permission message, save for the bold red bit:

$nids = '';

if (is_array($newsletters) && is_array($membergroups))
{
foreach ($newsletters AS $x => $temp)
{
$ok = false;
$newsletters[$x]['usergroups'] = explode(',', $newsletters[$x]['usergroups']);

if (is_array($newsletters[$x]['usergroups']))
{
foreach ($membergroups AS $value)
{
if (in_array($value, $newsletters[$x]['usergroups']))
{
$ok = true;
break;
}
}
}
if (!$ok)
{
unset($newsletters[$x]);
}
else
{
$nids .= ($nids ? "," : "") . intval($x);
}
}
}

if (!$nids)
{
die('This is the place.');
print_no_permission();
}

You can put the bold red bit in the newsletter.php file and see if that is the place. If so, then either there is no newsletter, the newsletter is not active, there is no issue for the newsletter, the issue is not active, or your usergroup is not allowed access to the newsletter.

rrr
05-24-2008, 04:09 PM
Here is the code where I think you are getting the print_no_permission message, save for the bold red bit:

$nids = '';

if (is_array($newsletters) && is_array($membergroups))
{
foreach ($newsletters AS $x => $temp)
{
$ok = false;
$newsletters[$x]['usergroups'] = explode(',', $newsletters[$x]['usergroups']);

if (is_array($newsletters[$x]['usergroups']))
{
foreach ($membergroups AS $value)
{
if (in_array($value, $newsletters[$x]['usergroups']))
{
$ok = true;
break;
}
}
}
if (!$ok)
{
unset($newsletters[$x]);
}
else
{
$nids .= ($nids ? "," : "") . intval($x);
}
}
}

if (!$nids)
{
die('This is the place.');
print_no_permission();
}

You can put the bold red bit in the newsletter.php file and see if that is the place. If so, then either there is no newsletter, the newsletter is not active, there is no issue for the newsletter, the issue is not active, or your usergroup is not allowed access to the newsletter.
If the issue is "active", that means it will be sent on the next cron run right?

Morgan
05-27-2008, 12:06 AM
If the issue is active, then yes, it is fair game for the cron, though you can disable the send cron via the ACP -> Scheduled Tasks -> Scheduled Task Manager -> Disable GAZ Send Queue.