#36933 [Opn->Fbk]: Fatal error: Function name must be a string in line no 1600 in smarty.class.ph
| From: | bjori@php.net | Date: | Fri, 31 Mar 2006 14:42:43 +0000 |
| Subject: | #36933 [Opn->Fbk]: Fatal error: Function name must be a string in line no 1600 in smarty.class.ph | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95165@lists.php.net to get a copy of this message | ||
ID: 36933
Updated by: bjori@php.net
Reported By: sudha_seeni at yahoo dot co dot in
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: windows xp
PHP Version: 5.1.2
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2006-03-31 16:11:26] sudha_seeni at yahoo dot co dot in
Description:
------------
php 5.1.1,mysql 5.0.18,windows xp,xampp 1.5.1
see i have installed xampp 1.5.1 which itself has mysql,phpmyadmin..
i have installed smarty also.
i store my php file in c:\program files\xampp\htdocs.my friend has
forwarded a php project which is in a folder leadtrac_project.
so this one i have copied and pasted in c:\program files\xampp\htdocs
i.e it will be as c:\program files\xampp\htdocs\leadtrac_project.
i have to open in browser as
http://localhost/leadtrac_project/index.php.for
this i am getting a
error:-
Fatal error: Function name must be a string in line no 1600 in
smarty.class.php
in leadtrac_project folder there is a include folder which has
config.inc file
where the part of coding is:
elseif($HTTP_HOST == 'localhost')
{
$configVars['siteBaseUrl'] = 'http://localhost/leadtrac/';
$configVars['siteBasePath']='C:\\Program Files\\Apache
Group\\Apache\\htdocs\\leadtrac\\';
$dbConfig['dbhost'] = 'localhost';
$dbConfig['dbname'] = 'leadtrac_db2';
$dbConfig['dbuser'] = 'root';
$dbConfig['dbpass'] = '';
$dbConfig['dbType'] = 'mysql';
$configVars['dncCode'] ='8a8s5t6u9d6n4c8';
//absolute path to smarty
require('C:\\Satish\\PHP_DOCS\\smarty\\Smarty-2.6.10\\libs\\Smarty.class.php');
}
what i have changed is :- is sitebaseurl,sitebasepath,absolute path to
smarty
elseif($HTTP_HOST == 'localhost')
{
$configVars['siteBaseUrl'] = 'http://localhost/leadtrac_project/';
$configVars['siteBasePath']='C:\\Program
Files\\xampp\\htdocs\\leadtrac_project\\';
$dbConfig['dbhost'] = 'localhost';
$dbConfig['dbname'] = 'leadtrac_db2';
$dbConfig['dbuser'] = 'root';
$dbConfig['dbpass'] = '';
$dbConfig['dbType'] = 'mysql';
$configVars['dncCode'] ='8a8s5t6u9d6n4c8';
//absolute path to smarty
require('C:\Program
Files\xampp\php\pear\PhpDocumentor\phpDocumentor\Smarty-2.5.0\libs\Smarty.class.php');
}
after changing and running this error comes what to do
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36933&edit=1