Welcome Guest, Not a member yet? Register   Sign In
Apache is crashing when using pagination
#1

[eluser]Unknown[/eluser]
Hey,

I'm using the pagination class and everything works great untill i change the per_page value to a value higher then 10 at that moment my apache crashes and its over and out. Smile

here's my code:
Code:
function display()
        {
            $grid_params = array(
                'set_query' => $this->product_model->get_products(),

                'set_multirow_selection' => array(
                    'enable' => true,
                    'primary_key' => 'id'
                ),

                'set_pagination' => array(
                    'enable' => true,
                    'initialize' => array(
                        'base_url' => site_url('product/display'),
                        'per_page' => 10,
                        'num_links' => 5
                    ),
                    'order_field' => 'id',
                    'order_type' => 'ASC',
                    'offset' => 0
                ),

                'set_column' => array(
                    'description' => array(
                        'title' => 'Omschrijving',
                        'sortable' => true,
                        'type' => array(
                            'link',
                            'href' => site_url('product/edit/{id}')
                        )
                    ),

                    'aantal_gekocht' => array(
                        'title' => 'Aantal Gekocht',
                        'sortable' => true,
                        'type' => array(
                            'text'
                        )
                    ),

                    'aantal_in_stock' => array(
                        'title' => 'In Stock',
                        'sortable' => true,
                        'type' => array(
                            'text'
                        )
                    ),

                    'product_type' => array(
                        'title' => 'Type',
                        'sortable' => false,
                        'type' => array(
                            'text'
                        )
                    ),                

                    'id' => array(
                        'title' => 'ID',
                        'sortable' => true,
                        'type' => array(
                            'text'
                        )
                    )
                ),

                'set_action' => array(
                    'enable' => true,
                    array(
                        'edit' => array(
                            'title' => 'Edit',
                            'type' => array(
                                'image',
                                'src' => base_url() . 'public/images/administrator/theme/edit.png'
                            ),
                            'href' => site_url('product/edit/{id}')
                        ),

                        'delete' => array(
                            'title' => 'Delete',
                            'type' => array(
                                'image',
                                'src' => base_url() . 'public/images/administrator/theme/delete.png'
                            ),
                            'href' => site_url('product/delete/{id}'),
                            'html_attribute' => array(
                                'onclick' => "[removed]if(confirm('Sure Want to Delete Permanently ?')) return true; else return false; "
                            )
                        )
                    )
                ),

                'set_filter' => array(
                    'enable' => true,
                    array(
                        'description' => array(
                            'title' => 'Omschrijving',
                            'type' => array(
                                'text'
                            )
                        ),
                        'id' => array(
                            'title' => 'ID',
                            'type' => array(
                                'number'
                            )
                        )
                    )
                ),

                'set_export' => array(
                    'enable' => false
                ),
                'set_print' => array(
                    'enable' => false
                ),
                'set_debug' => array(
                    'enable' => false
                )
            );

            $this->ca_gridview->render_grid($grid_params);
            $this->ocular->set_view_data('page_title', 'Product List');
            $this->ocular->render();
        }


I make use of Happy igniter

Thx in advance
#2

[eluser]InsiteFX[/eluser]
Check your php.ini memory settings!

InsiteFX
#3

[eluser]Unknown[/eluser]
Hey InsiteFx,

I tried to increase mem but it isnt working either. I'm using Xampp 1.7.4 and i tried php/mysql on IIS and now its working. Maybe to problem is xampp.
#4

[eluser]InsiteFX[/eluser]
Thats very strange, because the pagination works for me using XAMPP 1.7.4

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB