cancel
Showing results for 
Search instead for 
Did you mean: 

Admin panel grid not working, specifically search

Admin panel grid not working, specifically search

Hello!

I have two instances of Magento 1 store and javascript in admin grids don't work only on production. Testing website works good.

 

When try to search I get this js error:

Uncaught ReferenceError: productGridJsObject is not defined
at HTMLButtonElement.onclick ((index):554)

 

The strange thing is that I can't find mention of productGridJsObject anywhere in project files or database.

 

Any thoughts on what can be an issue?

6 REPLIES

Re: Admin panel grid not working, specifically search

Hi @sergiy1ilchuk,

 

Can you check on your broswer console if you are getting some 404 error or maybe some other kind of javascript error?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Admin panel grid not working, specifically search

I have checked this, and no js has 404 status, only 200. They are all loaded. Also what my production site uses and test site not is cloudflare CDN.

Can it be the cause of issues?

Re: Admin panel grid not working, specifically search

Hi @sergiy1ilchuk,

 

I can't answer with seeing the code.

Did you found some JS error on the browser console?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Admin panel grid not working, specifically search

I understand. But maybe you can suggest where js object productGridJsObject can be located?

 

Because yes, I'm getting this error in js console:

Uncaught ReferenceError: productGridJsObject is not defined
at HTMLButtonElement.onclick ((index):554)

 

I think this object has to be defined somewhere. But I can't find it anywhere in project files or even in database.

Re: Admin panel grid not working, specifically search

Hi @sergiy1ilchuk,

 

The error is happening on some page in particular?

This isn't the full answer but that object is used on several pages where you have product lists. I.e.: Products associated to a category (the last tab on category edition).

I've search for the definition and I've found the variable here:

Área de trabajo 1_005.png

 

 

Maybe you can start looking for those variables?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: Admin panel grid not working, specifically search

It happens in Manage Products grid, while other grids seem to work fine.

 

Thanks for the tip, I'll look for this other object.