Jump to content

My first major issue with PW


Mackski
 Share

Recommended Posts

Been using processwire for some time now, here is my first major issue.

Freshly installed, delete default site to start setup.

Everything looks good, go to load up local dev site and get a blank page. No 404, no 500 just blank. Debug displays nada.

Debugging ProcessPageView.modules. __execute() {

if($page && $page->id) {
            $page->setOutputFormatting(true);

            /*$_page = $page;
            $page = $this->checkAccess($page);
            if(!$page) return $this->pageNotFound($_page, $this->requestURL, true);
            $this->checkProtocol($page);
            if($this->redirectURL) $this->session->redirect($this->redirectURL);*/

            $this->wire('page', $page);
            $this->ready();

            echo $page->body; /* WORKS! */
            die();

I've commended out checkAccess and 404 redirect, because this fails also.

I'm at a loss, anyone care to shed some light?

[sOLVED]
I was using an alternative template name ui.php for home, however this did not yet exist (in wrong directory)
In TemplateFile.php, commenting out line 129 throws the exception as expected.

 

public function ___render() {

		//if(!$this->filename || !is_file($this->filename)) return '';
		if(!file_exists($this->filename)) throw new WireException("Template file does not exist: '$this->filename'");
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...