Welcome Guest, Not a member yet? Register   Sign In
No errors on local webserver but getting errors when moving site online
#1

[eluser]Tomed[/eluser]
edit: figured it out, thanks for helping but it was just a simple syntax error... not sure why it would give me an error on my live hosting but not local host
#2

[eluser]WanWizard[/eluser]
That code is of a different model, so impossible to say.

But you get this message if you start working with a query result object without testing if the query returned a result.
#3

[eluser]Bart v B[/eluser]
That header error looks like that youre using the end tag of php
Take a good look at youre code and remove al end tags ( ?> )

i looked to youre model, but how can i say it in a polite way..
It's far from what is good.

Youre mixing output from what is supposed to do in youre view.
Many things that you do in your model, is what the controller is his job.

Code:
else
{
   return '<p>Sorry, no news to display.</p>';
}
  return $output;

In my opinion it's a better way to rerurn true or false there.
And the controller does his thing where it's a true or false.




Theme © iAndrew 2016 - Forum software by © MyBB