Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 02:26 am EST

Geeklog Forums

Static Pages Plugin--PHP checkbox not showing


Status: offline

visionquest

Forum User
Newbie
Registered: 11/27/03
Posts: 6
I am running GL 1.3.9 with Static Pages enabled.

This exists in the DB
gl_features (ft_name, ft_descr) VALUES ('staticpages.PHP','Ability to use PHP in static pages');

The config.php file has ['allow_php'] set to 1

I am logged in with root access with Static Page Admin selected.

However this message is on the new static pages page:
"The use of PHP in static pages is not activated."

Any help would be appreciated.

Regards,
Noel
"Blessed are those who are flexible for they will not be bent out of shape."
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Make sure you also have

$_SP_CONF['allow_php'] = 1;

in the static pages' config.php file, /path/to/geeklog/plugin/staticpages/config.php

bye, Dirk
 Quote

Status: offline

visionquest

Forum User
Newbie
Registered: 11/27/03
Posts: 6
Make sure you also have

$_SP_CONF['allow_php'] = 1;

in the static pages' config.php file, /path/to/geeklog/plugin/staticpages/config.php


Yes, this has already been done.

Regards,
Noel

"Blessed are those who are flexible for they will not be bent out of shape."
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So did you add the staticpages.PHP permission to the Static Pages Admin group (or any other group), as explained in the documentation?

bye, Dirk
 Quote

Status: offline

visionquest

Forum User
Newbie
Registered: 11/27/03
Posts: 6
OK that was it. Much appreciated.

Thanks for the pointer to the right place

I knew I was missing something simple.

Best regards,
Noel
"Blessed are those who are flexible for they will not be bent out of shape."
 Quote

All times are EST. The time is now 02:26 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content