PHP error pagination May 07, 2020, 09:54:35 AM 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 107Call Stack# Time Memory Function Location1 0.0000 408928 {main}( ) ...\index.php:02 0.0005 424048 Router->init( ) ...\index.php:1003 0.0005 424168 Router->run( ) ...\Router.php:944 0.0006 431928 VoorraadController->index( ) ...\Router.php:2055 0.0111 494368 BaseView->render( ) ...\VoorraadController.php:516 0.0112 494848 include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\layouts\main_layout.php' ) ...\BaseView.php:2067 0.0116 496840 BaseView->render_body( ) ...\main_layout.php:608 0.0116 498536 include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\partials\voorraad\list.php' ) ...\BaseView.php:2429 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 107Call Stack# Time Memory Function Location1 0.0000 408928 {main}( ) ...\index.php:02 0.0005 424048 Router->init( ) ...\index.php:1003 0.0005 424168 Router->run( ) ...\Router.php:944 0.0006 431928 VoorraadController->index( ) ...\Router.php:2055 0.0111 494368 BaseView->render( ) ...\VoorraadController.php:516 0.0112 494848 include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\layouts\main_layout.php' ) ...\BaseView.php:2067 0.0116 496840 BaseView->render_body( ) ...\main_layout.php:608 0.0116 498536 include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\partials\voorraad\list.php' ) ...\BaseView.php:2429 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 95Call Stack# Time Memory Function Location1 0.0000 408928 {main}( ) ...\index.php:02 0.0005 424048 Router->init( ) ...\index.php:1003 0.0005 424168 Router->run( ) ...\Router.php:944 0.0006 431928 VoorraadController->index( ) ...\Router.php:2055 0.0111 494368 BaseView->render( ) ...\VoorraadController.php:516 0.0112 494848 include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\layouts\main_layout.php' ) ...\BaseView.php:2067 0.0116 496840 BaseView->render_body( ) ...\main_layout.php:608 0.0116 498536 include( 'D:\Dropbox\Dropbox\_Menno_16-\WAMP\www\macht\app\views\partials\voorraad\list.php' ) ...\BaseView.php:2429 0.0119 509224 Pagination->render( ) ...\list.php:34210 0.1011 509880 Pagination->set_link( ) ...\Pagination.php:136http://localhost/macht/voorraad" method="get">[html-lang-0088] : 2 [html-lang-0126] 2 Quote Selected
Re: PHP error pagination Reply #1 – May 07, 2020, 12:05:47 PM @strixs please restart the application and publish your project to a different folder. Quote Selected
Re: PHP error pagination Reply #2 – June 19, 2020, 08:44:58 AM Hi Just some feedback: I deleted the exciting folder and create a new with the same name. That solved the problem for me. Quote Selected