Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: PHP error pagination (Read 2714 times) previous topic - next topic

PHP error pagination

Hi i am getting some error's on my page when the site is published on my local host. Any ideas how I can solve this? Thanks!



( ! ) Notice: Undefined property: Pagination::$route in D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\libs\Pagination.php on line 107
Call Stack
#   Time   Memory   Function   Location
1   0.0000   408928   {main}( )   ...\index.php:0
2   0.0005   424048   Router->init( )   ...\index.php:100
3   0.0005   424168   Router->run( )   ...\Router.php:94
4   0.0006   431928   VoorraadController->index( )   ...\Router.php:205
5   0.0111   494368   BaseView->render( )   ...\VoorraadController.php:51
6   0.0112   494848   include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\layouts\main_layout.php' )   ...\BaseView.php:206
7   0.0116   496840   BaseView->render_body( )   ...\main_layout.php:60
8   0.0116   498536   include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\partials\voorraad\list.php' )   ...\BaseView.php:242
9   0.0119   509224   Pagination->render( )   ...\list.php:342

( ! ) Notice: Trying to get property 'request' of non-object in D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\libs\Pagination.php on line 107
Call Stack
#   Time   Memory   Function   Location
1   0.0000   408928   {main}( )   ...\index.php:0
2   0.0005   424048   Router->init( )   ...\index.php:100
3   0.0005   424168   Router->run( )   ...\Router.php:94
4   0.0006   431928   VoorraadController->index( )   ...\Router.php:205
5   0.0111   494368   BaseView->render( )   ...\VoorraadController.php:51
6   0.0112   494848   include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\layouts\main_layout.php' )   ...\BaseView.php:206
7   0.0116   496840   BaseView->render_body( )   ...\main_layout.php:60
8   0.0116   498536   include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\partials\voorraad\list.php' )   ...\BaseView.php:242
9   0.0119   509224   Pagination->render( )   ...\list.php:342
( ! ) Notice: Undefined property: Pagination::$route in D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\libs\Pagination.php on line 95 Call Stack #TimeMemoryFunctionLocation 10.0000408928{main}( )...\index.php:0 20.0005424048Router->init( )...\index.php:100 30.0005424168Router->run( )...\Router.php:94 40.0006431928VoorraadController->index( )...\Router.php:205 50.0111494368BaseView->render( )...\VoorraadController.php:51 60.0112494848include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\layouts\main_layout.php' )...\BaseView.php:206 70.0116496840BaseView->render_body( )...\main_layout.php:60 80.0116498536include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\partials\voorraad\list.php' )...\BaseView.php:242 90.0119509224Pagination->render( )...\list.php:342 100.1011509880Pagination->set_link( )...\Pagination.php:136
( ! ) Notice: Trying to get property 'page_url' of non-object in D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\libs\Pagination.php on line 95
Call Stack
#   Time   Memory   Function   Location
1   0.0000   408928   {main}( )   ...\index.php:0
2   0.0005   424048   Router->init( )   ...\index.php:100
3   0.0005   424168   Router->run( )   ...\Router.php:94
4   0.0006   431928   VoorraadController->index( )   ...\Router.php:205
5   0.0111   494368   BaseView->render( )   ...\VoorraadController.php:51
6   0.0112   494848   include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\layouts\main_layout.php' )   ...\BaseView.php:206
7   0.0116   496840   BaseView->render_body( )   ...\main_layout.php:60
8   0.0116   498536   include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\partials\voorraad\list.php' )   ...\BaseView.php:242
9   0.0119   509224   Pagination->render( )   ...\list.php:342
10   0.1011   509880   Pagination->set_link( )   ...\Pagination.php:136
http://localhost/macht/voorraad" method="get">
[html-lang-0088] : 2 [html-lang-0126] 2


 

Re: PHP error pagination

Reply #2
Hi Just some feedback: I deleted the exciting folder and create a new with the same name. That solved the problem for me.