Whoops! There was an error.

28. ErrorException
…/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php117
27. Illuminate\Exception\Handler handleError
<#unknown>0
26. unlink
…/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php117
25. Illuminate\Filesystem\Filesystem delete
…/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php208
24. Illuminate\Support\Facades\Facade __callStatic
…/workbench/idocrea8/image/src/Idocrea8/Image/Image.php62
23. Illuminate\Support\Facades\File delete
…/workbench/idocrea8/image/src/Idocrea8/Image/Image.php62
22. Idocrea8\Image\Image delete
…/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php208
21. Illuminate\Support\Facades\Facade __callStatic
…/app/Repositories/PhotoRepository.php141
20. iDocrea8\Image\Facade\Image delete
…/app/Repositories/PhotoRepository.php141
19. App\Repositories\PhotoRepository delete
…/app/Repositories/UserRepository.php659
18. App\Repositories\UserRepository changeDesignBg
…/app/controllers/AccountController.php100
17. App\Controllers\AccountController uploadBg
<#unknown>0
16. call_user_func_array
…/vendor/laravel/framework/src/Illuminate/Routing/Controller.php231
15. Illuminate\Routing\Controller callAction
…/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php93
14. Illuminate\Routing\ControllerDispatcher call
…/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php62
13. Illuminate\Routing\ControllerDispatcher dispatch
…/vendor/laravel/framework/src/Illuminate/Routing/Router.php934
12. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
11. call_user_func_array
…/vendor/laravel/framework/src/Illuminate/Routing/Route.php104
10. Illuminate\Routing\Route run
…/vendor/laravel/framework/src/Illuminate/Routing/Router.php1000
9. Illuminate\Routing\Router dispatchToRoute
…/vendor/laravel/framework/src/Illuminate/Routing/Router.php968
8. Illuminate\Routing\Router dispatch
…/vendor/laravel/framework/src/Illuminate/Foundation/Application.php738
7. Illuminate\Foundation\Application dispatch
…/vendor/laravel/framework/src/Illuminate/Foundation/Application.php708
6. Illuminate\Foundation\Application handle
…/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php38
5. Illuminate\Http\FrameGuard handle
…/vendor/laravel/framework/src/Illuminate/Session/Middleware.php72
4. Illuminate\Session\Middleware handle
…/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php47
3. Illuminate\Cookie\Queue handle
…/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php51
2. Illuminate\Cookie\Guard handle
…/vendor/stack/builder/src/Stack/StackedHttpKernel.php23
1. Stack\StackedHttpKernel handle
…/vendor/laravel/framework/src/Illuminate/Foundation/Application.php606
0. Illuminate\Foundation\Application run
…/index.php48
open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php

     */ public function delete($paths) { $paths = is_array($paths) ? $paths : func_get_args(); $success = true; foreach ($paths as $path) { if ( ! unlink($path)) $success = false; } return $success;

<#unknown>
open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php

     */ public function delete($paths) { $paths = is_array($paths) ? $paths : func_get_args(); $success = true; foreach ($paths as $path) { if ( ! unlink($path)) $success = false; } return $success;

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php

     switch (count($args)) { case 0: return $instance->$method(); case 1: return $instance->$method($args[0]); case 2:

open: /var/www/html/demo/workbench/idocrea8/image/src/Idocrea8/Image/Image.php

     \File::delete($filePath); } } } else { $path = $basePath.$path; if (file_exists($path)) { \File::delete($path); } }

open: /var/www/html/demo/workbench/idocrea8/image/src/Idocrea8/Image/Image.php

     \File::delete($filePath); } } } else { $path = $basePath.$path; if (file_exists($path)) { \File::delete($path); } }

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php

     switch (count($args)) { case 0: return $instance->$method(); case 1: return $instance->$method($args[0]); case 2:

open: /var/www/html/demo/app/Repositories/PhotoRepository.php

     public function get($id) { return $this->model->where('id', '=', $id)->orWhere('path', '=', $id)->first(); } public function delete($path) { return \Image::delete($path); }

open: /var/www/html/demo/app/Repositories/PhotoRepository.php

     public function get($id) { return $this->model->where('id', '=', $id)->orWhere('path', '=', $id)->first(); } public function delete($path) { return \Image::delete($path); }

open: /var/www/html/demo/app/Repositories/UserRepository.php

     'path' => 'users/'.$user->id.'/design', 'slug' => 'design', 'userid' => $user->id, 'resize' => false ]); if (!$image) return false; $this->photoRepository->delete($current); return $image;

