Page 1 of 1

Image Manager's Search Box not Working

Posted: Mon Apr 30, 2018 8:03 pm
by devtester478
I am using opencart 2.3.0.2 version and found that the image manager's search box is not working. I tried to replacing code of admin/controller/common/filemanager.php with these below links:
https://raw.githubusercontent.com/openc ... anager.php
https://raw.githubusercontent.com/openc ... anager.php

None of code worked for me. I don't want to use any extension for searching images.

Can anyone help me to fix this bug.

Thanks
Dev

Re: Image Manager's Search Box not Working

Posted: Mon Apr 30, 2018 10:50 pm
by xxvirusxx

Re: Image Manager's Search Box not Working

Posted: Tue May 01, 2018 12:05 pm
by devtester478
:( I tried but it's not working for me.

Any other way to fix this issue?

Re: Image Manager's Search Box not Working

Posted: Tue May 01, 2018 2:37 pm
by xxvirusxx
So you have tested before to modify filemanager.php?
For me is the only one who work

Re: Image Manager's Search Box not Working

Posted: Wed May 02, 2018 1:00 pm
by devtester478
Yes, I tried with the fresh filemanager.php file. But search is not working.

Re: Image Manager's Search Box not Working

Posted: Wed May 02, 2018 3:02 pm
by xxvirusxx
You have refreshed ocmod?

You can try another file manager fix..
https://www.opencart.com/index.php?rout ... n_id=29739

Re: Image Manager's Search Box not Working

Posted: Fri May 11, 2018 3:14 pm
by devtester478
I can not refresh after installing the extension as there are some files of the theme inside system > storage > modification in which i did some customization. When i refresh from admin panel catalog > extensions > modifications then my customization for system > storage > modification files overwrites.

I tried by installing the extension you provided me link. But that is also not working for me.

Re: Image Manager's Search Box not Working

Posted: Fri May 11, 2018 4:14 pm
by xxvirusxx
Why do you make modification in storage and not directly in theme files?

Weird first fix/extension tested on 3 websites and work.
You are sure if changed correctly the line?

This

Code: Select all

if (substr(str_replace('\\', '/', realpath($directory . '/' . $filter_name)), 0, strlen(DIR_IMAGE . 'catalog')) == DIR_IMAGE . 'catalog') {
in this

Code: Select all

if (substr(str_replace('\\', '/', ($directory . '/' . $filter_name)) . '/', 0, strlen(DIR_IMAGE . '')) == DIR_IMAGE . '') {
Also you can try to install another oc2.3.0.2 in another folder and test using clear ocmod cache.

Re: Image Manager's Search Box not Working

Posted: Fri Aug 24, 2018 5:24 am
by JEfromCanada
I have had the same issue, with the image manager in OC 3.0.2 not working. After finding free extensions by OpenCart author "sonfil" that also didn't work, I analyzed them and corrected the issue with a vqmod and new helper file, which I have sent today to "sonfil". I have not tested it with any version of OC except 3.0.2, but it does work. Since I've never contributed to github, I'm not sure what's required to submit this fix to the code base.

If you send me an email, I can arrange to send you the vqmods and helper file. My address is info [at] jem-software.com

Re: Image Manager's Search Box not Working

Posted: Mon Feb 04, 2019 12:25 pm
by AM786
I believe this is the fix: File manager: Quick Search