Welcome Guest, Not a member yet? Register   Sign In
Blank page on fresh install?
#1

[eluser]Zero-10[/eluser]
I have built a project with codeigniter 1.7 before and it was a pretty difficult and long-lasting project (half a year project) so I'm well familiar with that version, however with version 2.02, I have ran into a showstopper.

I built a project that works fine on my localhost but when I uploaded it with the modified changes to work with my domain name, it showed a blank screen, no errors (even with error reporting on) and no log information either.

What I did was delete it all, and upload a fresh copy of CI 2.02 in the root directory so inside the httpdocs folder and nothing... I played around with the settings and tried a whole lot of different ways to configure it including adding/removing .htaccess files but for some reason it doesn't work.

>php works fine (even made a basic hello world test file)
>server is the same as my other project, but in a different domain.com/httpdocs
>error reporting enabled for both apache and CI and yet nothing...
>other domain on server uses CI 1.7 and there is no way they can interfere with each other
>works fine on localhost (my computer running xampp)

I was expecting a welcome page but no, nothing. Any clues? I've practically clicked on every search result that appeared with "blank page" but nothing helped. Sad


EDIT: I just wanted to mention that I have php 5.2.17 installed and codeigniter 1.7.0 works just fine without modifying anything. I'm not sure what's going on but I'm guessing it's not knowing where to look for something, whatever that something is.
#2

[eluser]danmontgomery[/eluser]
What does the apache error log say?
#3

[eluser]Zero-10[/eluser]
It logs errors but nothing related to that domain. I really hate web programming, it's a lot more difficult to figure out what the problem is when it should work with the same setup everywhere lol. Is there something I can type to see what happens in SSH or something?

<? echo"hello this should work";?> prints "hello this should work"
codeigniter 1.7.0 displays welcome page (no config change either)
codeigniter 1.7.4 doesn't display anything, blank page
codeigniter 2.0.2 samething, doesn't display anything, blank page.

php 5.2.17, centos 5.6, VPS


URL: http://www.mydomain.com/welcome or just http://www.mydomain.com/
URL PATH: "" or "http://www.mydomain.com/"
Absolute BASE Path: "var/www/vhosts/mysite.com/httpdocs/"

Currently what I have configured as base path is "" in the config.php file. I tried localhost which works fine on my XAMPP server and my domain name but it doesn't work.
#4

[eluser]Zero-10[/eluser]
It seems that display_errors = On was actually = Off this whole time so I set it to on and received this error:

Code:
Warning: require(application/config/constants.php) [function.require]: failed to open stream: No such file or directory in /var/www/vhosts/------.com/httpdocs/system/core/CodeIgniter.php on line 62

Fatal error: require() [function.require]: Failed opening required 'application/config/constants.php' (include_path='/var/www/vhosts/jappleng.com/httpdocs/pear') in /var/www/vhosts/------.com/httpdocs/system/core/CodeIgniter.php on line 62

So the error was that I didn't have the old pear folder which was meant for testing in that new domain folder which was being called by php.ini. The new pear folder is in the OS's system files so I just removed the inclusion path and restarted apache.

Everything works fine now. I feel ridiculous for not checking to see if display errors was enabled -__- someone slap me. A lesson learned for whoever googles an answer and finds this, it could just be something that was included in php.ini and is no longer there.




Theme © iAndrew 2016 - Forum software by © MyBB