Hooks not working on CentOS - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Hooks not working on CentOS (/showthread.php?tid=43477) |
Hooks not working on CentOS - El Forum - 07-12-2011 [eluser]Unknown[/eluser] Hi guys, More than strange error/bug. I'm using CI 2.0.2 with the newest HMVC (Modular Extensions by Wiredesignz). I'm enabled hooks on DB functions, and its working perfectly on my machine which is an Ubuntu box with PHP Version 5.3.2-1ubuntu4.9. However the same identical code is not working on the main development machine which is running on CentOS with PHP Version 5.3.6. Everything is going fine until I enabled the hooks in the config, but after that just blank screen and nothing in the logs. Any idea? Hooks not working on CentOS - El Forum - 07-12-2011 [eluser]toopay[/eluser] how your htaccess looks like? Hooks not working on CentOS - El Forum - 07-13-2011 [eluser]Unknown[/eluser] My .htaccess is empty actually, I'm using the same apache config for both machines: <Directory /var/www/html/csanad/> Order Deny,Allow Deny from All Allow from All <IfModule mod_rewrite.c> RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] </IfModule> <IfModule !mod_rewrite.c> ErrorDocument 404 /index.php </IfModule> </Directory> The problem is very strange. As soon as I turn from FALSE to TRUE the $config['enable_hooks'] parameter, the CI is not displaying anything. It is actually execute what is in the hooked file, but seems to no calling the right controller after. DEBUG - 2011-07-14 14:58:14 --> Config Class Initialized DEBUG - 2011-07-14 14:58:14 --> Hooks Class Initialized DEBUG - 2011-07-14 14:58:14 --> Database Driver Class Initialized DEBUG - 2011-07-14 14:58:14 --> Utf8 Class Initialized DEBUG - 2011-07-14 14:58:14 --> UTF-8 Support Enabled DEBUG - 2011-07-14 14:58:14 --> URI Class Initialized DEBUG - 2011-07-14 14:58:14 --> Router Class Initialized DEBUG - 2011-07-14 14:58:14 --> Output Class Initialized DEBUG - 2011-07-14 14:58:14 --> Security Class Initialized DEBUG - 2011-07-14 14:58:14 --> Input Class Initialized DEBUG - 2011-07-14 14:58:14 --> XSS Filtering completed DEBUG - 2011-07-14 14:58:14 --> XSS Filtering completed DEBUG - 2011-07-14 14:58:14 --> XSS Filtering completed DEBUG - 2011-07-14 14:58:14 --> CRSF cookie Set DEBUG - 2011-07-14 14:58:14 --> Global POST and COOKIE data sanitized DEBUG - 2011-07-14 14:58:14 --> Language Class Initialized DEBUG - 2011-07-14 14:58:14 --> Language Class Initialized DEBUG - 2011-07-14 14:58:14 --> Config Class Initialized DEBUG - 2011-07-14 14:58:14 --> Loader Class Initialized DEBUG - 2011-07-14 14:58:14 --> Helper loaded: url_helper DEBUG - 2011-07-14 14:58:14 --> Helper loaded: form_helper But the real anoying thing is, that the identical code is perfectly working on my ubuntu machine. |