4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: kmk on August 20, 2007, 09:51:24 PM

Title: template.php(101) : eval()'d code on line 69
Post by: kmk on August 20, 2007, 09:51:24 PM
Hello ..

The problem in the course of my image

Watch this :

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? ?
Title: Re: template.php(101) : eval()'d code on line 69
Post by: thunderstrike 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 ?
Title: Re: template.php(101) : eval()'d code on line 69
Post by: manurom 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.
Title: Re: template.php(101) : eval()'d code on line 69
Post by: thunderstrike 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. ;)
Title: Re: template.php(101) : eval()'d code on line 69
Post by: manurom 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);
Title: Re: template.php(101) : eval()'d code on line 69
Post by: thunderstrike on August 20, 2007, 10:13:58 PM
Default or no, option can edit from user.
Title: Re: template.php(101) : eval()'d code on line 69
Post by: kmk 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?
Title: Re: template.php(101) : eval()'d code on line 69
Post by: kmk 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? :?
Title: Re: template.php(101) : eval()'d code on line 69
Post by: thunderstrike 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.
Title: Re: template.php(101) : eval()'d code on line 69
Post by: kmk on August 20, 2007, 10:56:09 PM
Thankfully What Gosartoa problem has been solved :mrgreen:
 :mrgreen:
 :mrgreen: