⚠ 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

Can't use options next, previous, first, last, export, search in version 1.3



midnigther
  • profile picture
  • Member

Posted 01 September 2012 - 02:43 AM

I did a fresh install from GroceryCrud v1.3 however this version don't work very well. The options next, previous, first, last, search, export don't respond. When I try to export the table data via CSV I see this message error.

[img]http://www.upl.co/uploads/Screen-Shot-20120901-at-330.png[/img]

[img]http://www.upl.co/uploads/Screen-Shot-20120901-at-330-25.png[/img]

casachit
  • profile picture
  • Member

Posted 01 September 2012 - 07:09 AM

can you show us your code??

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 01 September 2012 - 10:16 AM

Hello [member='midnigther'], I don't know why it is happening to you and I cannot reproduce the error but probably this will fix your problem:
[b]Step 1.[/b] Go to application/libraries/grocery_crud.php and replace the

@ob_end_clean()

with :

ob_end_clean()

(there will be one replacement)
[b]Step 2[/b]. Now replace again the:

ob_end_clean()

with :

@ob_end_clean()

(there will be 10 replacements)

and probably will work. You can also see the changes at: https://github.com/s...comment-1796678 so don't worry about future versions as this small bug will be fixed.

Cheers
Johnny

midnigther
  • profile picture
  • Member

Posted 01 September 2012 - 16:43 PM

[quote name='web-johnny' timestamp='1346494564' post='3173']
Hello [member='midnigther'], I don't know why it is happening to you and I cannot reproduce the error but probably this will fix your problem:
[b]Step 1.[/b] Go to application/libraries/grocery_crud.php and replace the

@ob_end_clean()

with :

ob_end_clean()

(there will be one replacement)
[b]Step 2[/b]. Now replace again the:

ob_end_clean()

with :

@ob_end_clean()

(there will be 10 replacements)

and probably will work. You can also see the changes at: https://github.com/s...comment-1796678 so don't worry about future versions as this small bug will be fixed.

Cheers
Johnny
[/quote]


Thanks web-johnny, this solved my problem.

However you may want add the corresponding translation helper.

//list_template.php
<span class="export"><?php $this->l('export'); ?></span>...
<span class="print"><?php $this->l('print'); ?></span>

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 01 September 2012 - 16:47 PM

Oups :wacko: , you are right. I will definitely have that at the 1.3.1 . Thanks to remind in me this. I just logged it https://github.com/s...-crud/issues/90

Thanks