Page 1 of 1

Missing template file

Posted: Fri Apr 10, 2015 12:18 am
by michaelsen
Just want to point out that the not_found.tpl template which is called here in pp_express.php does not exist.

Code: Select all

			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/not_found.tpl')) {
				$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/payment/not_found.tpl'));
			} else {
				$this->response->setOutput($this->load->view('default/template/payment/not_found.tpl'));
I noticed this in my error log after a customer complained about a blank page.
OC-errors.gif

OC-errors.gif (19.57 KiB) Viewed 1447 times

I have had other customers pay with paypal express since that happened without any problem. Any ideas what could have happened? I am not good enough with php to figure out what it was OC didn't find since it wanted to show the not_found template.

Re: Missing template file

Posted: Sat Apr 18, 2015 3:03 am
by ashon
i have this problem is there a fix for this

Re: Missing template file

Posted: Thu May 14, 2015 2:43 pm
by ashon
michaelsen wrote:Just want to point out that the not_found.tpl template which is called here in pp_express.php does not exist.

Code: Select all

			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/not_found.tpl')) {
				$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/payment/not_found.tpl'));
			} else {
				$this->response->setOutput($this->load->view('default/template/payment/not_found.tpl'));
I noticed this in my error log after a customer complained about a blank page.
OC-errors.gif
I have had other customers pay with paypal express since that happened without any problem. Any ideas what could have happened? I am not good enough with php to figure out what it was OC didn't find since it wanted to show the not_found template.

Did you manage to fix this ?

Re: Missing template file

Posted: Thu May 14, 2015 6:18 pm
by OSWorX
Replace that code

Code: Select all

/template/payment/not_found.tpl
with that:

Code: Select all

/template/error/not_found.tpl
inside the

Code: Select all

pp_express.php