warning: theme_render_template

Dickster - March 13, 2008 - 14:53
Project:Event
Version:6.x-2.x-dev
Component:Event Views
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When clicking through to the calendar/month view this warning appears:

* warning: theme_render_template(./sites/all/modules/event/event-node-month.tpl.php) [function.theme-render-template]: failed to open stream: No such file or directory in /home/sites/example.com/public_html/includes/theme.inc on line 963.
* warning: theme_render_template(./sites/all/modules/event/event-node-month.tpl.php) [function.theme-render-template]: failed to open stream: No such file or directory in /home/sites/example.com/public_html/includes/theme.inc on line 963.
* warning: theme_render_template(./sites/all/modules/event/event-node-month.tpl.php) [function.theme-render-template]: failed to open stream: No such file or directory in /home/sites/example.com/public_html/includes/theme.inc on line 963.
* warning: theme_render_template() [function.include]: Failed opening './sites/all/modules/event/event-node-month.tpl.php' for inclusion (include_path='.:/usr/share/pear') in /home/sites/example.com/public_html/includes/theme.inc on line 963.

Any ideas?

#1

Slim Pickens - March 18, 2008 - 22:50

I get this error as well.

#2

CobraMP - March 23, 2008 - 08:02

me to, currently using the Garland theme

* warning: include(./sites/all/modules/event/event-node-month.tpl.php) [function.include]: failed to open stream: No such file or directory in I:\wamp\www\includes\theme.inc on line 963.
* warning: include() [function.include]: Failed opening './sites/all/modules/event/event-node-month.tpl.php' for inclusion (include_path='.;C:\php5\pear') in I:\wamp\www\includes\theme.inc on line 963.

also not sure why it points to c:\php5\pear ?

#3

liquid crystal - March 23, 2008 - 08:41

same error here on garland :(

#4

WiredEscape - March 23, 2008 - 18:27

CobraMP wrote:
also not sure why it points to c:\php5\pear ?

This is the include_path set in php.ini

This specific file not found issue is a duplicate and has been addressed at #232878: Asking for event-node-month.tpl.php which is not present?, comment #5.

If your positive the file is there and the name is correct, it could be a path issue. Many times path issues can be solved by adding the path to the root of the application that is having the file not found problem. Try adding [include_path='.;C:\php5\pear;c:\wamp\www\drupal'] or what ever the path is to your Drupal root. Also, I know that with Xampp the php.ini is found in two different locations depending on where PHP is run from. One is 'c:\xampp\php\' and the other is in 'c:\xampp\apache\'. I usually play it safe by changing both to prevent those head banging episodes where you just know that you made the changes but it's still not working...

Also, paths are operating system dependent, ie Linux verses Windows. However, I think PHP is now forgiving of this and naturally accepts either with no question.

#5

Estevon - March 23, 2008 - 19:59

"This specific file not found issue is a duplicate and has been addressed at #232878: Asking for event-node-month.tpl.php which is not present?, comment #5."

Adding an empty file only masks the problem. Since the template is empty, the module has no idea how to render the data in the month view. Therefore, you still have an empty calendar, but without the errors in the log.

I suspect that what we need is a correct template for the month view.

#6

pobster - April 3, 2008 - 22:50
Status:active» fixed

This was fixed in the current 30/03/08 release, even if it was borked still... There's a patch here; http://drupal.org/node/223685

Pobster

#7

Anonymous (not verified) - April 17, 2008 - 22:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.