Author Topic: template.php(101) : eval()'d code on line 69  (Read 8251 times)

0 Members and 1 Guest are viewing this topic.

Offline kmk

  • Newbie
  • *
  • Posts: 27
  • بو عمار كوم boammarcom
    • View Profile
template.php(101) : eval()'d code on line 69
« on: August 20, 2007, 09:51:24 PM »
Hello ..

The problem in the course of my image

Watch this :

http://Http://www.boammar.com/album/


Warning: Unknown(4menu2.php): failed to open stream: No such file or directory in /home/boammar/public_html/album/includes/template.php(101) : eval()'d code on line 69

Warning: Unknown(4menu2.php): failed to open stream: No such file or directory in /home/boammar/public_html/album/includes/template.php(101) : eval()'d code on line 69

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




File template.php

Annexes


Possible quick solution? ?
« Last Edit: August 21, 2007, 11:37:30 AM by KurtW »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: template.php(101) : eval()'d code on line 69
« Reply #1 on: August 20, 2007, 09:54:56 PM »
In one of HTML template file, one of tag no {if ..., {endif ..., {endif ... or {endifnot ... for condition. Must do.

Use custom template from templates free of forum ?
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 ?

manurom

  • Guest
Re: template.php(101) : eval()'d code on line 69
« Reply #2 on: August 20, 2007, 10:06:08 PM »
Hello;
the file "4menu2.php" is in the template 4waters directory. It should be at the root of your gallery, here: http://www.boammar.com/album/, where index.php is.
This file menu is called by:
Code: [Select]
<?php include("4menu2.php"); ?>
So move this file to your gallery root or change every template page that calls it.
You will have to change every:
Code: [Select]
<?php include("4menu2.php"); ?>to:
Code: [Select]
<?php include("{template_url}/4menu2.php"); ?>or:
Code: [Select]
<?php include("templates/4waters/4menu2.php"); ?>
The easiest way is to move that file. No file to modify.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: template.php(101) : eval()'d code on line 69
« Reply #3 on: August 20, 2007, 10:08:00 PM »
Nota: PHP_CODE must be 1 for use: <?php include("the_file.php"); ?> in HTML (+ when use {template_url} with include). Register vars should here. ;)
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 ?

manurom

  • Guest
Re: template.php(101) : eval()'d code on line 69
« Reply #4 on: August 20, 2007, 10:11:30 PM »
kmk uses 4images 1.7.4 and PHP code execution is declared in constants.php by default :roll:.

Code: [Select]
// Allow execution of PHP code in templates
define('EXEC_PHP_CODE', 1);

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: template.php(101) : eval()'d code on line 69
« Reply #5 on: August 20, 2007, 10:13:58 PM »
Default or no, option can edit from user.
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 kmk

  • Newbie
  • *
  • Posts: 27
  • بو عمار كوم boammarcom
    • View Profile
Re: template.php(101) : eval()'d code on line 69
« Reply #6 on: August 20, 2007, 10:40:28 PM »
Quote
Hello;
the file "4menu2.php" is in the template 4waters directory. It should be at the root of your gallery, here: http://www.boammar.com/album/, where index.php is.
This file menu is called by:

Code:
<?php include("4menu2.php"); ?>
So move this file to your gallery root or change every template page that calls it.
You will have to change every:

Code:
<?php include("4menu2.php"); ?>to:

Code:
<?php include("{template_url}/4menu2.php"); ?>or:

Code:
<?php include("templates/4waters/4menu2.php"); ?>
The easiest way is to move that file. No file to modify.

Tell me the name of brotherly possible mold or file the required amendment?

Offline kmk

  • Newbie
  • *
  • Posts: 27
  • بو عمار كوم boammarcom
    • View Profile
Re: template.php(101) : eval()'d code on line 69
« Reply #7 on: August 20, 2007, 10:41:57 PM »
Quote
kmk uses 4images 1.7.4 and PHP code execution is declared in constants.php by default .


Code:
// Allow execution of PHP code in templates
define('EXEC_PHP_CODE', 1);
 
 


Tell me the name of brotherly possible mold or file the required amendment? :?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: template.php(101) : eval()'d code on line 69
« Reply #8 on: August 20, 2007, 10:43:17 PM »
Quote
The file "4menu2.php" is in the template 4waters directory. It should be at the root of your gallery, here: http://www.boammar.com/album/, where index.php is.

Quote
Tell me the name of brotherly possible mold or file the required amendment?

includes/constants.php file ... use 1 for PHP inside HTML. 0 for no use inside.
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 kmk

  • Newbie
  • *
  • Posts: 27
  • بو عمار كوم boammarcom
    • View Profile
Re: template.php(101) : eval()'d code on line 69
« Reply #9 on: August 20, 2007, 10:56:09 PM »
Thankfully What Gosartoa problem has been solved :mrgreen:
 :mrgreen:
 :mrgreen: