Welcome Guest, Not a member yet? Register   Sign In
best way to debug CI
#4

sorry .. should have been specific...


so i developed code in my mac using MAMP.
3.1.9 with HMVC plugin .. works fine, everything runs as usual.
mamp env:   apache + php (osx)

Then i wanted to shift my work to the server to test.
env:  nginx + php  (fedora, no selinux)


i copy the whole code and database.
db connection is fine... no errors anywhere ..   the /welcome runs fine

however, all my hmvc modules ( applicaiton/modules/x) -- they give a 404

so localhost/test1/   localhost/test1/hello etc -- none of these work .. i just get a 404 with nothing in the error logs.
I bumped up the error level in the config to 4.

this is in my nginx conf 

     location ~ \.php$ {
                        try_files $uri $uri/ /index.php?/$request_uri =404;
                        fastcgi_split_path_info ^(.+\.php)(/.+)$;
                        fastcgi_pass unix:/home/site/private/php7-fpm.sock;
                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                        fastcgi_param HTTP_PROXY "";
                        fastcgi_index index.php;
                        include fastcgi_params;
        }


I aleady have this:

//$config['base_url'] = '';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on"){$ssl_set = "s";} else{$ssl_set = "";}
$config['base_url'] = 'http'.$ssl_set.'://'.$_SERVER['HTTP_HOST'];


so it is not due to URL.


what i did was to put this inside my applicaiton/modules/test1/controllers/test1.php

echo "break"; exit;
did not got executed .. 


then i went in to the do the same in

applicaiton/thirdparty/MX/Loader.php in the line just after <?php

it also does not got caught..


This leads me to believe that the hmvc plugin that worked plug and play is not even loading in the server.

so my question would be .. is there a way to know/figure out what files get loaded in what order, and why in my specific case, the plugin is not being loaded.


Thanks
Reply


Messages In This Thread
best way to debug CI - by admin0 - 06-15-2018, 06:22 AM
RE: best way to debug CI - by php_rocs - 06-15-2018, 08:35 AM
RE: best way to debug CI - by InsiteFX - 06-15-2018, 09:35 AM
RE: best way to debug CI - by admin0 - 06-15-2018, 10:26 AM
RE: best way to debug CI - by admin0 - 06-15-2018, 10:32 AM
RE: best way to debug CI - by admin0 - 06-15-2018, 05:30 PM
RE: best way to debug CI - by InsiteFX - 06-16-2018, 03:23 AM
RE: best way to debug CI - by skunkbad - 06-16-2018, 12:35 PM
RE: best way to debug CI - by cloder - 01-19-2021, 01:33 AM
RE: best way to debug CI - by richb201 - 01-19-2021, 05:29 PM
RE: best way to debug CI - by kenjis - 03-17-2021, 04:43 PM
RE: best way to debug CI - by John_Betong - 03-17-2021, 03:32 PM
RE: best way to debug CI - by machoman - 05-15-2021, 03:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB