How to add Smarty in wamp php.ini file - php

I need to add libs for smarty in php.ini, but do I find which file I have to add, where can I find the sub directory being included in php directory.....
I have the following error when trying to access the pages on my site in wamp:
Warning: require(..../public_html/libs/Smarty.class.php): failed to open stream: No such file or directory in
Fatal error: require(): Failed opening required '...../public_html/libs/Smarty.class.php' (include_path='PEAR/') in
Apology if the question is too stupid..:)

Related

Site isn't seeing the autoload

I'm getting this error:
Warning: require(/home/wiseman/public_html/path/to/facebook-php-sdk-v4/autoload.php): failed to open stream: No such file or directory in /home/wiseman/public_html/facebook.php on line 3
Fatal error: require(): Failed opening required '/home/wiseman/public_html/path/to/facebook-php-sdk-v4/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wiseman/public_html/facebook.php on line 3
The sdk has been installed by the host server and I can see the autoload file in exactly the path it's looking for. Anyone know what the problem could be? I'm new to working with facebook and am really green so be gentle! :)

Warning: require_once(/home/content/28/11459128/html/system/startup.php): failed to open stream:

I have recently taken backup for my website and wanted to open with xampp on local host but it is showing following errors:
Warning: require_once(/home/content/28/11459128/html/system/startup.php): failed to open
stream: No such file or directory in C:\xampp\htdocs\myfolder\index.php on line 26
Fatal error: require_once(): Failed opening required
'/home/content/28/11459128/html/system/startup.php' (include_path='.;C:\xampp\php\PEAR') in
C:\xampp\htdocs\myfolder\index.php on line 26
Can any one help me with this issue.
Thanks,
GC
You need to change all the PATH in your project according to your local machine, or there must a variable in your config file i.e Path to project for local environment is C:/xampp/htdocs and for production server it must be /home/content/whatever. If it is not present you better create one.
I am pretty sure path won't start with / on Windows(local machine).

link path solution in localhost environment: http:// wrapper is disabled in the server configuration by allow_url_include=0

I have seen this question asked and answered many times, but I can't seem to get a solution for myself
Here is my basic folder structure:
http://localhost/cms/
To grab all my code I have a utilities file located here:
http://localhost/cms/includes/utilities.inc.php
and within that file I have requires()s to include classes, as such:
require('classes/Post.php');
require('classes/User.php');
require('classes/Comments.php');
require('classes/Category.php');
when I try and include my http://localhost/cms/includes/utilities.inc.php file into the following directory it doesn't work! http://localhost/cms/admin/
when I try I get this error:
Warning: require(classes/Post.php): failed to open stream: No such file or directory in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Fatal error: require(): Failed opening required 'classes/Post.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
When Using Absolute Paths In My Utility File:
require('http://localhost/cms/classes/Post.php');
require('http://localhost/cms/classes/User.php');
require('http://localhost/cms/classes/Comments.php');
require('http://localhost/cms/classes/Category.php');
I get the following error:
Warning: require(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Warning: require(http://localhost/cms/classes/Post.php): failed to open stream: no suitable wrapper could be found in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Fatal error: require(): Failed opening required 'http://localhost/cms/classes/Post.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
How can I get a system that will link properly (preferably WITHOUT anything PEAR related)?

Accidently deleted wp-admin/index.php file

I accidently deleted wp-admin/index.php file, but when I uploaded the file again (index.php) it's producing an error.
Warning:
require_once(/home/kiddyfan/public_html/huatsms.com/wp-admin/admin.php)
[function.require-once]: failed to open stream: No such file or
directory in /home/kiddyfan/public_html/huatsms.com/wp-admin/index.php
on line 10
Fatal error: require_once() [function.require]: Failed opening
required '/home/kiddyfan/public_html/huatsms.com/wp-admin/admin.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/kiddyfan/public_html/huatsms.com/wp-admin/index.php on line 10
What should I do? Could it be a permission setting?
Since it's a core file, you can get it again from the WordPress repository.
Download the version of WordPress you're using from the Release Archive.
Then overwrite your current wp-admin folder with the contents of the zip file you've downloaded. Or just your admin.php file.

application path in codeigniter in php

My system's path is C:\xampp\htdocs\codeigniter and my application folder is inside the system folder. I am facing the following error..
Warning: require_once(C:/xampp/htdocs/codeigniter/core/CodeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\codeigniter\index.php on line 202
Fatal error: require_once() [function.require]: Failed opening required 'C:/xampp/htdocs/codeigniter/core/CodeIgniter.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\codeigniter\index.php on line 202
Your system path should be:
C:\xampp\htdocs\codeigniter\system
And your app path should be:
C:\xampp\htdocs\codeigniter\application
Did you change these?
Your index.php file cannot find the path you specified which means the path is probably incorrect unless you are having permission issues.

Categories