⚠ 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 forum is read-only and soon will be archived. ⚠


Ador El

Member Since 25 Jun 2013
Offline Last Active Aug 09 2015 04:25 PM
-----

Posts I've Made

In Topic: Grocery_Crud_Multiuploader library

23 July 2015 - 06:56 AM

Hi  Akshay, I've got the same issue @neoblack has:

 

The issue presents when inside the $crud you set either callback_before_insert or callback_before_update like

$crud
         ->callback_before_insert(array($this,'my_callback')    )   
         ->callback_before_update(array($this,'other_callback')    )  ;

When added to crud, the uploads are correct, however, when saving data and returning to list view, the value for filelds set as upload type will have a null value, in other words, files url are not being saved as field values

 

You would get "No files" as value in view list

 

If I comment these callbacks everything works fine.

 

How to solve the callback issue?


In Topic: Grocery_Crud_MultiSearch library for Flexigrid

03 July 2015 - 05:12 PM

Thanks for sharing this interesting feature, I have seen people wanting this for some time.


In Topic: Grocery_Crud_Multiuploader library

02 June 2015 - 05:44 AM

I will try it out, However I have a system in godday and they are special and can not upgrade it if I do not pay.....

 

 

I changed some lines of Grocery_CRUD_Multiuploader.php  to make it work with PHP 5.3 as you can see, and I got those issues. I believe it has to do with javascript rather than PHP as everything is ok, but after insert data as I get NULL ...

 

Could you please suggest other solution rather than updating PHP version, Those godaddy guys are special...


In Topic: Grocery_Crud_Multiuploader library

27 May 2015 - 06:27 PM

Using PHP 5.3 causes this error when using the library

 

Parse error: syntax error, unexpected '[' in D:\Hosting\2543486\html\ci\application\libraries\Grocery_CRUD_Multiuploader.php on line 118

 

 

I have changed lines like:

if( $has_callbacks && isset($this->callback_column[$field_name]) )
                    $list[$num_row]->$field_name = call_user_func($this->callback_column[$field_name], $field_value, $row,$this->get_field_types()[$column->field_name]);
               

by

if( $has_callbacks && isset($this->callback_column[$field_name]) )
{
     $aux = $this->get_field_types();
     $param = $aux[$column->field_name];
     $list[$num_row]->$field_name =     call_user_func($this->callback_column[$field_name], $field_value, $row,  $param);
} 

and

$files_exists = unserialize($this->ci->db->get_where(
                        $this->file_table,array(
                        $this->primary_key => $primary_key
         ))->result_array()[0][$this->upload_field]);

by

$f1 = $this->ci->db->get_where(    $this->file_table,array( $this->primary_key => $primary_key ))->result_array();
$f2 = $f1[0];
$files_exists = unserialize($f2[$this->upload_field]);

I realized it was array dereference  issue, so thats why I have changed several lines of attached library file.

 

However When clicking upload button and file is uploaded firebug says

null

D:/Hosting/ci/index.php?/multiuploader/index/add(line 110)
TypeError: data.result is null

