So I've recently developed a CMS with Laravel and its all working great - on my local machine that is...
When I upload it to my webserver I start getting file not found errors from what I believe is composer's autoloader.
The errors originate from the require $file on line 52 (I think, I'm not at the computer right now) in the vendor/composer/autoload_real.php.
I'm not familiar with composer at all so I'm not really sure where to start. All I do know is that it works fine on my localhost but doesn't work on my server with the exact same files. I am just lost as to what to try. Any ideas?
Thanks to everyone for their support. I've got it working now.
I deleted the vendor directory, installed composer on the server, updated my files to the ones provided at laravels github, ran composer install and finally re-uploaded my config, controllers and views.
This was necessary as composer update was giving me even more errors. Either way, I've finally got it working and you guys helped a lot.
Related
I have downloaded TastyIgniter from GitHub and running it in localhost (Windows with WAMP and PHP version 7.1.9). In the last step of installation, I am getting errors that "Downloaded files from server are corrupted" and "Missing vendor files". May I know what is causing these errors and how I can run it without bugs in my localhost.
Run composer update command in the root of your project.
If composer is not installed. Download it from this link official website.
it seems like they hardcoded something.
when you unzip the setup-master folder, keep it as it is and don't rename or move its content.
start your installation by calling:
yoursite/setup-master/setup.php
this worked for me.
I tried to run the installation previously by unzipping the files directly in my html folder and tried several fixes but no success.
after a successful installation you need to forward in your apache config / .htaccess file to the subfolder
In order to do so, don't forget to perform the Post-Installation steps mentioned here:
https://tastyigniter.com/docs/master/installation
I finished by aborting tastyigniter. After a successful installation and theme activation, the application worked fine then "suddenly" it throws an exception that the newsletter component can't be found. All suggested helps on the dev forum didn't help. Even after reinstalling the application it comes to the same error.
Apparently you won't come over a "professional" installation support by the developer ($$$)
Thats pretty much my experience, I tried to install in different servers and environments running into several issues, especially it seems not to be made for anything other but specific development environment. Trying to secure installation with SSL already is an issue, that is very standard but poorly documented with this project. Having an example of how configuration files nginx go! Pay or have an experienced server admin do the trial and error. Integrated update mechanism, get your staging server and help to code. It is ok, just would be more honest to mention upfront, that running that app in production environment requieres some serious server administration skills and is nothing like installing and maintaining a wordpress or any other mainstream script.
I've got a strange problem going on with Symfony. Today I made brand new project using composer create-project symfony/website-skeleton gall command and right after installation, before doing anything in code I go to the website and the only thing that is said on webprofiler toolbar is "An error occurred while loading the web debug toolbar." I don't even get to see what kind of error is this.
The server I'm running is PHP v. 7.2.3, program is Xampp for Windows.
I thought maybe this default starting page is bugged, so I made some test controller and the error is exactly the same. Have you encountered such problem with latest symfony?
I would never figure it out myself, but adding index.php to browser address resolved the issue.
Much better solution is to use command
composer require symfony/apache-pack
As the .htaccess file is not included in the website-skeleton by default :)
Thanks for pointing me in the right direction guys!
I'm a bit fresh to Laravel. I installed it via composer in the xampp/htdocs file. I installed the latest version 5.6.
The install works with no errors, and the file structure is as it should be.
When I run the php artisan serve command from inside the folder, it deletes the server.php file and therefore outputs the error:
This site can’t be reached.
localhost refused to connect.
So I thought why not just add a new file inside and it will work... Well, trying to add new file shows that I do not have permissions to add files to this folder.
I tried a new install a few times, but the situation is always the same.
Has anybody else encountered this problem?
So I realised it was some kind of server problem... well, removed the antivirus, chanhed my firewall settings and everithing works as it should.
My advice to avoid this in the future is to start creating Laravel applications in a folder inside of your My Documents folder in Windows or using /home/{your-username}/projects directory in Unix environments.
What likely happened is xampp has certain permissions that don't play nice with what you need in Laravel.
Apologies in advance if this is off-topic, or something that has been asked before, but is there a way to maintain a stable Drupal 8 website WITHOUT using Composer?
Why I ask is because I am just unable to use Composer on my shared GoDaddy hosting. While it is powerful enough to run multiple drupal 7 and 8 installations, it seems to come to its knees as soon as I run a composer command using ssh (via terminal). Things freeze for a while and then I get a "Killed" message. If I check server processor, I/O or RAM statistics during this time, they are all in the red.
I have read somewhere else on this site that it is not advisable to run composer on a live site. The recommended approach is to run composer on a local (localhost) copy of the website, and upload updated files, but it seems impractical, because sometimes all I need to do is install a small module, or something else that involves only a few files.
Any insight is very welcome. If I am doing something wrong, please suggest the right path. Things have reached a head now.
Thanks in advance.
In a basic , composer downloads libs and creates autoloader.
So if you have the same/similar(php version !!) enviroment on localhost and on server you can simply upload vendor dir to server ( and that's all) .
It'll be working till you add some new lib ( then you need to upload vendor dir again)
So anwsering - you don't need ssh and composer on server.
There's no need to use composer at all, it's just a lot easier.
You can just manually add / remove (uninstall first) modules with FTP ... I don't recommend this though!
I have a website hosted on pagodabox and I keep getting the following error.
Class 'Predis\Client' not found in /data/vendor/laravel/framework/src/Illuminate/Redis/Database.php:62I have already checked this question, but my problem is specifically related to the pagodabox host. I have contacted support, no response from them and I am thinking i;m not gtoing to hear back from theb since this has tro do with the app itself.
I tried updating and recompiling the build on the server to run the updated composer.json file with predis/predis, but this didn't do anything. i followed the instructions in the answer above, but it's not working on my server. Any ideas?
Try this
Remove composer.lock
Remove vendor folder
Run composer install
Hope this helps