{"action":"created","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/149","labels_url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/149/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/149/events","html_url":"https://github.com/barryvdh/laravel-dompdf/issues/149","id":101657280,"number":149,"title":"Argument 1 passed to DOMNode::appendChild() must be an instance of DOMNode, null given","user":{"login":"belapie","id":8459569,"avatar_url":"https://avatars.githubusercontent.com/u/8459569?v=3","gravatar_id":"","url":"https://api.github.com/users/belapie","html_url":"https://github.com/belapie","followers_url":"https://api.github.com/users/belapie/followers","following_url":"https://api.github.com/users/belapie/following{/other_user}","gists_url":"https://api.github.com/users/belapie/gists{/gist_id}","starred_url":"https://api.github.com/users/belapie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belapie/subscriptions","organizations_url":"https://api.github.com/users/belapie/orgs","repos_url":"https://api.github.com/users/belapie/repos","events_url":"https://api.github.com/users/belapie/events{/privacy}","received_events_url":"https://api.github.com/users/belapie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-18T13:40:30Z","updated_at":"2015-10-07T12:39:50Z","closed_at":null,"body":"Hi,\r\n\r\nWhen i tried to create a PDF from a simple HTML view, like the 'welcome.blade.php' i have this exception.\r\n\r\n**Exception** :\r\n    ErrorException in frame.cls.php line 765: \r\n    Argument 1 passed to DOMNode::appendChild() must be an instance of DOMNode, null given, called in C:\\Projets\\Test7\\laravel\\vendor\\dompdf\\dompdf\\include\\table_frame_decorator.cls.php on line 312 and defined\r\n\r\n**Steps to reproduce** :\r\n1. Create a new laravel project `composer create-project laravel/laravel`\r\n2. Install dompdf `composer require barryvdh/laravel-dompdf`\r\n3. Add `Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class` to *providers* in app.php\r\n4. Add `'PDF'       => Barryvdh\\DomPDF\\Facade::class` to *aliases* in app.php\r\n5. `php artisan vendor:publish`\r\n6. Change routes.php to `Route::get('/', function () { $pdf = PDF::loadView('welcome'); return $pdf->stream(); });`\r\n6b. It's not working either using `download('test.pdf')`.. (`Route::get('/', function () { $pdf = PDF::loadView('welcome'); return $pdf->download('test.pdf'); });`)\r\n7. Go to http://localhost/laravel/ ... wait a bit (5-10 secs) and then the exception occurs.\r\n\r\nTo see if i had a error in my configuration i changed my routes.php to `Route::get('/', function () { $pdf = PDF::loadHTML('<b>Test</b>'); return $pdf->stream(); });`. With this i can see my \"Test\" in a PDF, so no exception.\r\n\r\nI did not modify config/dompdf.php."},"comment":{"url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/comments/146184395","html_url":"https://github.com/barryvdh/laravel-dompdf/issues/149#issuecomment-146184395","issue_url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/149","id":146184395,"user":{"login":"allanjhonne","id":7979908,"avatar_url":"https://avatars.githubusercontent.com/u/7979908?v=3","gravatar_id":"","url":"https://api.github.com/users/allanjhonne","html_url":"https://github.com/allanjhonne","followers_url":"https://api.github.com/users/allanjhonne/followers","following_url":"https://api.github.com/users/allanjhonne/following{/other_user}","gists_url":"https://api.github.com/users/allanjhonne/gists{/gist_id}","starred_url":"https://api.github.com/users/allanjhonne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanjhonne/subscriptions","organizations_url":"https://api.github.com/users/allanjhonne/orgs","repos_url":"https://api.github.com/users/allanjhonne/repos","events_url":"https://api.github.com/users/allanjhonne/events{/privacy}","received_events_url":"https://api.github.com/users/allanjhonne/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T12:39:50Z","updated_at":"2015-10-07T12:39:50Z","body":"Friend, I am having this same problem. How you solved the problem?"}}