Hi,

I tried to create a page by PHP codes. However, it did not work out. It seems that PHP codes were not parsed since I got a blank page. The input form was set to "PHP code". Any suggestion about this problem would be appreciated. Thanks.

Comments

rvk’s picture

Silly question perhaps, but I don't know what else you could've done wrong so: Did you still use php-tags?

Actually never mind in that case you don't get a blank page. It must be a bug in your code.

Anonymous’s picture

Hi, thanks for the response. I tried to use PHP code like

echo "test";

I got a blank page. If I removed php tags, just wrote something like
echo "test";

then 'echo "test";' would be displayed on page.

If I used the codes like
<?php
echo "test";

I got a blank page again.

Anonymous’s picture

Hi, thanks. I foud another posting about this problem http://drupal.org/node/226102. I changed the settings of input format and it fixed my problem. I agree with that author, there is something wrong in the initial status.

rvk’s picture

Sounds like it indeed!

dragans’s picture

Disable WYSIWYG module and it will work!
I tried workaround by not allowing access permission to WYSIWYG for a new created role, however WYSIWYG kept showing!