Skip Navigation

[Resolved] I get an error when performing an action

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 12 replies, has 3 voices.

Last updated by Waqar 4 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1877301

Rob

Tell us what you are trying to do?
Set up the View search and results side by side

Is there any documentation that you are following?
https://toolset.com/course-lesson/creating-a-custom-search/
step 05
Is there a similar example that we can see?
Yes, I created a ticket, but somehow it disappeared.

When performing the action I get an error:
TypeError: Cannot read property 'name' of null
at ot (hidden link)
at hidden link
at n (hidden link)
at ut (hidden link)
at hidden link
at i (hidden link)
at cf (hidden link)
at hidden link
at ct (hidden link)
at n.value (hidden link)

What is the link to your site?
hidden link

#1878079

Hi,

Thank you for contacting us and I'd be happy to assist.

I've performed some tests on my website, but couldn't reproduce this issue.

To troubleshoot this, I'll suggest the following steps:

1. Please make sure that WordPress, active theme, and plugins are all updated to the latest versions.

2. It would be interesting to test this with all non-Toolset plugins disabled and a default theme like Twenty Twenty-One.

If it's fixed, you can start adding the disabled items, one-by-one, to narrow down to a possible conflicting one.

3. In case the issue still persists, please share temporary admin login details along with the page where the issue can be seen.

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#1882233

Thank you for sharing the admin access, but I'm getting the "Unknown username" message.

Can you please check the username and password again?

I've set your next reply as private.

#1883401

Hello,

Waqar is on vacation, I will take care this thread.

I can login your website, where can I see the problem you mentioned above?
When performing the action I get an error:

Please point out the problem page URL, thanks

#1883775

Rob

Hi,
The problem is in the store archive:
hidden link

#1884621
5355.JPG

What action did you perform?
I have tried the URL you mentioned above with my Chrome browser, but did not see the JS errors, see my screenshot

Is there anything missing?

Please try to clear your browser cache or try with other browser and test again.

#1884999

Rob

Tell us what you are trying to do?
Set up the View search and results side by side

Is there any documentation that you are following?
https://toolset.com/course-lesson/creating-a-custom-search/
step 05

That is what I am trying to do. I cleared browser cache same error.

#1885585

As I mentioned above, I don't see the JS errors in the URL you mentioned above.

I assume you are going to customize Woocommerce Shop page, it is archive page of post type "Products".

You need to setup Toolset WordPress Archive for it, I have setup a demo in your website:
hidden link

See it in front-end:
hidden link

It works fine.

More help:
https://toolset.com/course-lesson/building-a-custom-woocommerce-shop-page/

#1886083

Rob

You are looking at the wrong page, please look at the page ID it's 5355.
You are looking at ID 5352...

Are you sure you are doing the exact steps in the manual? adding the view output to the view search(right column)?
If you are able to do t without errors, could you do it for me?

Thanks

#1886335

As I mentioned above:
https://toolset.com/forums/topic/i-get-an-error-when-performing-an-action/#post-1884621
I don't see the JS errors in in page 5355

And in your case, you need to follow our document to customize the Woocommerce shop page:
https://toolset.com/forums/topic/i-get-an-error-when-performing-an-action/#post-1885585

#1886801

Rob
Screenshot 2020-12-25 at 15.50.31.png
Screenshot 2020-12-25 at 15.46.39.png

I am sorry, but I am not sure what to do now, the page generates errors and you say it doesn't. I provided a list of errors, but you deny that it happens.
You provide me with a link, but that is not what I want.

I want to have a custom search and have the search filters on the left and products on the right, as documented here:
https://toolset.com/course-lesson/creating-a-custom-search/

I added a screenshot, hope that makes it a bit more clear. When you drag the view output to the grid I get the error(see screenshot. When I press on the button, copy error it shows this:
TypeError: r is not a function
at hidden link
at Bh (hidden link)
at Dj (hidden link)
at unstable_runWithPriority (hidden link)
at Da (hidden link)
at xb (hidden link)
at mk.Events.current (hidden link)
at Ei (hidden link)

Could you try this, and if you do not get an error save the page with the view output in the right grid? I tried it in chrome, cleared cache, in incognito, all generate the error.

#1888521

Hi Rob,

Just wanted to let you know that I'm back from vacation and will be resuming on this ticket.

I'm going to review the information that you've provided and will perform some testing and research, accordingly.

Thank you for your patience.

regards,
Waqar

#1888825

Thank you for waiting.

I've performed some tests on my website and I was able to follow the steps in the video guide to show the view's search form and the results in a grid block's two columns.

The most important step in the video for the section "Set up the View search and results side by side" is from 00:30 to 00:45 seconds.
( ref: https://toolset.com/course-lesson/creating-a-custom-search/ )

The added grid block needs to be inside the "View" block, but, as a direct child, and shouldn't be nested inside some other block in the main "View" block.
( the grid block that you had was inside the "View Search" block - screenshot: hidden link )

I was also able to perform this action successfully, using the same steps on your website's homepage:

Step 1: I used the add new block button at the bottom of the view, to add a Grid block inside the view block.
( screenshot: hidden link )

Step 2: Next, I used the move up control in the added grid block to move it at the top of the view, so that it is the very first block inside it.
( screenshot: hidden link )

Step 3: After that, I used the drag button on the "View Search" block to move it inside the left column of the grid block.
( screenshot: hidden link )

Step 4: Similarly, I used the drag button on the "View Output" block to move it inside the right column of the grid block.
( screenshot: hidden link )

You can see the final result on the frontend of your website's homepage.
( screenshot: hidden link )