Deploy Laravel via phpfog => View [partials.adminHeader] does not exist

I am trying to deploy a site to phpfog, everything works fine except for my backend. I believe this may have something to do with my sedative controllers (public $ restful = true;), because the only views that show an error β†’ (View [partials.adminHeader] does not exist) correspond to the use of residual controllers. After working for several hours trying to fix this problem, I can’t find a solution!

// Full error

Message:

Viewing [partials.adminHeader] does not exist. Location:

/var/fog/apps/app58421/shipwatch.phpfogapp.com/laravel/view.php on line 156 Stack trace:

# 0 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / view.php (93): Laravel \ View-> path ('partials.adminH ...') # 1 / var / fog / apps /app58421/shipwatch.phpfogapp.com/laravel/view.php(204): Laravel \ View β†’ __ construct ('partials.adminH ...', Array) # 2 / var / fog / apps / app58421 / shipwatch.phpfogapp .com / laravel / helpers.php (526): Laravel \ View :: make ('partials.adminH ...', Array) # 3 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / view .php (359): eval () 'd code (1): view (' partials.adminH ... ') # 4 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / view.php ( 359): eval () # 5 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / blade.php (71): Laravel \ View-> get () # 6 [internal function]: Laravel {close } (object (Laravel \ View)) # 7 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / event.php (199): call_user_func_array (Object (Closure), Array) # 8 / var / fog /apps/app58421/shipwatch.phpfogapp.com/laravel/event.php(138): Laravel \ Event :: fire ('l aravel.view.en ... ', Array, true) # 9 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / view.php (330): Laravel \ Event :: before (' laravel. view.en ... ', Array) # 10 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / view.php (408): Laravel \ View-> render () # 11 / var / fog /apps/app58421/shipwatch.phpfogapp.com/laravel/view.php(345): Laravel \ View-> data () # 12 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / blade.php (71): Laravel \ View-> get () # 13 [internal function]: Laravel {capping} (object (Laravel \ View)) # 14 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / event.php (199): call_user_func_array (Object (Closure), Array) # 15 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / event.php (138): Laravel \ Event :: fire (' laravel.view.en ... ', Array, true) # 16 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / view.php (330): Laravel \ Event :: before (' laravel. view.en ... ', Array) # 17 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / vie w.php (551): Laravel \ View-> render () # 18 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / response.php (246): Laravel \ View β†’ __ toString () # 19 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / laravel / laravel.php (178): Laravel \ Response-> render () # 20 / var / fog / apps / app58421 / shipwatch.phpfogapp.com / public / index.php (34): require ('/ var / fog / apps / a ...') # 21 {main}

+4
source share
2 answers

I ran into the same problem, chmod, and with your storage folder. chmod -R 755

+2
source

What happens if you directly render some content in get () methods

as

class DemoPage_Controller { public function getPosts() { echo 'Direct outputting'; return; //return View::make('demopagetemplate'); } } 

If the docent still works above, make sure mod_rewrite is enabled on Apache (you can use phpinfo () for chk this)

+1
source

Source: https://habr.com/ru/post/1436270/


All Articles