Got Server Error 500 for web project which was downloaded from git - laravel

I made a project on GIT. It executes fine on my computer. But when I push it to GIT and my friends pull it, they can't execute it. They got this error-
Server Error (500)
Error screenshot
I found a lot of solutions on the Internet but nothing worked, so I have to ask on here. I use Wampserver, Sublime Text, Laravel for this project.

Manually copy the .env variable file and edit the settings accordingly.
It's listed as a standard in the .gitignore file because you don't want to upload the credentials in there to a VCS.

Related

Cmder seems to be broken after git push, how can I fix the clink.lua?

I'm working in a group using GitHub, and when I tried transferring my work to the remote repo it didn't allow me to. It says I must do git pull first, so I did. That created some conflict in my code, then I tried to do git push again and that didn't work either.
So I switched to a new branch and tried to push from there. Didn't work with a simple git push, but a similar instruction worked for me.
Since then cmder keeps showing this:
C:\laragon\bin\cmder\vendor/clink.lua:219: attempt to index local 'HEAD' (a nil value)
C:\laragon\www\pharmacie>
Which allows me only to use instructions like php artisan serve, but not Git instructions like git status...
I already tried some clink.lua code that I found on github, but didn't work.
I tried abandoning my project, so I cloned the remote repo locally.
But then it didn't clone the vendor folder or the .env file; so I added them from an other repo (so it could compile) and changed the DB name in the .env file to match my project.
Now it keeps giving an error that says the table of the project I got vendor + .env from doesn't exist. But I didn't leave that table in the .env, I changed it to my project.
Any help?
Your problem is probably due to a conflict in a file you didn't handle.
When there is a conflict, a file usually looks like this:
<<<<<<<<< HEAD
// Some code
==============
// Some other code
>>>>>>>>> branch
And you have to choose what you want to save and what you want to delete after the merge.
So I would recommend to you to check your C:\laragon\bin\cmder\vendor/clink.lua file at line 219 to see if it could contain what I just said above.
And by the way, you should add your vendor folder in your .gitignore
And for the problem with your .env file, did you run php artisan migrate ?
EDIT
And because the problem come from your vendor folder, you could resolve it by deleting your vendor folder and run composer install to reinstall your dependencies
I have been facing the same issue. I resolve the issue by updating the cmder.
As like the image above for that click on the upper right corner (Setting) on the cmder window.
1. Choose: General -> Update
2. Check the Startup checkbox for (Do automatic check on) and then
3. Click the save settings button
4. Restart the cmder.
5. It will prompt for update and allow it to update.
6. Restart cmder again and it will resolve the issue.
I repair it as follows:
clone the repository again into another folder
access the hidden .git folder and copy only the folders (hooks, info, logs ...), do not copy the files
replace the folders in the .bin folder of the newly cloned project with the old one
with this I recover the branches and the code of my project, I hope and it will be useful to someone.

Build Failed from Dev to Staging using TFS Release management

I am trying to build a project from dev to staging environment, what all i did was just to merge the changes in dev to staging and trigger a build. but the build got failed even tried multiple times.
Below is the log file shared in google drive. there are no errors mentioned in the log file. Can anyone help me solve this problem.
https://drive.google.com/open?id=0B85ZmWDiKYHRVmN4MlMxc0ZEd28
I found a error in the log file in the release management, which says that "access denied for appsettings.config" file. I did remove the read only on the folder in the server and it worked. I am not sure of this fix properly, but it did work for me.
Thanks.

Git pushes files to github with wrong username

I'm trying to push my committed changes to Github using Terminal on Mac OS but
it keeps saying that the access to the repository is denied to my old github user
Permission to myuser/test1.git denied to "OldUser".
fatal: unable to access 'https://github.com/"NewUser"/test1.git/': The requested URL returned error: 403
I found some similar problems but none of the answers worked for me:
First of all Iv'e removed all the SSH keys from my mac and created a new one which I then synced with my github account.
Second, I have set the Global config for git to my new username and email using
git config --global user.name AND user.email
When I changed the user and email in the git local config file in my project dir (thinking at least that would work), I was surprised to see the same error when pushing, with my old user name popping out again.. (I really thought a local config would override any old global values) I just don't know where to look anymore..
There are no git environment variables defined and the SSH keys were all re-created.
seems that the last option is to re-install git which would be a really ugly way out..
Oh! BTW when i'm trying to push to github using the dedicated MacOS app it works just fine! I wasn't surprised a bit because all users reporting this problem said that the app worked for them just fine.. Just thought I mention it!
So, if anyone got an answer (or at least a hunch) it would help me a lot.
BTW when I'm trying to push to github using the dedicated MacOS app it works just fine!
It is possible the gitHub for Mac is using https url, with your GitHub login/password (which GitHub for Mac is caching).
Check the url associated with your remote origin:
git remote -v
If it is an https url (like your error message suggests "unable to access 'https://github.com/"NewUser"/test1.git/'"), no amount of SSH fiddling will change that error.
Maybe, for http url, the Credential Caching on Mac OS X has still the old credentials.
I had the exact same error on Windows and apparently it's a Git problem. Thanks to ayan4m1 at github forums (https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/152) I finally fixed this issue in Windows using notepad in admin mode to delete the credential.helper = manager lines from the C:\Program Files\Git\mingw64\etc.gitconfig file. Nothing else worked.
Apparently since I was in non-elevated mode in Git bash from my IDE none of my global commands were able to overwrite the global file. Hope this helps and saves time for someone else with this issue.

Joomla administrator login error

I have a Joomla 3.1 installation on a ubuntu server and it was working fine.
Today, I have downloaded a template and placed the zip file on templates folder, unziped by ubuntu terminal and that's all. Since then, when I try to login on Administrator side, it gives this error:
An error has occurred.
0 SQL=SHOW FULL COLUMNS FROM `<prefix>_users`
I have deleted the zip files considering it was the only change I've made, but nothing happens. I noticed that if I login incorrectly, it gives another error:
An error has occurred.
0 Cannot open file for writing log
Like it has some problem to write the log file, but hours ago it could. Anyway, knowing this, I changed all folders/files permissions to 777.
Thanks in advance.

Getting Obstructing Warning with .pbx workspace file svn local copy.

I am working with svn server to upload my updated file to server. But at last when i upload latest copy to server at that time i get Obstructing warning in my below given Xcode project file. I dont know what to do for this please help me to get it out.
Following is my file which is giving me Obstructing warning.
UserInterfaceState.xuserstate.
dat0b55.00f
When i search this file in finder it give me location of xproject workspace.path as below:
MyProject.xcodeproj/project.xcworkspace/xcuserdata/myworkspace.xcuserdatad/UserInterfaceState.xcuserdatad.
I can't understand how to remove this warning. I can't remove project and upload fresh copy because it is on client server.
So, If it possible please help me to solve it manually without deleting project.
I have solved this by replacing all required files from my back up.You can get above file from .pbx extract your project file with show in package content and replace it.It's work for me fine.

Resources