I started getting the following error today, but don’t know why and what caused it.
[31-May-2010 03:52:10] PHP Fatal error: Cannot run code from this file in conjunction with non encoded files in ZendFramework-1.10.5/library/Zend/Validate/Hostname/Com.php on line 547
I’m using zend framework version 1.10.5; although version 1.09 also has the same problem.
I only get this error in my production server, and cannot duplicate it from anywhere else.
Also note that I only get this error when I submit form with recaptcha. If I remove recaptcha, it works fine.
Any help is appreciated.
Looking up “Cannot run code from this file in conjunction with non encoded files” on Google gives you first result which suggests to turn off APC.
Look into the configuration of your webserver and turn off Alternative PHP Cache.
If you can’t, contact your webmaster.
Second suggestion is that if you have your files encoded with Zend Encoder, make sure all the files are encoded including ZendFramework-1.10.5/library/Zend/Validate/Hostname/Com.php
Google is the friend!