Jump to content

Error


Steve_Stifler
 Share

Recommended Posts

Where do I find out what errors mean? I keep getting this error when I try to have a page use HTML: (IT is in White, for some reason I can't change the text colour)

Fatal Error: Uncaught Error: Call to a member function and() on null in /home2/investo5/public_html/site/templates/_main.php:49
Stack trace:
#0 /home2/investo5/public_html/wire/core/TemplateFile.php(297): require()
#1 /home2/investo5/public_html/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render()
#2 /home2/investo5/public_html/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___render', Array)
#3 /home2/investo5/public_html/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array)
#4 /home2/investo5/public_html/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array)
#5 /home2/investo5/public_html/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent))
#6 /home2/investo5/public_html/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___renderPage', Array)
#7 /home2/investo5/public_html/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderP (line 49 of /home2/investo5/public_html/site/templates/_main.php) 

 

Edited by teppo
Edit: fixed text colour.
Link to comment
Share on other sites

That error is a generic PHP error message, so making sense of it requires some basic PHP debugging skills. There's no manual here – just read the message, see what it is related to, and try to figure it out from there. Google is your best friend when debugging PHP code ?

The message here is rather clear:

Quote

Fatal Error: Uncaught Error: Call to a member function and() on null in /home2/investo5/public_html/site/templates/_main.php:49

In other words you're trying to call function and() on a null value in your _main.php file, line 49.

The exact reason is impossible to say without seeing the code, but my guess so far would be that you're grabbing a page or something like that, and not actually checking that it has a valid value before trying to use it as an object.

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...