laravel not wroking on hosting - laravel

Hello world i just completed developing laravel web in the localhost everything work fine but when i Booking hosting in webhostface.com i have tow problem Error one is
file_put_contents(D:\web\API\storage\framework/sessions/r62WPTDKAhf5shlupWGhJzMv5U9BtEdzxrKYaGN5): failed to open stream: No such file or directory
and the problem tow is
Class 'Illuminate\View\Factory' not found
Knowing that I have made sure that all project files are up and there is no loss of files

Related

Laravel InvalidArgumentException in Google Cloud Platform

I published my project on Google Cloud Platform (with gCloud). But these are the errors:
First Error:
at FileViewFinder->findInPaths('welcome',
array('/Applications/MAMP/htdocs/project-laravel/resources/views'))
Second error in other route:
file_put_contents(/Applications/MAMP/htdocs/project-laravel/storage/framework/views/0e930ae47a8b122c0468c37872fd9792aed8b643.php):
failed to open stream: No such file or directory
In my local, I clear cache and updated the composer. And after that, I published the code. How can I fix these errors in GCP?
/Applications/MAMP/htdocs/project-laravel/storage/framework/views/0e930ae47a8b122c0468c37872fd9792aed8b643.php
Is a path on your Macintosh, it doesn't exists on App Engine. Consider this answer, which talks about the exactly same issue but for Windows with XAMP.

Laravel 4 localhost status 500

I pushed (bitbucket) a laravel 4 project from my imac and pulled it with another mac. What I get is a status 500 message if i try to visit /public.
I am using MAMP.
The strange thing is that every other laravel project is working fine. One project is even a copy of the project that doesn't work.
Any idea whats wrong?
Point Apache to a public directory instead of root one and use URLs without public in it.
Restart web server after that to make it work.

How to use code igniter in ubuntu web server?

I have a working ubuntu web server made by myself. PHP, mysql and every thing is working well for websites that are created without codeigniter. The thing is I have a web site that uses the codeigniter frame work. but I don't know how to configure my web server to work with codeigniter.
When i go to localhost keeping the default files browser is showing the codeigniter welcome message.
When I remove the application folder and paste my application folder that is having my php app it is showing an error saying:
Warning: require(../application/config/constants.php): failed to open
stream: Permission denied in
/opt/share/php/system/core/CodeIgniter.php on line 64
Fatal error: require(): Failed opening required
'../application/config/constants.php'
(include_path='.:/opt/share/php/system:/usr/share/php') in
/opt/share/php/system/core/CodeIgniter.php on line 64

Can't get access to file on localhost under Windows

Periodically after branch downloading from github Yii shows such an issue:
copy(Z:\home\localhost\www\insur\insurance\assets\c75d288a\css\_notes\dwsync.xml) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
(/_notes/dwsync.xml - is a file created by DreamWeaver automatically for developer's notes).
I can't figure out following:
Why Yii tries to implement copy($path,$dst.DIRECTORY_SEPARATOR.$file); for that file (it's here: [site_root]\yii\framework\utils\CFileHelper.php(130))?
Why an access error is possible on Windows localhost?
What exactly is an error source - Windows, Apache or Yii (or maybe DW)?
What is solution?
So a real Guru needed!
I believe that here is one!
Generally Yii Assets Manager will try to publish (or republish) copies of diffirent resources (img, css, js, ..etc) used by your app (made by you or nativly in the framework, e.g Gii module stuff)
An access error can happen in localhost if you didn't set needed permission to web-server process. But in this exact case i think the web-server can not find the folder from the begining.
It is a joint crime between Yii & Apache. Yii CAssestsManager expects an assets folder, Apache can't find it and complains
Proposed Solution:
Make sure you have a folder named assets in your App Root and make sure it's writable by the web server process!!
To understand more about Yii Assests check this wiki-post

My website is throwing "PHP Fatal error: Call to undefined method CI_Lang::lang()"

I created a website using CodeIgniter Framework 2.1.0 that was originally working well. Yesterday, I integrated this i18n code into the site for multi-language support.
Now, when I upload my site to cpanel and open it, I get this error in my log file:
[21-Nov-2011 10:19:04] PHP Fatal error: Call to undefined method CI_Lang::lang() in XXXX
However, the website is working well on my localhost server (xampp for Windows). What's wrong?
See the thread attached to the library: http://web.archive.org/web/20120112092127/http://codeigniter.com/forums/viewthread/179036. In the first post is attached a modified library that claims to alleviate the buggyness of the original.
There is also a post on the first page there referencing an error similar to yours:
After copying the files as described in the article I get the
following error: Fatal error: Call to undefined method
CI_Lang::CI_Lang() in
/www/websites/audio-machinery/application/core/MY_Lang.php on line 32
Though he seems to be calling CI_Lang, not Lang. His solution appears to have been to use the code attached to the forum thread.
Also, cpanel is a control panel for hosting, not a hosting provider. But your hosting provider may be causing issues (e.g. if using older versions of PHP which do not work with newer version of CI. Often hosting providers will give you the ability to choose which version of PHP you are using--usually found in cPanel).
have you uploaded ALL the new files to your live server? that error implies that the code is not found or available to the script.
I came accross the same problem.... it was working fine on localhost but when loaded on live server it gives me undefined error... the problem appears becuase I created file with name My_Lang.php and My_Config.php as on live server it is case sensitive.... so I changed it to MY_Config.php and MY_Lang.php .... it works fine now.... Hope it will work for you too

Resources