My Laravel 4 app shows errors when uploaded to my website - php

I am new to Laravel 4. When I upload my app to my website it shows errors. How should I configure it to fix it?
Warning: require(__DIR__/../bootstrap/autoload.php) [function.require]: failed to open stream: No such file or directory in /home/a4651312/public_html/laravel/public/index.php on line 21
PHP Error Message Fatal error: require() [function.require]: Failed opening required '__DIR__/../bootstrap/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a4651312/public_html/laravel/public/index.php on line 21.
I put my app (name laravel) in public_htmt and sent a link from default.html to public.

Related

PHP Fatal error: require()

I have a website that works perfect in my localhost with xampp, but... I uploaded it to a few free websites hosting (000webhost and hostinger) and when i try to open it, got this message:
Warning: require(core/libs/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/u327900732/public_html/www/index.php on line 7
Fatal error: require(): Failed opening required 'core/libs/smarty/Smarty.class.php' (include_path='.:/opt/php-5.5/pear') in /home/u327900732/public_html/www/index.php on line 7
This is the code:
<?php
session_start();
$view = isset($_GET['view']) ? $_GET['view'] : 'index';
require_once('core/libs/smarty/Smarty.class.php');
require('core/models/class.Conexion.php');
if(file_exists('core/controllers/'.$view.'Controller.php')){
include('core/controllers/'.$view.'Controller.php');
}else {
include('core/controllers/errorcontroller.php');
}
?>
I checked that file one hundred times and it is there.
I found and tried this solutions:
Changing Require for Include:
Warning: include(core/libs/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/u327900732/public_html/www/index.php on line 7
Warning: include(): Failed opening 'core/libs/smarty/Smarty.class.php' for inclusion (include_path='.:/opt/php-5.5/pear') in /home/u327900732/public_html/www/index.php on line 7
Fatal error: Class 'Smarty' not found in /home/u327900732/public_html/www/core/controllers/indexController.php on line 3
require(chdir(dirname(FILE)) . 'core/libs/smarty/Smarty.class.php');
Warning: require(1core/libs/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/u327900732/public_html/www/index.php on line 7
Fatal error: require(): Failed opening required '1core/libs/smarty/Smarty.class.php' (include_path='.:/opt/php-5.5/pear') in /home/u327900732/public_html/www/index.php on line 7
Changing line 7 for
require_once($_SERVER['DOCUMENT_ROOT'].'/core/libs/smarty/Smarty.class.php');
Warning: require_once(/home/u327900732/public_html/core/libs/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/u327900732/public_html/www/index.php on line 7
Fatal error: require_once(): Failed opening required '/home/u327900732/public_html/core/libs/smarty/Smarty.class.php' (include_path='.:/opt/php-5.5/pear') in /home/u327900732/public_html/www/index.php on line 7
I tried adding './' to the path but it still doesn't work. I repeat, the site works perfect in my localhost. Help please!
Trying to use complete url to test your url. Or check in your browser to check the file exist or not. Like here:
http://host.com/core/libs/smarty/Smarty.class.php
I think it will show error that show your file isn't exist there.

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! :)

WP-admin is not working, showing php errors

Warning: require(wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/tratam79/public_html/masoarafebra.ro/wp-admin/index.php on line 17
Warning: require(wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/tratam79/public_html/masoarafebra.ro/wp-admin/index.php on line 17
Fatal error: require() [function.require]: Failed opening required 'wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tratam79/public_html/masoarafebra.ro/wp-admin/index.php on line 17
Those are the errors I get when trying to access wp-admin. As of now I've tried forging the full URL to the files. Any ideas?
It could be your wordpress file is missing or not accessible. If you just upload it, it might be it is not uploaded completely.

Error loading CMSMS website

I just uploaded a CMSMS website, but cannot view the website. Am getting the error:
Warning:
require(/home/inkbran1/public_html/century21nigeria/lib/smarty/Smarty.class.php)
[function.require]: failed to open stream: No such file or directory
in /home/inkbran1/public_html/century21nigeria/include.php on line 153
Fatal error: require() [function.require]: Failed opening required
'/home/inkbran1/public_html/century21nigeria/lib/smarty/Smarty.class.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/inkbran1/public_html/century21nigeria/include.php on line 153
Please, what can i do? I am a PHP dummy.
Make sure that the file Smarty.class.php is in the directory listed in the error message.

Troubleshooting "failed to open stream: No such file or directory" when require()ing twilio-lib.php

I have downloaded the Twilio PHP library but I am getting an error when I try to include the library in my code.
Below is the error I get:
Warning: require(twilio-lib.php) [function.require]: failed to open stream: No such file or directory in /websites-dev/dev.icalapp.rogersdigitalmedia.com/testing.php on line 11
Fatal error: require() [function.require]: Failed opening required 'twilio-lib.php' (include_path='.:/usr/share/pear:/usr/share/php') in /websites-dev/dev.icalapp.rogersdigitalmedia.com/testing.php on line 11
Someone fudged up somewhere - there is no such twilio-lib.php file in Twilio's PHP library.
Try removing the line in your downloaded PHP that looks exactly or similar to the following:
require "twilio-lib.php";

Categories