[Resolved] Export Views settings fails with errors
This thread is resolved. Here is a description of the problem and solution.
Problem:
Client is trying to export Toolset settings, which works for each plugin except for Views, where the wrong format of file is generated and errors appear in the PHP log.
Solution:
There are certain circumstances where generating the export XML file fails, which will be fixed in the next release.
Meanwhile a patch is available in the linked erratum.
I just tested it myself on my local copy of your site and it worked.
First, I updated all of the Toolset plugins to the latest versions (there have been several updates since you reported the issue).
Then I downloaded and unzipped the file from the linked erratum, and I replaced the existing file plugins/wp-views/inc/wpv-import-export.php with the new file.
Then I went to Toolset > Export / Import to the Views tab and exported the Views settings.
This time it worked correctly, generating a zip file with the expected contents.
If it is not working for you, what happens? Do you see errors? What file is generated?
I installed the Short URL plugin and found the same issue with exporting Views settings.
From your comments it sounds like the original issue is fixed, the compatibility with Short URL is a new issue.
We can open a new thread to follow this up, but it looks as if that plugin has been abandoned (no updates for > 2 years), so it is almost certain that our developers will not spend any time looking into the cause.
Can you not simply temporarily disable the plugin when you export the Views settings and then re-enable it?
If for some reason you cannot then I would suggest you find an alternative plugin with similar functionality that is actively maintained and try using that instead. If it also creates problems exporting settings then we can look into that.
Many thanks for your comment, I think I can temporarily disable the plugins if I need to export. I think I won't export until next migration.
It is hard to find an alternative because some short links have been created a long time ago, if change, some links will be broken.
Usually, not only for this plugins, this problem may be caused by the same function call name, of course, I am appreciated if toolset can have the further study on it and ensure no function call be same with others and it can make toolset be 100% conflict free.
I know that the developers won't look at this because the other plugin is not actively maintained, and if there needed to be some cooperation between Toolset and the plugin author to ensure compatibility it would likely not be possible.
I suggest you leave a support comment on the plugin page saying that when that plugin is activated it breaks the Toolset settings export. If the author responds in any way then we can escalate this and investigate further.