Duplicate Template

Bug Released
2 December, 2019 08:16:35
jstraete
Topics: 34
Messages: 111
I am trying to duplicate one of my current templates, and when I click the Duplicate button it says "Template copy created", but it doesn't display on the list and doesn't appear to have duplicated it from what I can tell. I have tried in Firefox, Edge, Edge (dev), and Chrome browsers with the same result in all of them. I believe I have the latest version of the plugin, 1.09.05. Can you see if this is maybe a bug on the current version? Thanks!
2 December, 2019 08:27:42
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Unfortunately we could not replicate issue on our side.

Do other templates also failed to be duplicated?

Can you please "Turn on" debug mode ("E2Pdf" -> "Settings" -> "Turn on Debug mode"), and go to "E2Pdf" -> "Debug" -> "DB" and check if you have all entries in green.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
2 December, 2019 08:37:01
jstraete
Topics: 34
Messages: 111
Other templates fail to duplicate also. I turned on debug mode, tried to duplicate a template again, and then went to E2Pdf->Debug->DB and what it shows it attached.
2 December, 2019 09:03:12
E2Pdf
Support
Topics: 7
Messages: 3163
It looks like last update failed to update tables.

If you have access to phpMyAdmin, please complete this queries on your wordpress table to fix issue:

ALTER TABLE `wp_e2pdf_templates` ADD COLUMN `actions` longtext NOT NULL AFTER author;
ALTER TABLE `wp_e2pdf_revisions` ADD COLUMN `actions` longtext NOT NULL AFTER author;

If you are using different wordpress prefix, please fix `wp_e2pdf_templates` and `wp_e2pdf_revisions` to correct table names.

After queries complete, recheck E2Pdf->Debug->DB, "actions" must become green.

P.S. In future update it will be added "auto" fix if any tables missing after update. Sorry for inconvenience.

P.P.S. Do you have "auto" updates on plugins, or it was updated manually?

We remain at your service.
We would really appreciate your feedback at WordPress.org!
2 December, 2019 09:17:21
jstraete
Topics: 34
Messages: 111
I can now duplicate the template successfully after running those queries, and the "actions" is green on the Debug->DB page.

I have "auto" updates on plugins turned on. Thanks for the help!