Jump to content

[SOLVED] Parse error - unable to resolve!


BREZ

Recommended Posts

Home page on installation of a script.....

 

Warning: include_once(/home/x80eu/public_html/upload/lib/smarty/Smarty.class.php) [function.include-once]: failed to open stream: No such file or directory in /home/x80eu/public_html/upload/init.php on line 14

 

Warning: include_once() [function.include]: Failed opening '/home/x80eu/public_html/upload/lib/smarty/Smarty.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/x80eu/public_html/upload/init.php on line 14

 

Fatal error: Class 'Smarty' not found in /home/x80eu/public_html/upload/lib/template.php on line 2/quote]

 

I have modified this page and undone changes over and over so many times to resolve the error.

Obviously i am missing something.

 

My init.php is ...

<?php

define('BASE_PATH', dirname(__FILE__).'/');

 

include_once BASE_PATH . "config.php";

 

$config['website_url']      =  "http://" . $_SERVER['SERVER_NAME'] . "/" . $domain_path; // with slash

 

 

$config['xml_cache_dir']    = BASE_PATH . "cache_xml/"; // with slash

$config['xml_cache_timeout'] = mktime() + 3600 * 24;

 

// ################# DO NOT EDIT HERE #########################################

 

include_once BASE_PATH . "lib/smarty/Smarty.class.php";

include_once BASE_PATH . "lib/functions.php";

include_once BASE_PATH . "lib/template.php";

include_once BASE_PATH . "lib/xml2array.php";

include_once BASE_PATH . "lib/services.php";

 

include_once BASE_PATH . "kw.php";

include_once BASE_PATH . "kw2.php";

 

$tpl = new Template;

?>

 

Hopefully someone can save what is left of my hair ;D

Link to comment
https://forums.phpfreaks.com/topic/165128-solved-parse-error-unable-to-resolve/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.