Well, I have created a block with some php in it. The php reads the a file (fopen) and some information in it and displays it in a new format. 'Till yesterday it was all working fine. The format of the file I have been reading has changed so I changed the php code. Actually not much changed just a couple of lines inserted in the original file so I changed my php code to read few more lines. I just increased the number in the array that is all. When I submitted the newly changed code it didn't accept it. Drupal gave me Page not found error. When I clicked again in the blocks menu to see the code it was empty. Then I tried several times. After that I only inserted echo "hello world"; to see if php is working and it worked. I also updated the code as a seperate php page and it also worked. I reduced the code to see if the problem is fopen (there was only fopen and fclose) and I got the same Page not found error. Do you people have any idea what causes this because it was working few hours ago. By working I mean it was reading the data from the file that means fopen was working.

Thanks a lot in advance.

Comments

kingofsevens’s picture

I tried to include the test file I mentioned above and it worked fine. The test file reads and displays the info and the block includes this file. It is a works as a workaround but I really appreciate the answers to the original question.

Kirk Zurell’s picture

Have you enabled the php settings in your .htaccess (or other config) to display any other errors?

php_value display_errors "1"
php_value display_startup_errors "1"
php_value error_reporting 8191

They might give you something in advance of the "Page not found" response.

Kirk.