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

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

Beitrag von playagiron »

Hi, indeed did that, disabled bugtracker (and report broken downloads for that matter).

STILL, I keep getting the following type of error messages (from Guest visitors):
Page: downloads.php?view=broken&df_id=8&cat_id=1
File: [ROOT]/downloads.php
Line: 974 [PHP Notice]

Undefined index: body

So I wonder how they can at all get to a link to the bug tracker or report broken??! When I browse as guest never see any link to this.

So my guess is that maybe spam bots etc. knowing the php parameters of the download mod just load directly these webpages and thus create erors. Still strange and really would like to get rid of it but, report broken and bug tracker (get the same messages also with bug_tracker). seacivated for everyone but continues... very strange...

Anyway, awesome mod for sure!
Cheers
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 »

Thanks for that hint. I now know a solution to fix this.
I will update the Mod the next days...
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 »

Part 1 of the solution to try:
Open forumroot/downloads.php and find

Code: Alles auswählen

if (!in_array($view, $view_check) || !$template->filename['body'])
{
	trigger_error('DL_NO_PERMISSION');
}
Replace this code with

Code: Alles auswählen

if (!in_array($view, $view_check) || !isset($template->filename['body']))
{
	trigger_error('DL_NO_PERMISSION');
}
The error message you have wrote at last shall be solved with this.

Part 2:
Guests can only report downloads if the admin enable this in the ACP-Settings of the mod.
Otherwise the Guest will get nothing, specially on direct linking to the forbidden funktions.
So only the template error must be solved as I hopefull have done with my chances in Part 1...
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 »

So far so good, thanks a lot!

Still strange the issue with permissions as I completely DISABLED bugtracker, report broken linkes etc. for everyone.
PLus guests (and bots) only anc VIEW downloads, very strange that all these errors occur, even though I browsing as a guest do not at all see any links to report a broken link, acess the bugtracker ets.

Also, I don't use the search function at all, still every week or so I additionally get this error:

Code: Alles auswählen

Guest
98.216.224.xxx
► Whois
Language: en	Page: downloads.php?view=search
File: [ROOT]/dl_mod/includes/dl_search.php
Line: 102	[PHP Warning]

preg_match_all() expects at least 3 parameters, 2 given
NO idea how the guest/bot can see the link to the search function as it is nowhere visible to me. Maybe there is a more general issue with the permissions, not sure.
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 »

Guests will not see the link, but they may know the direct links ;)

For the last error message please regard this, too
: http://phpbb3.oxpus.net/viewtopic.php?f=5&t=598
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!
Antworten