Fixing Lost Templates in CGFeedback
Posted: Sat Jul 29, 2017 11:19 am
My apologies for locking myself out of the previous topic.
I found I had none of the CGFeeback Templates visible after updating to CGFeedback 2.0.2. Any pages with CGFeedback present would crash out due to not being able to find the correct template.
I first of all installed the module on another website that had my version of CMSMadeSimple (2.2.2) and found that the templates were present there. So I manually constructed the summary template I required using the templates on that site. This did not work, still had the same error. I found that the code I had calling CGFeedback worked fine on the other website, so it was plain that my website had some sort of corruption.
The obvious answer in this case is to remove a module, flush the cache, and reinstall. Except in the case of CGFeedback, this removes all the comments. 700+ in my case.
Since I had backups I could roll back to, I
1. Exported the CGFeedback content table from phpmyadmin
2. Deleted the whole module, and removed the template I had manually constructed
3. Reinstalled the module. All templates were visible in Design Manager.
4. Removed the new CGFeedback content table from phpmyadmin
5. Imported my old content into phpmyadmin. All Good!
Now painfully modifying the layout of the sample templates...
I found I had none of the CGFeeback Templates visible after updating to CGFeedback 2.0.2. Any pages with CGFeedback present would crash out due to not being able to find the correct template.
I first of all installed the module on another website that had my version of CMSMadeSimple (2.2.2) and found that the templates were present there. So I manually constructed the summary template I required using the templates on that site. This did not work, still had the same error. I found that the code I had calling CGFeedback worked fine on the other website, so it was plain that my website had some sort of corruption.
The obvious answer in this case is to remove a module, flush the cache, and reinstall. Except in the case of CGFeedback, this removes all the comments. 700+ in my case.
Since I had backups I could roll back to, I
1. Exported the CGFeedback content table from phpmyadmin
2. Deleted the whole module, and removed the template I had manually constructed
3. Reinstalled the module. All templates were visible in Design Manager.
4. Removed the new CGFeedback content table from phpmyadmin
5. Imported my old content into phpmyadmin. All Good!
Now painfully modifying the layout of the sample templates...