Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Zoologico on
Hi folks,
I could really use some help here.
Today I am trying to use my site and have encountered this error:
Fatal error: Cannot run code from this file in conjunction with non encoded files in /home/jinfinit/public_html/example.com/themes/greenhouse/block.tpl.php on line 1011
The thing is that there is no such line in block,tpl.php.
Furthermore it happens on all the themes, not just the greenhouse one.
Any ideas?
Comments
I dug around some more and I
I dug around some more and I am seeing even crazier behavior.
When I go to a page, it can give me the error above, it can give me a 404 and it can also give me the actual page.
The admin page NEVER works or returns 404 however.
Anyone?
Just started having this
Just started having this problem myself at my dev site... and all was fine a few minutes ago.
Still trying to figure it out. If I get answers, will post.
I may have to return to a back up.
In my own case it turned out
In my own case it turned out to have something to do with enabling APC (Alternative PHP Cache). Since my site is still dev and I'm keeping in a subdirectory, that might also be a factor. Had to turn APC off again for the time being. And that stopped the errors and 404's and white screens.
Do not run any Zend products
Do not run any Zend products on your server :)
Heshan Wanigasooriya
Github
Zend
Interesting you should mention that... was getting some errors loading Zend stuff in my error log also recently. (My server = sort of semi-managed so I don't really know how it's set up... nor do I know much about what it means).
What do the Zend modules/plugins or whatever they are do, and why might they cause problems?
APC conflicts with Zend Optimizer
I had the same issue on my server. It so happened that I had requested to install APC for the file upload status and then this error came up as well as the
Premature end of script headers: /home/delaware/public_html/index.php
error in Apache log.
After a bit of research I saw on forums that APC conflicts with Zend Optimizer and it looks like I have to go without the file upload status
--
www.zyxware.com
APC and uploadprogress
Yes. the culprit is APC
I have managed to leave uploadprogress.so being loaded in php.ini while puting a "#" in "#extension=apc.so" and it works now.