open: /var/www/html/demo/app/controllers/AccountController.php

     /** * Ajax serving */ public function uploadBg() { if (\Request::hasFile('image')) { if ($image = $this->userRepository->changeDesignBg(\Input::file('image'), \Input::get('val.bg_image'))) { return json_encode([ 'response' => 1,

<#unknown>
open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Routing/Controller.php

     * @param array $parameters * @return \Symfony\Component\HttpFoundation\Response */ public function callAction($method, $parameters) { $this->setupLayout(); $response = call_user_func_array(array($this, $method), $parameters); // If no response is returned from the controller action and a layout is being

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php

     * @param string $method * @return mixed */ protected function call($instance, $route, $method) { $parameters = $route->parametersWithoutNulls(); return $instance->callAction($method, $parameters); }

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php

     $response = $this->before($instance, $route, $request, $method); // If no before filters returned a response we'll call the method on the controller // to get the response to be returned to the router. We will then return it back // out for processing by this router and the after filters can be called then. if (is_null($response)) { $response = $this->call($instance, $route, $method); }

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php

     $request = $me->getCurrentRequest(); // Now we can split the controller and method out of the action string so that we // can call them appropriately on the class. This controller and method are in // in the Class@method format and we need to explode them out then use them. list($class, $method) = explode('@', $controller); return $d->dispatch($route, $request, $class, $method); }; }

<#unknown>
open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Routing/Route.php

     * * @return mixed */ public function run() { $parameters = array_filter($this->parameters(), function($p) { return isset($p); }); return call_user_func_array($this->action['uses'], $parameters); }

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php

     // Once we have successfully matched the incoming request to a given route we // can call the before filters on that route. This works similar to global // filters in that if a response is returned we will not call the route. $response = $this->callRouteBefore($route, $request); if (is_null($response)) { $response = $route->run($request); }

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Routing/Router.php

     // If no response was returned from the before filter, we will call the proper // route instance to get the response. If no route is found a response will // still get returned based on why no routes were found for this request. $response = $this->callFilter('before', $request); if (is_null($response)) { $response = $this->dispatchToRoute($request); }

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php

     } if ($this->runningUnitTests() && ! $this['session']->isStarted()) { $this['session']->start(); } return $this['router']->dispatch($this->prepareRequest($request)); }

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php

     { try { $this->refreshRequest($request = Request::createFromBase($request)); $this->boot(); return $this->dispatch($request); } catch (\Exception $e)

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php

     * @param \Symfony\Component\HttpFoundation\Request $request * @param int $type * @param bool $catch * @return \Symfony\Component\HttpFoundation\Response */ public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { $response = $this->app->handle($request, $type, $catch); $response->headers->set('X-Frame-Options', 'SAMEORIGIN', false);

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Session/Middleware.php

     if ($this->sessionConfigured()) { $session = $this->startSession($request); $request->setSession($session); } $response = $this->app->handle($request, $type, $catch); // Again, if the session has been configured we will need to close out the session

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php

     * @param \Symfony\Component\HttpFoundation\Request $request * @param int $type * @param bool $catch * @return \Symfony\Component\HttpFoundation\Response */ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { $response = $this->app->handle($request, $type, $catch); foreach ($this->cookies->getQueuedCookies() as $cookie)

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php

     * @param \Symfony\Component\HttpFoundation\Request $request * @param int $type * @param bool $catch * @return \Symfony\Component\HttpFoundation\Response */ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch)); }

open: /var/www/html/demo/vendor/stack/builder/src/Stack/StackedHttpKernel.php

     { $this->app = $app; $this->middlewares = $middlewares; } public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { return $this->app->handle($request, $type, $catch); }

open: /var/www/html/demo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php

     * @param \Symfony\Component\HttpFoundation\Request $request * @return void */ public function run(SymfonyRequest $request = null) { $request = $request ?: $this['request']; $response = with($stack = $this->getStackedClient())->handle($request); $response->send();

open: /var/www/html/demo/index.php

    | | Once we have the application, we can simply call the run method, | which will execute the request and send the response back to | the client's browser allowing them to enjoy the creative | and wonderful application we have whipped up for them. | */ $app->run();

Server/Request Data

Key | Value
REDIRECT_STATUS | 200
HTTP_HOST | 104.131.164.9
HTTP_USER_AGENT | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5
HTTP_ACCEPT_ENCODING | gzip, deflate
HTTP_REFERER | http://104.131.164.9/demo/account/design
HTTP_COOKIE | laravel_session=eyJpdiI6Ik1IUFFpV29YV0JkXC9YS1hHXC9JVnl4ZnBoTkp4ZzZFc0NvVGk2RW1QN3BFVT0iLCJ2YWx1ZSI6InByWlNQelwvT3lQZ3pOR21xTnRqRytYeG9sQXNnRVQyUnp5MStJMEw2WDBUTklrUlJxakVQSzM0RHRnTG9DTER0RzIxNEg3SFZxaEJGZ00xcVpCVERRQT09IiwibWFjIjoiM2UzOWM0ZmZjMzhjOTdkOTM0ZmI2OWY2NWQ5NmZhODgzNjk0OWE0N2QwMTJkZmI2M2ZmNWNmYTEyNGUwNTIxYSJ9; PHPSESSID=90grd6kk8rfnk184v2otn1ofn0
HTTP_CONNECTION | keep-alive
CONTENT_TYPE | multipart/form-data; boundary=---------------------------93991283721657
CONTENT_LENGTH | 760274
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE | <address>Apache/2.4.10 (Ubuntu) Server at 104.131.164.9 Port 80</address>
SERVER_SOFTWARE | Apache/2.4.10 (Ubuntu)
SERVER_NAME | 104.131.164.9
SERVER_ADDR | 104.131.164.9
SERVER_PORT | 80
REMOTE_ADDR | 196.46.245.148
DOCUMENT_ROOT | /var/www/html
REQUEST_SCHEME | http
CONTEXT_PREFIX |
CONTEXT_DOCUMENT_ROOT | /var/www/html
SERVER_ADMIN | webmaster@localhost
SCRIPT_FILENAME | /var/www/html/demo/index.php
REMOTE_PORT | 35771
REDIRECT_URL | /demo/account/design/bg
GATEWAY_INTERFACE | CGI/1.1
SERVER_PROTOCOL | HTTP/1.1
REQUEST_METHOD | POST
QUERY_STRING |
REQUEST_URI | /demo/account/design/bg
SCRIPT_NAME | /demo/index.php
PHP_SELF | /demo/index.php
REQUEST_TIME_FLOAT | 1415298198.325
REQUEST_TIME | 1415298198

GET Data empty
POST Data

Key | Value
val | Array ( [theme] => [type] => profile [bg_image] => [bg_color] => [bg_position] => [bg_attachment] => scroll [bg_repeat] => no-repeat [link_color] => [content_bg_color] => )
current |

Files

Key | Value
image | Array ( [name] => backgroundImage.adapt.1663.high.jpg [type] => image/jpeg [tmp_name] => /tmp/phpHjKoa5 [error] => 0 [size] => 759000 )

Cookies

Key | Value
laravel_session | eyJpdiI6Ik1IUFFpV29YV0JkXC9YS1hHXC9JVnl4ZnBoTkp4ZzZFc0NvVGk2RW1QN3BFVT0iLCJ2YWx1ZSI6InByWlNQelwvT3lQZ3pOR21xTnRqRytYeG9sQXNnRVQyUnp5MStJMEw2WDBUTklrUlJxakVQSzM0RHRnTG9DTER0RzIxNEg3SFZxaEJGZ00xcVpCVERRQT09IiwibWFjIjoiM2UzOWM0ZmZjMzhjOTdkOTM0ZmI2OWY2NWQ5NmZhODgzNjk0OWE0N2QwMTJkZmI2M2ZmNWNmYTEyNGUwNTIxYSJ9
PHPSESSID | 90grd6kk8rfnk184v2otn1ofn0

Session empty
Environment Variables empty
Registered Handlers
0. Whoops\Handler\PrettyPageHandler