template->_tpl_load(): No file specified for handle body

Support zu den Modifikationen (MODs) von Entwickler OXPUS für das phpBB 3.0.x
playagiron
Beiträge: 20
Registriert: Mo 21. Jan 2013, 10:24

template->_tpl_load(): No file specified for handle body

Beitrag von playagiron »

Hi,

I found a link to this error in a previous version, and now since I updated to the alst one, am also getting these errors often:

Code: Alles auswählen

A general error occured: General Error 
» template->_tpl_load(): No file specified for handle body

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/template.php
LINE: 266
CALL: trigger_error()

FILE: [ROOT]/includes/template.php
LINE: 224
CALL: template->_tpl_load()

FILE: [ROOT]/includes/functions.php
LINE: 5334
CALL: template->display()

FILE: [ROOT]/downloads.php
LINE: 986
CALL: page_footer()

Anyone has the same issue? Did all the updates and all works correct it seems.
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: template->_tpl_load(): No file specified for handle body

Beitrag von oxpus »

Can you please post the code from the file includes/functions.php +/- 10 Lines around the line 5334?
It seems this file is malfunction.

And: On which action this error will be displayed?
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
playagiron
Beiträge: 20
Registriert: Mo 21. Jan 2013, 10:24

Re: template->_tpl_load(): No file specified for handle body

Beitrag von playagiron »

Hi

nothing mor is given on the action just,
A general error occured: General Error
» template->_tpl_load(): No file specified for handle body.

In functions, this is just the line getting the template. Around is

Code: Alles auswählen

		if ($cron_type)
		{
			$template->assign_var('RUN_CRON_TASK', '<img src="' . append_sid($phpbb_root_path . 'cron.' . $phpEx, 'cron_type=' . $cron_type) . '" width="1" height="1" alt="cron" />');
		}
	}

	$template->display('body');

	garbage_collection();
	exit_handler();
}

/**
* Closing the cache object and the database
* Cool function name, eh? We might want to add operations to it later
*/
function garbage_collection()
Seems to occur only on a call on the downloads.php (see error message).
Thanks!!!
playagiron
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: template->_tpl_load(): No file specified for handle body

Beitrag von oxpus »

Strange.
The mod alltimes uses the 'body'-key to load the template files.
Since the mod release 6.0.0 this key is in use.

Maybe an other mod closes the template key? Which mods do you have installed besides the download mod?
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
playagiron
Beiträge: 20
Registriert: Mo 21. Jan 2013, 10:24

Re: template->_tpl_load(): No file specified for handle body

Beitrag von playagiron »

Hi,

I have a few mods installed, including b3Portal, phpbb-SEO Advanced, and the Gallery Mod.
Will have a look for another template piece, btw, did you happen to know how it should look like?
Also, I found that this error only occurs when users don't have acess to downloads (guests), which is strange so I think it still must be related to this mod, maybe?
Thanks anyway!
playagiron
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: template->_tpl_load(): No file specified for handle body

Beitrag von oxpus »

Which options do you have set to disallow users to access downloads?
On which link/action this error is coming up?
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
playagiron
Beiträge: 20
Registriert: Mo 21. Jan 2013, 10:24

Re: template->_tpl_load(): No file specified for handle body

Beitrag von playagiron »

Hi, thanks!

I just set the downloads in the MOD settings to free: "Free for reg. users".
The error always occurs when I surf on one download as a guest (where obviously i cannot download it).
No idea what is the reason...
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: template->_tpl_load(): No file specified for handle body

Beitrag von oxpus »

Okay, I will check this.
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: template->_tpl_load(): No file specified for handle body

Beitrag von oxpus »

Hm, okay I'll checked this and I can't reproduce this error.
The guest can view the details of this download and the download button is hidden.
No error, especially the template one...

For a better understanding:
You have set (one ore more) downloads to "free for reg. users" and if you will open the detail view for one of them the error will be displayed?
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
playagiron
Beiträge: 20
Registriert: Mo 21. Jan 2013, 10:24

Re: template->_tpl_load(): No file specified for handle body

Beitrag von playagiron »

Hi thanks for checking!

Hmm, strange indeed, now I see it is hard to reproduce, but still get the errors, must be maybe due to different browser combis or so, even though I tried quite a few.
Anyway, I played around with permissions (categories and single downloads, not always easy to grasp at once, as is the permission system in phpbb3 in general, but I understand, there is not a very easy solution...)

Anyway, thanks, your Mod is truely awesome, will see if the permissions change changed something...
Antworten