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

allie micka’s picture

Can 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.

rsomaskandan’s picture

oh sorry about that Allie.... will check it out.....thanks....

allie micka’s picture

Status: Active » Closed (fixed)

I'm closing this for lack of feedback. If you can provide details on reproducing this, please reopen!