LeafletPro

Embed a Leaflet map (OpenStreetMap) with ease

Back to LeafletPro Support

info51092
info51092

I had to remove the plugin to restore functionality to my site, but I have had a couple issues arise.

The first is that the plugin would not show. I was able to cobble a functioning map by adding a height attribute to the following in map.htm: <div id="{{ divId }}" class="leaflet-map" style="min-height:480px;"></div>

This worked for a couple days, then this error popped up:

ErrorException: Missing argument 1 for GuzzleHttp\Exception\ConnectException::__construct(), called in /home/churchshow/public_html/plugins/initbiz/leafletpro/components/LeafletMap.php on line 124 and defined in /home/churchshow/public_html/plugins/initbiz/leafletpro/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13

I liked how the map worked while it was working, but we can't afford to have it crash our site. There is by far insufficient documentation to get the map working, and with the issues we faced, I am considering a one or two star rating, but I wanted, first, to give you the chance to correct these issues. If you can, we would be glad to use the map and to offer our best review.

Thank you. :)

Last updated

inIT
inIT

Hello,

Thanks for using the plugin and I am very sorry to see you had problems with it.

We want to provide the best support and quality of our products so if you have found any problems please let us know and I'm sure we will make it work again and what is the most important, make it a better plugin. When it comes to documentation, let us know if you found any problems as well, please.

If you can, correct the question please as the first part of the code is not visible. When it comes to the second part, can you provide more information about the exception? Like stack trace or place in our code when the exception arises?

It looks more like a problem with the partially successful update of the October then a bug in Leaflet Pro, but bugs happen and we will definitely fix them.

Best regards,

Tomasz Strojny

info51092
info51092

Sure! :)

Here is the stack trace...

EVENT ID: #125
LEVEL: Error
DATE & TIME: Tue, Nov 5, 2019 3:56 PM

>ErrorException: Missing argument 1 for GuzzleHttp\Exception\ConnectException::__construct(), called in /home/churchshow/public_html/plugins/initbiz/leafletpro/components/LeafletMap.php on line 124 and defined in >/home/churchshow/public_html/plugins/initbiz/leafletpro/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
`#0
/home/churchshow/public_html/plugins/initbiz/leafletpro/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php(13):
Illuminate\Foundation\Bootstrap\HandleExceptions→handleError(2, 'Missing argumen...', '/home/churchsho...', 13, Array)
#1
/home/churchshow/public_html/plugins/initbiz/leafletpro/components/LeafletMap.php(124):
GuzzleHttp\Exception\ConnectException→__construct()
#2
/home/churchshow/public_html/plugins/initbiz/leafletpro/components/LeafletMap.php(89):
Initbiz\LeafletPro\Components\LeafletMap→getInitialParams()
#3
/home/churchshow/public_html/modules/cms/classes/CmsCompoundObject.php(172):
Initbiz\LeafletPro\Components\LeafletMap→onRun()
#4
/home/churchshow/public_html/modules/cms/classes/Controller.php(500):
Cms\Classes\CmsCompoundObject→runComponents()
#5
/home/churchshow/public_html/modules/cms/classes/Controller.php(393):
Cms\Classes\Controller→execPageCycle()
#6
/home/churchshow/public_html/modules/cms/classes/Controller.php(224):
Cms\Classes\Controller→runPage(Object(Cms\Classes\Page))
#7
/home/churchshow/public_html/modules/cms/classes/CmsController.php(50):
Cms\Classes\Controller→run('show')
#8
[internal function]:
Cms\Classes\CmsController→run('show')
#9
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54):
call_user_func_array(Array, Array)
#10
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45):
Illuminate\Routing\Controller→callAction('run', Array)
#11
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212):
Illuminate\Routing\ControllerDispatcher→dispatch(Object(Illuminate\Routing\Route), Object(Cms\Classes\CmsController), 'run')
#12
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169):
Illuminate\Routing\Route→runController()
#13
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658):
Illuminate\Routing\Route→run()
#14
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30):
Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#15
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41):
Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#16
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\Routing\Middleware\SubstituteBindings→handle(Object(Illuminate\Http\Request), Object(Closure))
#17
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#18
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49):
Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\View\Middleware\ShareErrorsFromSession→handle(Object(Illuminate\Http\Request), Object(Closure))
#20
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63):
Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#22
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\Session\Middleware\StartSession→handle(Object(Illuminate\Http\Request), Object(Closure))
#23
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37):
Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#25
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse→handle(Object(Illuminate\Http\Request), Object(Closure))
#26
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#27
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66):
Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#28
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\Cookie\Middleware\EncryptCookies→handle(Object(Illuminate\Http\Request), Object(Closure))
#29
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#30
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102):
Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#31
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660):
Illuminate\Pipeline\Pipeline→then(Object(Closure))
#32
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635):
Illuminate\Routing\Router→runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601):
Illuminate\Routing\Router→runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#34
/home/churchshow/public_html/vendor/october/rain/src/Router/CoreRouter.php(20):
Illuminate\Routing\Router→dispatchToRoute(Object(Illuminate\Http\Request))
#35
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176):
October\Rain\Router\CoreRouter→dispatch(Object(Illuminate\Http\Request))
#36
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30):
Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#37
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46):
Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#38
/home/churchshow/public_html/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(24):
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode→handle(Object(Illuminate\Http\Request), Object(Closure))
#39
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode→handle(Object(Illuminate\Http\Request), Object(Closure))
#40
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102):
Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#42
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151):
Illuminate\Pipeline\Pipeline→then(Object(Closure))
#43
/home/churchshow/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116):
Illuminate\Foundation\Http\Kernel→sendRequestThroughRouter(Object(Illuminate\Http\Request))
#44
/home/churchshow/public_html/index.php(43):
Illuminate\Foundation\Http\Kernel→handle(Object(Illuminate\Http\Request))
#45
{main}`

Last updated

info51092
info51092

The location I had used the map was: https://churchshowings.com/show/

inIT
inIT

Okay, the first issue is fixed now. I have added the min-height declaration to the partial. Remember though that the partial is meant to be overrided in the theme.

I have wrapped the throw instruction that was thrown in your case with checking if we're running in the debug mode. If it's a production environment it will only trace_log the exception and return. Just in case those situations occur again.

There was a bug in checking if you use the getOverriding feature or not. The condition was passing even when it shouldn't. I have fixed it in v.1.1.1. Check if it works as expected and give me a note here.

Best regards,

Tomasz Strojny

info51092
info51092

Thanks! I was able to work in another test, and the map seems to be working fine now. I now need to work it back into the production site.

I'll let you know if anything else comes up. :)

1-6 of 6