Welcome Guest, Not a member yet? Register   Sign In
SOLVED - Welcome page is blank
#1

[eluser]JPrieto[/eluser]
initially the welcome page displayed fine
then I changed it completely to this
Code:
<php
$this->load->helper('html');
echo heading('Welcome!',3);
?&gt;

and I get a blank page, so I also tried this:

Code:
<php
echo heading('Welcome!',3);
?&gt;

and moved the line of code
Code:
$this->load->helper('html');
to the controller welcome page

and I still get a blank page

please advise
thank you
#2

[eluser]John_Betong_002[/eluser]
Try this:

./application/config/config.php
Code:
$config['log_threshold'] = '4';
&nbsp;
Run your program and view the results of the log file.
&nbsp;

&nbsp;
#3

[eluser]JPrieto[/eluser]
hi, thanks for your reply

i did that, reloaded the welcome page, and it is still blank

#1 - but for this to work i think i have to enabled error logging
where i do that?

#2 - when you say to view the results of the log file
where i see that?

thanks again

the error log in Cpanel is empty
#4

[eluser]John_Betong_002[/eluser]
Search ./application/config/config.php for the following and read the documentation.

1. Error Logging Threshold
2. Error Logging Directory Path
&nbsp;
&nbsp;
With a bit of luck you should see that your ./application/views/welcome_message.php file has a problem.
&nbsp;
Hint look at the first line.
&nbsp;
&nbsp;
#5

[eluser]JPrieto[/eluser]
oh, ok. i looked up the default error log, and here is what it reads:
Code:
DEBUG - 2011-07-13 02:11:18 --&gt; Config Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Hooks Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Utf8 Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; UTF-8 Support Enabled
DEBUG - 2011-07-13 02:11:18 --&gt; URI Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Router Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; No URI present. Default controller set.
DEBUG - 2011-07-13 02:11:18 --&gt; Output Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Security Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Input Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Global POST and COOKIE data sanitized
DEBUG - 2011-07-13 02:11:18 --&gt; Language Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Loader Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Controller Class Initialized
DEBUG - 2011-07-13 02:11:18 --&gt; Helper loaded: html_helper
DEBUG - 2011-07-13 02:11:18 --&gt; File loaded: /home//benefit/application/views/welcome_message.php
DEBUG - 2011-07-13 02:11:18 --&gt; Final output sent to browser
DEBUG - 2011-07-13 02:11:18 --&gt; Total execution time: 0.0147

any idea?

thanks
#6

[eluser]John_Betong_002[/eluser]
Try this:

1. Look at the first line of your welcome message.php. If it is missing a ? then the script you posted is incorrect.

2. Try putting the old welcome_message.php file back and make sure that works.

3. in your controller set the following:
Code:
function index()
{
  error_reporting(-1);
  ini_set('display_errors',1);

  // your code
}
&nbsp;
&nbsp;
edit: spelling is not my fortey Smile
&nbsp;
#7

[eluser]JPrieto[/eluser]
my welcome view only has these 3 lines:

Code:
<php
echo heading('Welcome!',3);
?&gt;

i erase all the text that displayed the default welcome message when ci is installed, and just replaced it all with these 3 lines of code

also ...

in the index page i fixed the url to a single "/? before the benefit directory -- before it has two ("//")
#8

[eluser]JPrieto[/eluser]
now my view welcome page looks like:

Code:
&lt;html&gt;
HELLO EVERYONE!!
<php
echo heading('Welcome!',3);
?&gt;
&lt;/html&gt;

and it displays "HELLO EVERYONE!!"

looks like it is not picking up CI php code

uhm... weird, i think

what say you?

thanks
#9

[eluser]JPrieto[/eluser]
[quote author="John_Betong_002" date="1310560071"]Try this:

3. in your controller set the following:
Code:
function index()
{
  error_reporting(-1);
  ini_set('display_errors',1);

  // your code
}
&nbsp;
&nbsp;
edit: spelling is not my fortey Smile
&nbsp;[/quote]

i tried that ... and no error message displays
it is just not picking up VCI php code
#10

[eluser]JPrieto[/eluser]
thats it!!

had a missing ? in the first line

boy, i feel dumb!!

many many thanks




Theme © iAndrew 2016 - Forum software by © MyBB