if(data.result.success == 'false') {

what is the reason I get null when uploading?

 

 

Post parameters are

new_multi_upload/uploade

Headers

Accept application/json, text/javascript, */*; q=0.01 Accept-Encoding gzip, deflate Accept-Language es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3 Content-Length 300832 Content-Type multipart/form-data; boundary=---------------------------22444249596590 Cookie __utma=19637472.628213608.1344575154.1428156381.1430166708.42; __utmz=19637472.1410633020.21.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); crud_page_9c3b069b19e71f5f75b588a6ccab36fe=1; per_page_9c3b069b19e71f5f75b588a6ccab36fe=10; hidden_ordering_9c3b069b19e71f5f75b588a6ccab36fe=; hidden_sorting_9c3b069b19e71f5f75b588a6ccab36fe=; search_text_9c3b069b19e71f5f75b588a6ccab36fe=; search_field_9c3b069b19e71f5f75b588a6ccab36fe=; ci_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22c83aeac3304adafff9ee31fa18a0bb3b%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22187.232.159.164%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A65%3A%22Mozilla%2F5.0+%28Windows+NT+6.1%3B+rv%3A38.0%29+Gecko%2F20100101+Firefox%2F38.0%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A14327718

44%3B%7D0bc3c9f5614df84019216391cbd0bbce77f534d0 Host inametco.com Referer D:/Hosting/ci/index.php?/multiuploader/index/add User-Agent Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0 X-Requested-With XMLHttpRequest

Post

-----------------------------22444249596590 Content-Disposition: form-data; name="ci_csrf_token" -----------------------------22444249596590 Content-Disposition: form-data; name="field" my_pictures -----------------------------22444249596590 Content-Disposition: form-data; name="my_pictures_new_multi_upload"; filename="mi.jpg" Content-Type: image/jpeg ÿØÿàJFIF``ÿáÀExifMM*1.V2„‡i˜êJêMicrosoft Windows Photo Viewer 6.1.7600.163852015:05:26 18:57:47êªêÿá1¸http://ns.adobe.com/xap/1.0/<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?> <x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/19...-rdf-syntax-ns#"><rdf:Description rdf:about="uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b" xmlns:xmp="http://ns.adobe.com/xap/1.0/"><xmp:CreatorTool>Microsoft Windows Photo Viewer 6.1.7600.16385</xmp:CreatorTool></rdf:Description></rd ... Los datos de la solicitud superan el tamaño límite de Firebug. ... 5Ùh·ì¼ÖUƒðE¶FûÄw®Ü6u´FnV9ý7ÃÚ–¨vZñґ…ÚÏjî´¿èºj)‰f>cöú ÛŽaEŽ$ Š0túú }*kÞWd96pž#ðÜŽ÷º @ùÐg=Êœu®BÙbim®Ë¨ßa:ýkÚ«™ñíµXå¹³ þ2p$#¦êù.!àêX¨J® )TnítäÿÓÀæ.”’ªïƒ†ñ/ –%ù%Só!ôëoÚÛÌÖ÷¿(l$*zqÖ³þè)h¦üNѹ¸fCÏ=ë'ÄšEþ²–ëiò]ŹT íõ<WåÔðMWöU4iÙúŸI9BPºÕnvØ?Ò-p' ‘éÅnÙë×òÀ‹tÞc†Ú8â¸í'VÕ´Øáµ¾…Râ<#n˜æº]>k{Ù$I]”¹¥ËˆÃÞŒ&וôgtªGšJèf«ÒÛlËÎOa]žË¼ìÆ=EsºÌP¬þ\ mÚ7mõ­ß9xÕ2U”øUdñœ³Zt›ÕÊÝ=:é±ÍŠŠXe(‘‹ËyÄ’Û|©Š6;•8#?ZÐC–VP9ÎMfÛ'•w«£D-ë° }ðÀÕø&YcWQ€Üק…Š£Œ©J/DÚûŸ–‡ Ex¦WÔšöâ­m”'F=d¨«“3ª‚u¥Xä''Šw@¨{ñ“’Ôåhd``H€Ã­X\sÖ—ì¬T¿)éHИÏLõ®·B­(óJ.ÂVØ­<ÞJíØHa±î,å¸ÁòËHõÐ2+¯T…–¤š„—åM‹@Š°å’Þ±äwºØm»áx¦hÓç@FP=«‚¿²’n'*ëÙµ‹%’Vh¸À«†Ö|;çâM§åSÀ8Îzq_E•çͪ5žûÀ=\;’Ôç·sÏ䉌ÑËò½ßéPMÛ„¤pÀœw­[‹d¶b¦5^F=êÌ,#v‡ûÙ ké=ÝÕÑ™,¬Å˜¶ÿv yYÔ…‰Uð>¹«#Ey0ÇH¨ÔDc¨ùÐä†Í&Ìå˜I€Ei>ef$¬F¬¦iJ žNsެʖÎT‡çiè­U¥µÂ´±í=½é¦™›€Ìœá›8€Tf eÝòïÜ9ô¥3‡;çnŽ1šp1|±|ü)ÛÓ#=‰¢H,T˜ËDd%‰íøTèÒti6Ñ»hõ¤±‰SäzY"mÌøÊl,GB~ŸJÌ™¼—h›c€Ù>£Ò™öyº³db8ã•*æGÐÓ¼¦ˆ€ M29nWh‡”€¦TsèjÕ‡îó’A©eŽVʸÎG£xâTÂpÙ#®QZ§q´1Ïî|ª™=}E 2¿ÌªåõÅ8Û)`VU8ÇSíQÊê$|ƒ€G¨õ¡£&„m¥Èp8ÉíNŒDpG.£9õ¤hQ²Y° ç 8"„6{ …Á+ŒŽ)‰!ý$]í»Ó¡4ׇ-$ÊÃvá‚=1J<¹\3åA’1Ò’å˜@#…2ÛväzQrÒ `²DÄðwƒÐŠ­(-¼;ghê½…\òX”^ qÏ¥"£( ;‰É=¾´\Ñ$fÆ#,¡‰es‘RÆÀmÇ=;TÍGª¼¥Xt-ß4õr…^ùÆ*$‰<µ`;FY—ž´ª$pÍ!HÇCK7–0X|Ä*~CP6°Æ=1ïN2"Õ0à¦A®4ÈÂ…fB0ÇîžÕoå(̤I!{Ô/£|ê2‚vöúÖªEŸ*£SoUÅ8m•ÃÌÅʨ /TyÁÚFrj`–Ed)‘A¦iîiE¹hÜ«QÕ€=Á¥GÆ `òR‘Ô<„ºåäŒuo®)@"ü£`¨ô?J‰FÆ—°÷T…ã;Ž[Þ –|¸ pX`秵9ÐßiÚVSœõ8¦±€PŠrj,>k‰ X8 >Üþ¢”¦Ž›OZžvaàÜžÞµh˜d½ˆ˜qZ›Ìó¶çtÊóÉõí].âù¬ ÛÝ–Ú#\°í“øô¬rS$cpÉ'’G§µVº/"ÄûFOB:‘Xbp´qå©þ.Æ3¦¥¹ì^$Šê D›ñƒZéuɆ|±ž¸¯±ÕnlÈQÐôýk¼±ñ?Úºªã$ñ“Jüû8áÚ´$êRÖ—©çU£(¿#¼…üÑœŒ·ù$Ƀ³ÛéXÖúµœ‰ÏÎÖ,ÉÐb®­ä;]\‘êAµò΋D¨“îd‰³†!ÒãÁY7øâ«Ivã.`‘“R-P/9^@ê3K‘¡Øs@Fó»’ÇúûÔq£Ì„ŒçWÓêiÊä.³óôÇ¥F›Kn‹.ÐHÏz,ÄØù,Pc Ðñ5UèÌÄîæ¦òb”leùÎHç“BBé…$Æ:z÷úÖÑ2bʳs·w tàIm ö¥òÊ:™•%†Õ>ÝiŽBò…ÁSÜ ™+‚ˆìÚ0Tcªö¤3.å2™¦»Æ63¸eOÖšß»F•ñóq·©B,ILLT³2†=‡éHà¨-ÔTHÏ$ BŸ˜gSZS‰¨B0ïWÊE‡´Š{ð “óþuÛ— çiÉ8ïÏ$T“Ü# © ATżÞhV‚rOAþ}+H‰ ’@øîURIÝß5.#Ý»ƒŒŽ„RÌ® bÄ¿è:c¥0¡XžgRç'{]BÑn@.FYŸo|àT.öáع€zâ¬0y.Öê3Ò¡òc%”‘ò˜­’±¬·´HwexPzóP·ïïÚru?Jµ$ Fñ1PAÎ=øçëM`ìS´ ;˜sô­Ó2hƒ`$;3ÅF¬UÃ#œç=Ó¤ÂÇ“+dd`wªÏ,@ …ŽW®[äÖôÕɵŠ³Ü,… õü)±S€ùqïRÜ(w±DelϽUmˆâË×+¶!‘²3æÎW×Þ™+9TRB¹Œ·Ë‘·ž”é[Ç·†9;œð Vi–p×H£äb6ö#Ú·Œ5¥wºTÝ&w¶0WƒUåfL²©IÈaê;T“\C‚@!‡ÞóŠ›Lµšò÷2Œª(PðGµz¸J-»"d[ÐôT»•žâ2c~ONk¼·x`1ÁÁŒ¨Â¨X[¬XB`€:~]ªìoȬŒô¯¦¥‡QD¥ÓÆÌèÙ“§#•®ÛÞ0Ôì$HwpÕÁ[@î¹þ¬dtù‰õ­;o?ÍFûÙäcªkÓj>îçM&›´¶=3[qz¶÷±€RBYyôë\äÖûÃçaÜ{úUË CÍ´r7˜¬üÇÜÕ#l ¹!›'9ñŠóàœtg§OH¤HVG4*§ÔsŒ÷ü*""©y…~W$u9íô«¶Î`ÀrÜö¨V Èä¯åZÒ3$rH\Jà…èsé\‹|7圓2®å·±¯@—§ñ_QYºtRE*å¹EfÈëô®¬;¶ç zw>v¿ÓÂE@|ª{ƒ\V»§2ð6TŸsëô¯^ñfƒ½ÈFÄ” r>µç÷Vžc²»G>Ì=«ÑZ£Å­Vu1@±B3†tEÃð¬yá*÷l®@vSÚŠ+竤–‡Zlîü9¤ÚÃ(ù¦l“]ÄLÊÈ„Ý´¯¯¾h¢¼Ú¬Ò2cžvŽX ¹öÒDziJ3†Àü(¢¹^å©2·ö|2JŒä‘'Ž)g‘¢ºD(`c¦h¢­6R›,„`Å]·¨|ÒKkˆ^ãyÎsŽÔQPÙ2“+ÎÂ6Î72Á8ïI²<EXü¬#ùQEDÙ<Ìwi›Ô`N}ª|¼nˆ9@ÅVNLNLšX²©&yV}/š´|à³{š(¥v L¥"[‡<íö¡epQóþ·‚=QvW3êëìÑ, £ho­_Òu)ï-ZwÀx»ŽäQEiOS7&Yq,¨&2„vÀ·½rZ®¯%®Ù‚n2n\pVˆÍÉœ¥Î¯<ë+W‹…$k윒Lq°PyéEÕOá%¶UÑ£º–ñÎcûG €3øW©hše¦“¦Ÿ².Р#z¾îIcõ¢ŠÑ¡\Ó29Õ¹Û*t7›Ž6ãÁÏN(¢¹äÝÊ‹.¬‰n«6ÒÍœrúÕ|[†E•X®¾¹íE›lÑ6M{‘‹…Êji”—ÝdžôQ\³nãæe·o,DOÍæ8öÍK!Ü›ˆêÅVKpRfMÔRÅú²1ŠfŽDã*ÙÈ¢ŠÙIØ–ÝÍ4‘¥]¹* pþuBðF²"F»WcïƒE)²Ô™PÁm 8öªÊ É&X·Í€ àíEîÁÉšI++8@F¹ÀïVln¥»phìQv+³rÒ"Î#==+f)¼ÔhàûÑE&ÙJL¡<(àƒUå&\ÇQY©0æeYaŽ)² ”õ¨& Š\X.rh¢´M“Ìƺ#¤YP ç#­$ ríÚr3E®î&Ø“ ’ÂÁíQÅ‚®ê6áú (ª»&ì{m;F7!'ëP|ÙÄ;B¨¾”QN/P»"’i^58ëƒéQùï%Æ=}袺‘ ³€Ô|y¯[ë=œ¦µ•%R9ÉSžã¥}5àŸÜøŸÃ:fµsÅ5Ôdº)ÈÊœd}h¢½ì«©:*(¢½’BŠ( wYð†“qa0£tv˜ºžX“’±¯+½»¹@°«‘LÛþÒŠ+òþ5£NÊrŠ³”uó³=ü¢rqq{!–í1–9e‘¤nœûÖŠßÏ¢Àóç.OµWÂ׊å=”a¹’MÄœŠ¹§j6‰ˆüű“ïEà*“§5(;4*‘R‹OcR-F{‹¢dÆWrœw«°,~HoŽ?Eîåõg:üÒwn÷ü”U‘r1…Qž”ã-»¾(¢¾Î1\§ îh;HˆþòŠ‚ó—O÷MWØfËU=½ÃnŠç;sž”â¡SЊ(¯—¦’#[™2ÛÆó²r67\òi·šm­Õ³3.Nr(¢±KVMÝÏ<×tÛ1rÁfl{渫Ÿ1¥ƒ•Tlíô4Q_e‘IʃO£ÐúLªNTìÊí…1‚vºƒLÕI­•%,NJ¡(¢½–‘é[S>[P’à9áš«2£:FZ(¦’3’³#‘6Ê}ZåùÀ¾HʃøÑE6‘$PLZ7@v/˜í¶P§$(8õ¢ŠžTL‘ qóàcj€>„T+tî»#¯QO• ) $ä„cæ œõ¦Í¬3»#‘EI"šD©ˆÉ´õÛøgšVS´~Z(§b$•ÈÌÞX€Üf¤Ug·2–åÉíÒŠ(Id>XC«Œî æ"ƒ€îÙýš(§d+4Q¾AÈbŃÐÚ«Én#2cûµ={âŠ*l‡`‰»×$nÛϵ# !f, /n(¢¦È¤‘f§f@ôÍ žSň!Xc®}h¢©$;"¼.|ée!;P%”ÈW#iPÃŽ™¢Š«!ØV@²2uÆj/-[s?$dÊŠ*Ò4‚Lhð¬0y\úÔÞcy‰»Éü袓EIY"•fRw`ç&œ’33Ç„©9š(©²";B„dmðqæo`1òžüQE.TZZ߆ÚTnÈœŠ$ÈL‹’‡Š(¡¤W*+,ƒÎ› +`N)éw- œ†•P©ëEœéB¢äšºg5D™Ûi÷r>ÕhläjÛ´–Gܬxn0;bŠ+òœÎ§‰8­v8{2[ƒÁÝÆ >ÚîbYÁÁQEyŒV$óJL‘0ã&”K$l°¡ëŠ(¨%¤=.¥2!$çùTìÏŒç;UÏ=ÍPeö¬F·,|ðÊ RHJyJpÃåažÔQL»ŒÓI ‹vÕÜÝGý¡)–höŒGß¹ÅS3¨ì´VSíçænr:Š–U)åÉœ™ÒŠ(9\äRpQ—$°`8>ôÓ4ï t}˜§z(«Bö’I‘¶¾ Ø0j9îPÌp.Þ¦qE¬dÁÍ‘JYÒ'æÔ1Bž\²¦h¢µæd91>ΈcpNí¹'=MgÜ\ÉÈ8>csE­&Ü’brc¤´;#”HAÚ¼V|Á¢vˆà“œzóEéSŠ!É”Ò2;¶1Ûš­ç3$’‚´{àQEuD‹²'2I‡rCò«,HŠ»h¢ºiî;²ˆc4Ê¿tU#ñ®ºÒ(`€¬H\Þ´Q_A—EsÍ»›ñ?™g£œŠ· »•p2›‰Ç'4Q^ýÉ»,Áxå\˜ãÛ«o+¬BY íOµTÈÖhê´›—’5$PG®}ë^îü¨äa“¸·>¢Š+ŠQW=jÇR¬må!0\¡È=3RÜüÛY¸4QMA2«]•SËqÆ}1QÝ[ªJ3}×rs×ÒŠ+HE#Š´šv8oé©qdÒ»œçǵxÍìÀ·ï¿N{QEvCDy5õgÿÙ -----------------------------22444249596590--


In Topic: Multiple search conditions on flexigrid

08 December 2014 - 10:11 PM

@doxrealm could you please post sample code. I tried modifying  assets/grocery_crud/themes/flexigrid/views/list_template.php

but then I messed up all files, and had to rollback the code because nothing was working