An Internal Error Has Occured
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Fri, 30 Sep 2016 06:52:27 GMT by s_hv995 (squid/3.5.20)
Advisory Board, currently work as a Senior Professional Services Consultant with Zend Technologies. I am very active in global and local PHP communities, and organize the South Florida PHP Users an internal error has occurred rdp Group (SoFloPHP) as well as the SunshinePHP Developer Conference in Miami. Read More
An Internal Error Has Occurred Win32 Api Error 2
>> Menu and widgets Pages About Adam Talks Videos Pair with me Contact Search for: Visit Run Geek Radio Listen an internal error has occurred while evaluating method Now! Recent Posts PHPMyAdmin blank whitescreen (414 Request-URI Too Long) Ubuntu 16.04 and PHP 7 not rendering Using an SSH tunnel to step debug through a firewall Setting up step debugging in Zend http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/remote-desktop-connection-an-internal-error-has/85e4a82e-b6d1-496e-84c1-eb421764b5cb Studio PHPStorm and debugging IP issue CakePHP says An Internal Error Has Occurred. Recently I had the wonderful experience of CakePHP informing me that “An Internal Error Has Occurred”, with no more indication of what the problem could be. After digging around the CakePHP code I quickly found out that this code is pretty much used for any 500 browser error. So I started the process of http://www.geekyboy.com/archives/341 elimination: The site was working correctly. I know this because most pages on the site came up just fine. The error was only on certain pages. It was not caused by the page not existing on the server. The controller, action, and models were all named correctly. I know this because the page was working correct a week ago, and because I did a sanity check to ensure nothing had changed in this area. I checked to ensure the .htaccess had not been deleted, changed, or renamed. All was OK here. I checked the CakePHP logs. These exist in the ‘app/tmp/logs/’ directory. There were NO errors reported, and no debug entries as well. I checked the /var/log/messges’ and found no errors reported there. I checked the /var/apache2/{log_file_name}’ and found no errors there. Everything should have been working, according to the settings and log files, so why was I still receiving this internal error message? How I solved it: Finally, I got tired of playing around and simply edited the CakePHP code to output $params array to see the raw reason for the error. I did this by editing the ‘cake/libs/error.php’ file and adding the following around line 176
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company http://stackoverflow.com/questions/20303117/cakephp-error-an-internal-error-has-occurred Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cakephp Error: An internal error has occurred up vote 4 down vote favorite 1 I have some code in cakephp which produces an internal an error. Here is the PHP Controller: $this->loadModel( 'Vote' ); //Newly added by amit start $vote=$this->Vote->getVote($id,$uid); $this->set('vote',$vote); $voteCount = count($vote); $this->set('voteCount',$voteCount); $voteShow = $this->Vote->find('all', array( 'fields' => array('SUM(Vote.score) AS score','count(id) as countId'), 'conditions'=>array('Vote.type_id'=>$id), )); $this->set('voteShow',$voteShow); model: public function getVote($id,$uid) { if (empty($conditions)) $conditions = array('Vote.type' => 'blog', 'Vote.type_id' => $id, 'Vote.user_id' => $uid); $users = $this->find('all', array('conditions' => $conditions, 'order' => 'Vote.id desc' )); return $users; } That code produces this error: Error : an internal error An internal error has occurred What does this error mean? cakephp internal-server-error share|improve this question edited Jan 1 '14 at 6:28 Eric Leschinski 45.9k23219189 asked Nov 30 '13 at 17:08 amit 4421516 add a comment| 2 Answers 2 active oldest votes up vote 7 down vote accepted I enabled debug mode: Configure::write('debug', 2); in core.php and it solved my problem. share|improve this answer edited Jan 1 '14 at 6:29 Eric Leschinski 45.9k23219189 answered Nov 30 '13 at 17:35 amit 4421516 add a comment| up vote 3 down vote In my case debug mode was Configure::write('debug', 0); on live server in core.php. I set it to Configure::write('debug', 1); and no error was shown this time. So I again changed my debug mode to Configure::write('debug', 0); because I don't want to show debug error on my live site. This time no error message shows up. So just changing the debug mode once in core.php get rid of this error in my case. If you change your debug mode to 1 and then run those functions which you have changed on local, CakePHP will refresh the cache for all those models which include in those functions. Now you can change back to Configure::write('debug', 0). share|improve this answer edited Dec 7 '15 at 6:28 Adrian Lynch 3,82611325 answered Jun 9 '14 at 5:17 Dext