Re: Class dispatcher not found - Solved, bug maybe?
Hi Broom, In our case it was the custom PHP installation on that server, there were a number of bugs in php 5.2.0 and below preg_replace function which caused this error. We did not have the ability to install a later version of PHP so had to fix the inflector::underscore() function in order for cakephp to work on that machine. Check you php version is later than 5.2.0 else I can send you a copy of the inflector code to try. Brett. wiltonsoftware.com On Sun, Jul 19, 2009 at 9:08 AM, Broombroo...@gmail.com wrote: Hi Brett, I have the same problem with 'installation' of cakePHP you had some months ago, probably. Fatal error: Class 'Dispatcher' not found in /var/www/../app/ webroot/index.php on line 87 Did you find the solution, because I guess it's the same problem... I really think it is the apache configuration, but I don't know which setting is wrong... Tnx in advance! Broom On 16 mrt, 02:51, Brett Wilton bdwil...@gmail.com wrote: Hi Gwoo, Can you run the Inflector tests? Unfortunately as soon as I put the original inflector.php back in nothing will run. When loading the test page I get the following error :- Fatal error: Class 'Overloadable' not found in path/cake/libs/model/model.php on line 43 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Class dispatcher not found - Solved, bug maybe?
Hi Gwoo, Can you run the Inflector tests? Unfortunately as soon as I put the original inflector.php back in nothing will run. When loading the test page I get the following error :- Fatal error: Class 'Overloadable' not found in path/cake/libs/model/model.php on line 43 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Class dispatcher not found - Solved, bug maybe?
On Mar 12, 1:48 pm, Brett Wilton bdwil...@gmail.com wrote: We managed to track down why the class Dispatcher was failing to load. What we found was that the Inflector::underscore() function called from the bootstrap.php App::import('Core', array('Dispatcher')); was converting 'Dispatcher' to _dispatcher. The Inflector underscore function looks like the following :- function underscore($camelCasedWord) { return strtolower(preg_replace('/(?=\\w)([A-Z])/', '_\\1', $camelCasedWord)); } We have implemented a work around for this installation, I'm not an expert on preg_replace() but maybe a dev or someone else can see how this function can produce _dispatcher ? In terms of server setup its running debian4, apache2 and a custom compiled version of php 5.2.0. On Mon, Mar 2, 2009 at 7:40 PM, Brett Wilton bdwil...@gmail.com wrote: Any warning/notices before fatal error? No nothing at all, this is a fresh install. All I can think of at this point is that App::import() is failing in the bootstrap to import the Dispatcher for some reason and then the app/webroot/index.php file is trying to create the Dispatcher and failing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Class dispatcher not found - Solved, bug maybe?
Can you run the Inflector tests? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Class dispatcher not found - Solved, bug maybe?
We managed to track down why the class Dispatcher was failing to load. What we found was that the Inflector::underscore() function called from the bootstrap.php App::import('Core', array('Dispatcher')); was converting 'Dispatcher' to _dispatcher. The Inflector underscore function looks like the following :- function underscore($camelCasedWord) { return strtolower(preg_replace('/(?=\\w)([A-Z])/', '_\\1', $camelCasedWord)); } We have implemented a work around for this installation, I'm not an expert on preg_replace() but maybe a dev or someone else can see how this function can produce _dispatcher ? In terms of server setup its running debian4, apache2 and a custom compiled version of php 5.2.0. On Mon, Mar 2, 2009 at 7:40 PM, Brett Wilton bdwil...@gmail.com wrote: Any warning/notices before fatal error? No nothing at all, this is a fresh install. All I can think of at this point is that App::import() is failing in the bootstrap to import the Dispatcher for some reason and then the app/webroot/index.php file is trying to create the Dispatcher and failing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---