I'm a fairly new laravel developer, I am developing my website in laravel 5.5 and I've been trying to get my website online for a few days now. it kept giving me error message like:
Warning: require_once(/dirpath/htdocs/vendor/composer/autoload_static.php): failed to open stream: No such file or directory in /dirpath/htdocs/vendor/composer/autoload_real.php on line 28
Fatal error: require_once(): Failed opening required '/dirpath/htdocs/vendor/composer/autoload_static.php' (include_path='.:/usr/share/pear/') in /dirpath/htdocs/vendor/composer/autoload_real.php on line 28
since it is a free shared hosting server without SSH (I cant run laravel command there), I did make sure to do everything from paying attention to folder structure (placing the content of public outside) and every project files/folders in the htdocs content (I know it can be insecure, I just wanted to show the client the progress of the website for a few days before I took it down). I also did composer install, composer update, composer dump-autoload, various artisan command to clear the cache before I push it to the server, but as you can see, the error persist.
a bit of inspecting on my end, and I keep seeing the autoload_static that autoload_real has been trying to require, kept disappearing along with the autoload classmap. What is the reason that is causing this and what should I do to make the error go away?
Thanks in advance, I tried all I know and did some research but I just stuck, hope you guys can help with this.
also: I can't really get myself a vps or a paid hosting right now.
Update 25/04/2018 : I did composer update --no-dev and re-upload the whole thing again to the vendor, but it is still the same error, anybody has a suggestion? I really am stuck at this point.
In this situation you can't do anything on the server without SSH. In your local copy run composer update --no-dev. Then delete server's vendor folder & copy your local's vendor folder to the server.
load psr-4 instead:
inside autoload_real.php, please find the code like shown below:
$classMap = require DIR . '/autoload_psr4.php';
At least this is a dirty trick to make it work. Once you have the money, then may be moved to a well-equipped server later.
Related
I'm working on a new project in TYPO3. It's my frist installation of TYPO3 9.5.5 so I don't know if this is some sort of bug or anything but sometimes, and I really can't give you any more information about it since I dont know where it comes from and how to reproduce this error, my enire typo3 crashes with this error message:
(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: rename(/var/www/html/var/cache/code/cache_core/5cab444370d80224649952.temp,/var/www/html/var/cache/code/cache_core/site-configuration.php): No such file or directory in /var/www/html/public/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php line 234
Since it's in my var directory I figured to just delete the entire folder but as soon as I try to delete it Windows tells me I don't have permission to delete this file or even change it. When I try to open it in an editor it tells me that the file doesn't exist and I can't do anything about it unless I restart my entire PC.
I've found some people with the same issue here, but no way to fix it or anything on how to prevent it from happening.
I'm using the composer installation of TYPO3 with ddev on Windows 10.
Does anyone know about this error or can tell me anything on how to fix it?
Did you try to flush all TYPO3 caches?
To do so, go to Admin Tools => Maintenance => Flush TYPO3 and PHP Cache.
If the problem persists, you can try to got to Admin Tools => Environment => Directory Status and check if all permissions are set properly.
And since you run TYPO3 with ddev, you can use the shell (Putty or whatwever) and do a ddev ssh to login directly to the container and delete the files there.
I am attempting to install the Google Calendar API: https://developers.google.com/google-apps/calendar/quickstart/php#prerequisites
I've completed all the steps and when I perform the final action the "php quickstart.php" command in composer it provides me with a link that must be followed to get access to the api
example
After entering this code however it providies me with this SSL error
Alright threw 2 hours of research and reading the error messages a lot I have located a solution. I had to install a cacert.pem file inside my php folder and go into my php.ini and locate curl.cainfo and uncomment it and provide the file path to the cacert.pem file. I'm extremely confused on why I didn't have one to begin with considering I reinstalled composer and my server like 2 times sooo idk. If this helps anyone in the future your welcome.
I am not sure what's going on with my magento installation.
I downloaded the latest version of Magento 2.1.1 as zip.
Extracted, setup a database then tried running the install but I keep on getting this stup*d error and I could not find any answers online.
Can someone help me on this one please? Its been a while since I used magento since I got used to working with Wordpress websites.
I tried looking for the file manually, but just like the error said, it does not exist. Where can I find this registration.php file under magento/framework/ folder?
Try run this command in your magento root folder.
composer dumpautoload
Then reload page you've got this error.
Still not working ?. Fell free to reply :)
If you are using composer to Install, the solution is simple re run the commands from the Magento Root Folder.
Inside /vendor/autoload.php there is a Base Path Global Variable that take the path to execute the vendor_path.php, and, in my case, it take the path where I am and not the Root.
I hope this is helpful for someone.
Have a nice coding day
please run
composer dump-autoload
to reload composer autoload files this issue mostly when you update a library and then fall back to original but magento composer files doesn't fall back to original so you need to generate files again.
I keep getting a protocol error when I try to use "laravel new Laravel" inside of the homestead ~/Code directory. If I use the command in the home directory it creates the project without any issues, so I tried moving the created project from the home directory and into the ~/Code directory and still got a protocol error trying to move it. Has anyone run into this issue? I have been googling for about two hours now and haven't found any useful information :/
I installed Laravel on the box using the installer method (composer global require "laravel/installer=~1.1")
Thanks to whoever helps, I really appreciate it this is so frustrating.
Trevor Kavanaugh
Found it out lol, I did not have read/write permissions on the shared host folder facepalm
I have this trouble: i copy symfony project files on my pc, after that change paths and db settings, and it still not working, even dont tell about errors! Maybe there is some specific actions for setting up symhony on another server?
Almost the same problem How to configure symfony project in local server? but when i try execute "php symfony" it prints "no such file or directory"
There are no any php errors at all.
Using Fedora 15 OS, and apache. php work in command line, symfony is not working. I tried to find out what is happening - inside Controller.class some error, when it use processObjects method, it take 11 objects, and after first of them (header.object.php) it stops.
The white screen generally means symfony can't write to cache and/or log dir, check on apache error logs to see details.
if 'php symfony' on command line throws no such file or directory could mean php is not in your system path.
Please add more information to get answers
myabe, as said below is a permission problem of the caché and log files. Check if they are writable. Good Luck!