Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not render cell #134

Closed
hstorm opened this issue Dec 4, 2015 · 1 comment
Closed

Could not render cell #134

hstorm opened this issue Dec 4, 2015 · 1 comment

Comments

@hstorm
Copy link

hstorm commented Dec 4, 2015

Hi, I want to use cake "Cells" in a pdf view.

I created a Cell as described here http://book.cakephp.org/3.0/en/views/cells.html
Rendering the cell works find in any "normal" view. However, when rendering the cell in a pdf view the following error occurs.

When using in the view
cell('Bill'); ?>
and

The following error occurs:
"Warning (512)
: Could not render cell - Cell view file "display" is missing. [CORE\src\View\Cell.php, line 233]"

When using render() ?> to render the cell a fatal error occurs:

Fatal error: [Cake\View\Exception\MissingTemplateException] Template file "Error\pdf\error500.ctp" is missing. #0 C:\xampp\htdocs\topti\vendor\cakephp\cakephp\src\View\View.php(576): Cake\View\View->_getViewFileName('error500') #1 C:\xampp\htdocs\topti\vendor\friendsofcake\cakepdf\src\View\PdfView.php(117): Cake\View\View->render('error500', 'error') #2 C:\xampp\htdocs\topti\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(340): CakePdf\View\PdfView->render('error500', 'error') #3 C:\xampp\htdocs\topti\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(309): Cake\Error\ExceptionRenderer->_outputMessageSafe('error500') #4 C:\xampp\htdocs\topti\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(311): Cake\Error\ExceptionRenderer->_outputMessage('error500') #5 C:\xampp\htdocs\topti\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(180): Cake\Error\ExceptionRenderer->_outputMessage('fatalError') #6 C:\xampp\htdocs\topti\vendor\cakephp\cakephp\src\Error\ErrorHandler.php(144): Cake\Error\ExceptionRenderer->re in C:\xampp\htdocs\topti\vendor\cakephp\cakephp\src\Error\ErrorHandler.php on line 156

Any suggestions what could causes the problem?

Thanks! Hugo

@ADmad
Copy link
Member

ADmad commented Mar 18, 2016

As the error states you are missing the view file for the template.

@ADmad ADmad closed this as completed Mar 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants