-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
  • 36,939
  • 9
  • 88
  • 100
Diego
  • 325
  • 1
  • 2
  • 12
  • 1
    Did you check your php versions, there where some updates concerning function chaining in php7. – ju_ Oct 08 '17 at 23:03
  • The error is likely in the blade template, not in the controller.... look in `/app/storage/framework/views` for files with those names – Mark Baker Oct 08 '17 at 23:08
  • @ju_ Will check that. But we have been developing for a few months and never had an issue like this. – Diego Oct 08 '17 at 23:12
  • 1
    What does the code on line 15 look like? – Scuzzy Oct 08 '17 at 23:12
  • @MarkBaker Like I said my blade template is exactly like theirs so it's definitly not this. – Diego Oct 08 '17 at 23:12
  • @Scuzzy I have no ideia what file is that :/ There is no project file with that name. – Diego Oct 08 '17 at 23:13
  • 1
    the naming convention looks like a temp file, does it exist on the server during runtime? – Scuzzy Oct 08 '17 at 23:15
  • there are a few files in temp folder – Diego Oct 08 '17 at 23:25
  • 1
    So, have you tried to find that file in the very first place? – zerkms Oct 09 '17 at 00:11
  • @zerkms That exactly file does not exist in my computer. But I opened all of the temp files and searched for a '->' occurrance and didn't get results. – Diego Oct 09 '17 at 00:40
  • Possible duplicate of [PHP Parse/Syntax Errors; and How to solve them?](https://stackoverflow.com/questions/18050071/php-parse-syntax-errors-and-how-to-solve-them) – Chris Oct 09 '17 at 02:06
  • @ju_ That was the problem, thanks! – Diego Oct 11 '17 at 20:22

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
  • 331
  • 1
  • 9
  • 19
0

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

Diego
  • 325
  • 1
  • 2
  • 12