Blog Views

Enables blog posts visits tracking and displaying most visited list. User device details and bots detecting methods included

Back to Blog Views Support

praisetesting40381
praisetesting40381

I keep getting this erorr when I view blog post: ErrorException: Undefined property: Illuminate\Http\Response::$id in /var/www/html/test-sites/plugins/pollozen/mostvisited/components/RegisterVisit.php:23

0

/var/www/html/test-sites/plugins/pollozen/mostvisited/components/RegisterVisit.php(23): Illuminate\Foundation\Bootstrap\HandleExceptions→handleError(8, 'Undefined prope...', '/var/www/html/y...', 23, Array)

1

/var/www/html/test-sites/modules/cms/classes/CmsCompoundObject.php(172): PolloZen\MostVisited\Components\RegisterVisit→onRun()

2

/var/www/html/test-sites/modules/cms/classes/Controller.php(500): Cms\Classes\CmsCompoundObject→runComponents()

3

/var/www/html/test-sites/modules/cms/classes/Controller.php(393): Cms\Classes\Controller→execPageCycle()

4

/var/www/html/test-sites/modules/cms/classes/Controller.php(224): Cms\Classes\Controller→runPage(Object(Cms\Classes\Page))

5

/var/www/html/test-sites/modules/cms/classes/CmsController.php(50): Cms\Classes\Controller→run('news/text')

6

[internal function]: Cms\Classes\CmsController→run('news/text')

7

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)

8

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller→callAction('run', Array)

9

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\Routing\ControllerDispatcher→dispatch(Object(Illuminate\Routing\Route), Object(Cms\Classes\CmsController), 'run')

10

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\Routing\Route→runController()

11

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Route→run()

12

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

13

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

14

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Routing\Middleware\SubstituteBindings→handle(Object(Illuminate\Http\Request), Object(Closure))

15

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

16

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

17

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\View\Middleware\ShareErrorsFromSession→handle(Object(Illuminate\Http\Request), Object(Closure))

18

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

19

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

20

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Session\Middleware\StartSession→handle(Object(Illuminate\Http\Request), Object(Closure))

21

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

22

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

23

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse→handle(Object(Illuminate\Http\Request), Object(Closure))

24

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

25

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

26

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Cookie\Middleware\EncryptCookies→handle(Object(Illuminate\Http\Request), Object(Closure))

27

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

28

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

29

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\Pipeline\Pipeline→then(Object(Closure))

30

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\Routing\Router→runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))

31

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\Routing\Router→runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))

32

/var/www/html/test-sites/vendor/october/rain/src/Router/CoreRouter.php(20): Illuminate\Routing\Router→dispatchToRoute(Object(Illuminate\Http\Request))

33

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): October\Rain\Router\CoreRouter→dispatch(Object(Illuminate\Http\Request))

34

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}(Object(Illuminate\Http\Request))

35

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

36

/var/www/html/test-sites/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(24): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode→handle(Object(Illuminate\Http\Request), Object(Closure))

37

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode→handle(Object(Illuminate\Http\Request), Object(Closure))

38

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

39

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

40

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline→then(Object(Closure))

41

/var/www/html/test-sites/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel→sendRequestThroughRouter(Object(Illuminate\Http\Request))

42

/var/www/html/test-sites/index.php(43): Illuminate\Foundation\Http\Kernel→handle(Object(Illuminate\Http\Request))

vdomah
vdomah

Hi! You reported a bug to wrong plugin. My plugin is vdomah.blogviews and it got the same functionality but you use pollozen/mostvisited. So either write to that author or switch to mine plugin

praisetesting40381
praisetesting40381
praisetesting40381

I noticed that the views per page seems way too much, e.g a new post already has 27 views once I reload the page the views shoot up to 31. I don't think anyone is visiting the site that much. I feel each view is being multiplied 4 times.

vdomah
vdomah

praisetesting40381 said:

I noticed that the views per page seems way too much, e.g a new post already has 27 views once I reload the page the views shoot up to 31. I don't think anyone is visiting the site that much. I feel each view is being multiplied 4 times.

You now talk about my plugin?

praisetesting40381
vdomah
vdomah

Here I've set up fresh installation of Blog and Blog View: http://echo.octoberduck.com/post/first-blog-post There is only one view now. Even if I refresh the page - the counter is not incrementing because there is cookie checker, that prevents endless incrementation by one person.

On your side there could be some other cause in set up.

The code of that page is:

title = "Blog post"
url = "/post/:slug"
layout = "default"
is_hidden = 0

[blogPost]
slug = "{{ :slug }}"
categoryPage = 404

[views]
slug = "{{ :slug }}"
==
<div class="jumbotron title-js">
    <div class="container">
        <div class="row">
            <div class="col-8">
                <h1>Blog</h1>
                views: {{post.views}}
                {% component 'views' %}
                {% component 'blogPost' %}
            </div>
        </div>
    </div>
</div>

Last updated

praisetesting40381
praisetesting40381

Thanks for the support. I will review my installations and other plugins to get to the root of the problem and give you feedback.

Thanks ?

1-8 of 8