Welcome Guest, Not a member yet? Register   Sign In
Hooks not working on CentOS
#1

[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?
#2

[eluser]toopay[/eluser]
how your htaccess looks like?
#3

[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 --&gt; Config Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Hooks Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Database Driver Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Utf8 Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; UTF-8 Support Enabled
DEBUG - 2011-07-14 14:58:14 --&gt; URI Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Router Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Output Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Security Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Input Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; XSS Filtering completed
DEBUG - 2011-07-14 14:58:14 --&gt; XSS Filtering completed
DEBUG - 2011-07-14 14:58:14 --&gt; XSS Filtering completed
DEBUG - 2011-07-14 14:58:14 --&gt; CRSF cookie Set
DEBUG - 2011-07-14 14:58:14 --&gt; Global POST and COOKIE data sanitized
DEBUG - 2011-07-14 14:58:14 --&gt; Language Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Language Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Config Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Loader Class Initialized
DEBUG - 2011-07-14 14:58:14 --&gt; Helper loaded: url_helper
DEBUG - 2011-07-14 14:58:14 --&gt; Helper loaded: form_helper

But the real anoying thing is, that the identical code is perfectly working on my ubuntu machine.




Theme © iAndrew 2016 - Forum software by © MyBB