barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 169 forks source link

Call to a member function domain() on a non-object #50

Open tomedharris opened 9 years ago

tomedharris commented 9 years ago

I am getting the following error when trying to load /elfinder/ckeditor through the ckeditor connector

FatalErrorException in UrlGenerator.php line 440: Call to a member function domain() on a non-object

I have found that doing the following fixes it: Open the published view resources/views/vendor/elfinder/ckeditor4.php

and changing the following line (45)

url: '<?= URL::action('Barryvdh\Elfinder\ElfinderController@showConnector') ?>', // connector URL to url: '<?= URL::action('\Barryvdh\Elfinder\ElfinderController@showConnector') ?>', // connector URL

Currently using laravel/framework f0203bafb

curtailment commented 9 years ago

I was experiencing the same issue with the tinymce4 connector and the same fix solved it.