Error displaying the error page: Application Instantiation Error: Failed to start the session - joomla

I'm getting the white screen of death on my joomla site. I am using php7.3.
I have added this to my htaccess file
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
My hopes were that it would solve this issue, but it did not. On the frontend of my site, visitors see a white screen only. On the administrative side of my site, I am seeing this error message.
Warning: session_start(): Failed to read session data: user (path: /var/cpanel/php/sessions/ea-php73) in /home2/webwiza2/public_html/libraries/joomla/session/handler/native.php on line 260
Error displaying the error page: Application Instantiation Error: Failed to start the session
I reviewed the path identified as "/var/cpanel/php/sessions/ea-php73" and the php directory level doesn't exist; not sure why the native.php would reference a directory that doesn't exist. I have my hidden files showing. In other words when I go to the /var/cpanel/ directory I only see one folder and it is not 'php.'

I rolled back my Joomla to the previous version and re-installed; updated my ini & htaccess files with the appropriate version references and all went well after that.

Related

why can't resolve the required file Laravel on on my hosting server?

I'm trying to connect the folder public with Laravel but I can't
API is in another folder called Laravel01
I've changed the url on index.php
require __DIR__.'/../laravel01/vendor/autoload.php';
but I can't step back to the root folder
Fatal error: require(): Failed opening required '/homepages/15/d831964969/htdocs/api/../laravel01/vendor/autoload.php' (include_path='.:/usr/lib/php7.4') in /homepages/15/d831964969/htdocs/api/index.php on line 24
it keeps on api folder when it must link with laravel01 folder
sorry for my English and I hope everybody can understand me, thanks a lot

How to fix the disappearance of bootstrap template from my laravel project

I downloaded a laravel project from a shared hosting and I want to edit him in my localhost but when I type out the home adress: localhost:8000/ it shows me those two errors :
Warning: require_once(C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php): failed to open stream: No such file or directory in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21.
Fatal error: require_once(): Failed opening required 'C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php' (include_path='C:\xampp\php\PEAR') in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21.
then I found a solution which is to remove some code from the server.php
the line :
require_once __DIR__.'/public/index.php';
Become :
require_once __DIR__.'/index.php';
then the error fixed and the website worked in my localhost but the design is gone , it show me a static html website without any color or image or any thing.
You are not seeing any images or designs(CSS/JS) probably because your all assets and images are having public folder in url, check the console of browser and see what errors you get.
You will have to remove public for all the urls otherwise you won't be able to run project with php artisan serve

Laravel-Project deployment via FTP

I want to deploy my Laravel-Project but it always shows me this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
My Server Structure is like that:
/
/protected --> All Files and Folders within the project (+ /node_modules & /vendor) except the /public-folder
/public_html --> all Files and Folders within the /public-folder
I already changed the permissions for the /storage-folder and I already changed the paths in the /index.php to
require __DIR__.'/../protected/vendor/autoload.php';
and
$app = require_once __DIR__.'/../protected/bootstrap/app.php';
Any ideas?
place all the files from your localhost (htdocs) to public_html. Also make sure there is no any redirection in your domain-redirection on your hosting server.
The main reason of the internal server error is that your domain is not pointing the directory which you define.
In my case, the index.php file is
require DIR.'/../vendor/autoload.php';
$app = require_once DIR.'/../bootstrap/app.php';
Do all the changes one by one, this will work in your case hopefully. I have mentioned the reference link below please check
https://laracasts.com/discuss/channels/laravel/laravel-deploying-to-server-using-ftp

Magento 1.9 Installation Error

I am trying to install magento 1.9 on my web hosting server .
I ftp-ed the files into my hosted website but experience the following error when i try to access my URL.
Fatal error: Class 'Mage_Core_Controller_Request_Http' not found in /home/bf/public_html/app/code/core/Mage/Core/Model/App.php on line 1238
I tried a google search but i am unable to find anything relevant .
Just download the Fresh copy from Magento community again. Also make sure that your server has all the prerequisite for Magento as mentioned in below link.
http://docs.magento.com/m1/ce/user_guide/magento/system-requirements.html
Please make sure that below files exist in this directory
app/code/core/Mage/Core/Controller/Request/Http.php
1.Make sure you have enabled curl on your server and with have right file permission.
2.Make sure file should exist on following path:
/home/bf/public_html/app/code/core/Mage/Core/Controller/Request/Http.php
3.Make sure compilation mode is disabled.
/home/bf/public_html/includes/config.php
Every thing inside should be commented.
4.If it does not work, you have to debug this.
Open index.php in root and add these line of code,
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
It will show you why error is coming.Once you will find the root cause, you can get the solution on google or any forum.

smarty not working in subfolder

I am using smarty 3 .its not working in subfolder.
Folder Structure
WWW
->admin
->cache
->configs
->libs
->plugins
->templates
->templates_c
index.php
In index.php [Root Folder] it working correctly.
But in admin/index.php it not working i am getting error.
here is my code
require_once('../libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->display('index.tpl');
Error :
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'index.tpl'' in D:\wamp\www\libs\sysplugins\smarty_internal_templatebase.php on line 127
After reading some stackoverflow answer i added $smarty->template_dir = "/templates"; but still i am getting the same error.
Please help me thank you
The content of $smarty->template_dir is relative to the actual directory. (if it is a relative directory.)
It means if you call a admin/index.php then it searches the templates in the admin/templates directory by default. (without adding anything.)
So in the admin directory you should use:
$smarty->template_dir = "../templates";
or an absolute directory.
Otherwise I think you should read this page:
http://www.smarty.net/docs/en/variable.template.dir.tpl
Especially this sections:
It is not recommended to put this directory under the web server document root.

Resources