Posted on: 09/18/03 11:57am
By: diesel
Hello. I am running the current version of GL (1.3.8-1) and the new Static Pages Plugin. Both of these were done as upgrades from previous versions. For some reason, when I go to create a new Static Page, the checkbox that allows you to evaluate PHP code is not appearing. It never has really. I was wondering if any of you have seen this problem or could suggest a fix. Thanks a ton!
Re:Static Pages Plugin--PHP checkbox not appearing
Posted on: 09/18/03 12:49pm
By: exaurdon
It appears that the user which you are using does not have staticpages.php rights. I\'m not quite sure what would have caused this, except it probably had something to do with your upgrade from a previous version. The staticpages plugin hides the php checkbox if your user does not have this right (which is a seperate right from teh saticpages.edit right.
BIG WARNING - Make sure thatanyone who has this right is someone you would trust with a root login to your site, because they can do all sorts of nasty stuff by writing any php code they want.
To give this right:
Create (or edit) a \'static pages php\' group. Check the staticpages.edit staticpages.php and staticpages.delete checkboxes, and save the group. Then, just add your user to the \'static pages php\' group, and you should have access.
Exaurdon~
Re:Static Pages Plugin--PHP checkbox not appearing
Posted on: 09/18/03 01:15pm
By: diesel
OK. I guess that is where the problem resides then. There is no staticpages.PHP right at all. On a different GL site where I did a fresh install, it is there and the php functionality in the static pages plugin works like a charm.
Any ideas where this right is, or what I would have to do to create it?
Re:Static Pages Plugin--PHP checkbox not appearing
Posted on: 09/18/03 02:37pm
By: Dirk
Something may have gone wrong during the upgrade. Check that the version number of the static pages plugin (listed under \"Plugins\" from the Admins block) is really 1.3.
To add the staticpages.PHP feature manually, you would have to execute this MySQL request:
INSERT INTO gl_features (ft_name, ft_descr) VALUES (\'staticpages.PHP\',\'Ability to use PHP in static pages\');
(replacing
gl_features
with the actual name of your features table, if necessary)
You should then be able to add that feature to the Static Page Admin group, which should enable all Static Page Admins to create pages with PHP in them.
bye, Dirk
Re:Static Pages Plugin--PHP checkbox not appearing
Posted on: 09/18/03 04:25pm
By: diesel
That worked Dirk. Thanks for your assistance. You guys rock!