Closed (fixed)
Project:
Premium
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2008 at 14:47 UTC
Updated:
19 Jul 2008 at 16:49 UTC
I have installed the Premium Module for 5.x When I try to restrict access on pages containing PHP codes , the page throws a fatal error when viewed in anonymous mode. On logging in the page works as expected. It says that there is a redeclaration of a function in common.inc file. I have renamed the function in my PHP code but it still shows the message.
I tried the same thing in my local server but didn't get any error anywhere.
How do I correct this?
I had started a forum topic here: http://drupal.org/node/281224
As per the suggestion I added if(!function_exists) but after that the module doesnt seem to work. Anonymous Users see the page.
Comments
Comment #1
allie mickaCan you determine whether this is a Premium issue or an issue with your PHP code? That is, try this with a new node that has a PHP input format, but empty contents.
If that node doesn't throw any errors then the problem is with the code and not with premium itself. Alas, this is not the best place to report issues like that.
If it is, in fact, your code then you'll probably need to be more specific ( e.g. paste the sample code ) on your forum post.
Comment #2
rsomaskandan commentedoh sorry about that Allie.... will check it out.....thanks....
Comment #3
allie mickaI'm closing this for lack of feedback. If you can provide details on reproducing this, please reopen!