I have a laravel 5.1 website and I discovered the follow bug:
When I acces a page I get the following error: Undefined variable: q (View: /home/millows/domains/[domain]/private_html/app/Modules/Webshop/Views/backend/view/products/index.blade.php)
So to remove the error I removed the q variable in the index.blade.php
I get this error because of the following: The controller where the variable q is defined, is not read, when I change something or I create a syntax in the file, nothing happens, the page just works fine.. But on localhost everything work fine and when I create a syntax in the same file then the file gives me an error of the syntax.. I'm confused now
Laravel 5.1 error undefined variable
Everything seems okay, cause the localhost version is working fine and the files on the server ar all the same. And I'm working in the right file, cause I follow the routes path:
Route::group(['prefix' => 'admin/webshop', 'module'=>'Webshop', 'namespace' => 'App\Modules\Webshop\Controllers\Backend'], function(){
Route::resource('products', 'ProductsController');
I don't know where to look now, maybe somebody is familiar with this strange bug?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2j8YxJY
via IFTTT
Aucun commentaire:
Enregistrer un commentaire