⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Export does not work: "The requested URL was rejected. " (flexigrid, bootstrap)



anna

anna
  • profile picture
  • Member

Posted 08 May 2016 - 21:30 PM

Hi all,

I love GroceryCRUD! I have installed it, but I am facing the following problem:

 

The export function does not work in Bootstrap and Flexigrid themes. It opens a new tab that presents the message:

 

"The requested URL was rejected.
Ref: 14871480822686978822"

 

 

However, it works ok in the Datatables theme.

 

I have checked the Firefox developers tool, and I see no related error.

 

Note, that there is a Syntaxerror that appears in the web console for the Datatables and Flexigrid themes, but I don't think it affects the export function.

 

SyntaxError: expected expression, got '<'              jquery.noty.config.js:1:0
admin-CodeIgniter/assets/grocery_crud/js/jquery_plugins/config/jquery.noty.config.js

 

Below is the controller function:

 

--------------

    public function customers()
    {
        try{
            $crud = new grocery_CRUD();

            $crud->set_theme('flexigrid');
            $crud->set_table('V2_customers');
            $crud->set_subject('Customer');
   
            $output = $crud->render();

            $this->_example_output($output);

        }catch(Exception $e){
            show_error($e->getMessage().' --- '.$e->getTraceAsString());
        }
    }

-----------

 

I would really appreciate any help/comment on this issue. I would use the Datatable theme (since the export function works), but I have another problem with this theme (the validations do not work, but I will create another post for it).

 

thank you so much for your time reading my post!

 

Anna


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 12 May 2016 - 10:31 AM

Check the request output in network console - fix the issues ... else if there are only warnings and u dont wana fix it ... switch the mode from development to production.

 

Hope that solves your problem

 

Happy GCing :)