Laravel error - Illuminate/Support/Arr.php on line 71 - laravel-4

I am not sure as to what is causing this error.
(!) Warning: Invalid argument supplied for foreach() in /..../vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 71
I think it might be an environment variable issue. But I am not sure.
The Call Stack
{main}()
require_once('..../bootstrap/start.php')
require('..../vendor/laravel/framework/src/Illuminate/Foundation/start.php
Illuminate/Config/EnvironmentVariables->load()
Illuminate/Config/FileEnvironmentVariablesLoader->load()
array_dot()
Illuminate\Support\Arr::dot()
** Please not that the ..... is a representation, not what I have in my file, just figured my personal file path was not going to help at all.
I have a .env.local.php file in the root of the main project directory with the correct DB info in it.
Anyone have an idea of what has happened?
Thanks in advance. And if you need any more info, please let me know, I don't know what you might need on this one.

Related

FatalError with RequestContext constructor

I have a problem with an update of a Symfony 4 project, I get a fatal error:
"Argument 1 passed to Symfony\Component\Routing\RequestContext::__construct() must be of the type string, null given, called in var/cache/dev/ContainerHuVphBe/srcApp_KernelDevDebugContainer.php on line 1569"
Has anyone ever had a similar problem? It's impossible for me to find where this configuration error came from.
thank you in advance for your help
Had this problem updating from Symfony 3 to Symfony 4, found the fix to be changing out configuration files.
Before:
router.request_context.base_url: ~
After:
router.request_context.base_url: ""

Xcode error: Command failed with exit code 1

I imported a new code into Xcode and I am getting this error:
Command
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
failed with exit code 1.
How do you fix it?
Try cmd+alt+shift+k. This cleans your derived data and might fix the issue.
As far as I know there can be multiple reasons why a compiler fails. Although cmd+alt+shift+k will help most of the time. If this fails, then click on the error message and try to debug it.
For example in the image below, if you read the message, we get to know that, there has been a name duplication. Fixing the name duplication will fix the

MAC go get github.com/go-gl/gl

On MAC i am trying to setup GO-GL, but when i run
go get github.com/go-gl/gl
I get the following error:
In file included from src/github.com/go-gl/gl/attriblocation.go:7:./gl.h:2:10: fatal error: 'GL/glew.h' file not found
Someone please help me figure this out!
Unless you have a good reason not to, you should use go-gl/glow package instead of go-gl/gl. It will provide you and your users with a better experience.
https://github.com/go-gl/glow#glow

After porting some php and web app related files from my friend's windows computer to my mac I'm getting some errors

This is for a facebook app being run on heroku, but heroku is probably not the issue. The issue is either some kind of cache related thing, os porting, or I'm thinking it might be a carriage return issue.
In any case I'm getting a couple errors at the top and bottom respectively:
Warning: Unknown:
Warning: session_start(): open(C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp/sess_i4ood4poc11ebsgth000g1nm74, O_RDWR) failed: No such file or directory (2) in /app/www/sdk/src/facebook.php on line 37
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /app/www/sdk/src/facebook.php:37) in /app/www/sdk/src/facebook.php on line 37
open(C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp/sess_i4ood4poc11ebsgth000g1nm74, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp) in Unknown on line 0
Essentially I have tried the whole "making sure session is at the top thing," but I don't have that session piece of code in any of the files. I have tried the whole making sure "?>" is on a new line as well to no effect.
update
I have discovered something called:
zend_extension_ts="C:\Program Files (x86)\Jcx.Software\VS.Php\2010\php 5.2\ext\php_xdebug.dll"
within a file called php.ini which even after I tried to get rid of didn't seem to change anything. So, I'm thinking this has something to do with some previous files that I pushed and then removed with extensions like puo, intellisense.cache, projphp, etc.
I don't know if those are auto-generated or not, but in any case according to my errors:
There is some session data in a file called temp. I have no file named temp.
zend_extension_ts supposedly gets referenced somewhere, but it isn't visible in my code.
I apparently need to resend session cache limiter again through session_start() which is not visible in my code.
Is not the session , I'm sure. But there is directory path included in your code but that directory does not exist! Just refactor that part of the code first!
As a tip you should use realpath() and check if path exist before attempting to use it.
Hope this helps!

Tank Auth http://localhost/codeigniter/index.php/auth Error

This is my first time using authentication library. I followed this post to install tank auth. But there is something wrong at http://localhost/codeigniter/index.php/auth when I try to access it. It gives me some lines in the page:
A PHP Error was encountered
Severity: Warning
Message: require_once(phpass-0.1/PasswordHash.php): failed to open
stream: No such file or directory
Filename: libraries/Tank_auth.php
Line Number: 3
I tried to edit the third line of ~/codeigniter/application/libraries/Tank_auth.php and nothing good happened. I'm sure that PasswordHash.php exists in phpass-0.1 directory.
Could anyone help me or shed some light?
The problem is definitely in that the file PasswordHash.php cannot be found in this line of code:
require_once(phpass-0.1/PasswordHash.php)
Confirm the file exists in the location you think it does, and I hope you are using quotes:
require_once('file.php');

Resources