Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 03:59 am EST
Geeklog Forums
PHP tags are not working inside static pages
Status: offline
sharmisesha
Forum User
Newbie
Registered: 09/10/13
Posts: 7
Dear all,
Am using geeklog 2.0.0 version for project. I have created static pages with PHP tags. But php tags are not executed. I have enabled staticpages.php option for static page admin group. And php enabled for static pages.
Kindly suggest.
Am using geeklog 2.0.0 version for project. I have created static pages with PHP tags. But php tags are not executed. I have enabled staticpages.php option for static page admin group. And php enabled for static pages.
Kindly suggest.
6
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Status: offline
sharmisesha
Forum User
Newbie
Registered: 09/10/13
Posts: 7
I have followed the steps given in the document. Am getting empty page.
8
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
An empty page may be an indication of a problem in your PHP code. Debugging PHP code in a static page is a bit of a pain, unfortunately.
Try something simple first, maybe an echo statement, to confirm that it works at all and then slowly add parts of your code. Keep in mind that your PHP code will run as part of a function, so global variables need to be declared as such.
bye, Dirk
Try something simple first, maybe an echo statement, to confirm that it works at all and then slowly add parts of your code. Keep in mind that your PHP code will run as part of a function, so global variables need to be declared as such.
bye, Dirk
12
9
Quote
Status: offline
sharmisesha
Forum User
Newbie
Registered: 09/10/13
Posts: 7
I have created a static page with simple echo statement. But it was not worked
9
10
Quote
Status: offline
sharmisesha
Forum User
Newbie
Registered: 09/10/13
Posts: 7
in HTML formatted? Am not able to get your point. Can you explain me in detail. So that i can check it correctly.
11
28
Quote
Status: offline
sharmisesha
Forum User
Newbie
Registered: 09/10/13
Posts: 7
There is no option called "Post Mode" in static page editor. Do i need to enable any plugin for that?
6
9
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Then you should be fine since you don't have the advance editor enabled.
It must be another issue. Did you follow Dirk's link and follow the instructions there?
ie enabled the permission right etc???
One of the Geeklog Core Developers.
It must be another issue. Did you follow Dirk's link and follow the instructions there?
ie enabled the permission right etc???
One of the Geeklog Core Developers.
7
4
Quote
Status: offline
sharmisesha
Forum User
Newbie
Registered: 09/10/13
Posts: 7
PHP tags are working. But am not able to include PHP file using header() function. Pls suggest
8
21
Quote
All times are EST. The time is now 03:59 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