-1

There is a project in a bitbucket repository where I am developing with 3 more other people. We have the development branch where we close versions and it is the main branch of the project. The thing is that in my computer all files pulled from that branch works fine and I can navigate trough all pages without getting any exception. On the other hand the other 3 people are getting this error in some pages:

enter image description here

enter image description here

Like I said, in my computer this page and some other ones work fine so my guess is that's most likely an error in a file that has .gitignore or individual computer file.

Already tried:

  • running composer update, composer dump-autoload, php artisan optimize;
  • clearing cache;
  • searching into real syntax error in controller (didn't find anything. If there really was this syntax error i'd be getting it too because files are pulled from git);
  • deleting logic inside controllers to check if it was syntax error (didn't find anything again);
  • replacing their vendor folder with my vendor folder;
  • cloning the project again in their machines

These exceptions occur mainly in namespaces after /admin/editar_paginas/vantagens We are using AdminLTE package, not sure if there is something related with it.

Honestly I have no ideia what's going on. How can it work specifically in my computer and on theirs not? Let me know if it's not clear enough.

jedrzej.kurylo
  • 39,591
  • 9
  • 98
  • 107
Diego
  • 374
  • 1
  • 2
  • 14

2 Answers2

0

yesterday i got stuck on a similar situation where i was not getting what the error was all about, so what i did was i deleted the controller,model ,request and migration and recreated it all it removed the error. it worked for me and if there is not much data in the database you could give it a try, laravel does produce such errors from time to time.

Hassaan
  • 339
  • 1
  • 8
  • 20
0

It was really PHP version. They had PHP 5.6 in their machines. Upgrading it to ^7.0 solved the issue.

Diego
  • 374
  • 1
  • 2
  • 14