Sauter la navigation

[Résolu] I cannot edit existing or a copy of Views

This support ticket is created Il y a 3 années et 6 mois. 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/Hong_Kong (GMT+08:00)

Ce sujet contient 9 réponses, a 2 voix.

Dernière mise à jour par Luo Yang Il y a 3 années et 6 mois.

Assisté par: Luo Yang.

Auteur
Publications
#2120071

I am trying to: load existing View into a Content Template
If I create the Content Template and I use the Views Block, and load an existing View, trying to click on the two buttons, edit original view and edit a copy, the view doesn't load the editor.

Link to a page where the issue can be seen: lien caché

I expected to see: The editor to edit the view.

Instead, I got: nothing

#2120589
js-error.JPG

Hello,

Thanks for the details, I can see the problem in your website, and when I click on those two buttons, I see below JS errors in my Chrome browser console window:
Uncaught SyntaxError: Unexpected token u in JSON at position 1
See my screenshot js-error.JPG

So the problem is abnormal, please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, and test again

2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

3) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#2121349

Hi Luo,
Thank you for your reply.
I have done all tests, I have activated the default theme, I have deactivated all plugins except toolset plugins, but the issue still remains.
If you have Duplicator Pro, you can do a clone of the site, it is a subsite of a WordPress Multisite installation.

#2121767

I don't have a copy of Duplicator Pro, did you get any PHP error debug logs?
If you need assistance for it, please backup your website first, and share the FTP access in below private message box, I can try to get the debug logs from your website

#2122051

Ok,
well, if you want I can do a copy of the site.
Do you need a copy of the entire network or only a copy of the subsite?

#2122057

There is a misunderstanding, as I mentioned above, please get the PHP debug logs from your website first, there might be other server/compatibility issue in your website, it might not be reproduced in my localhost.
And you can provide the entire network database dump file, private message box enabled again.

#2122105
#2122905

Thanks for the details, I am downloading the files, will update here if find anything

#2123113
view-block.JPG

I can duplicate the problem with your database dump file, and I have tried these:
1) Create another new content template,
2) Create a new view block in it, add the editing post form in view's loop,
It works fine, see my screenshot view-block.JPG

So it might be an exception of your website, please try to create another content template, and setup the view block, and test again.

#2123449

Well, I need to create a New View block. But I don't remember how I have set the existing view that I try to edit...

So, I need to edit the View because if I set an article in pending mode, the user would be able to edit the pending post.
Well, in other Views I have set the Query Filter that the user can edit the post when it is published, draft, pending. But if I put the post in pending mode the user is not able to edit the post. I need to set the Query filter ad Any to have the user able to edit the pending post.
Is it normal that?
Thank you

#2126109
pending.JPG

You can setup the view with a post status filter:
Select posts with status of pending.
See my screenshot pending.JPG

More help:
https://toolset.com/documentation/user-guides/views/filtering-views-query-by-post-status/