×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
data loss if I uninstall the plugin
Daniele Parasporo
New Member
Posts: 1
9 months 1 week ago #10059
by Daniele Parasporo
data loss if I uninstall the plugin was created by Daniele Parasporo
Hi everyone,
I'm creating a component for a website, the site must contain a table with data, the problem is that if I update the plugin it keeps the data, but if I remove it I lose all the data, I would like the component to save the data in a file, but that it doesn't delete it if I uninstall it, and in case I want to reinstall it, it takes the data from the same file, is it possible?
I'm creating a component for a website, the site must contain a table with data, the problem is that if I update the plugin it keeps the data, but if I remove it I lose all the data, I would like the component to save the data in a file, but that it doesn't delete it if I uninstall it, and in case I want to reinstall it, it takes the data from the same file, is it possible?
Please Log in or Create an account to join the conversation.
Jenkins
New Member
Posts: 2
8 months 4 weeks ago - 8 months 3 weeks ago #10065
by Jenkins
Replied by Jenkins on topic data loss if I uninstall the plugin
Hello
I have seen your issue it can be done by
Yes, it is possible to save the data in a file so that it persists even if the plugin is uninstalled and then reinstalled later. One approach is to use a database to store the data. You could create a table in the database to store the data, and then the plugin could read and write to this table as needed. Dinar Updates
Another approach is to save the data in a file on the server. You could use PHP's file handling functions to read and write to a file. One way to do this is to save the data as a JSON object and then use PHP's file_put_contents function to save the data to a file. When the plugin is reinstalled, it can then read the data from the same file using PHP's file_get_contents function and then parse the JSON data.
However, please keep in mind that saving user data has privacy and security implications, so you should take the necessary precautions to protect the data, such as encrypting it and implementing appropriate access controls. Additionally, you should inform your users about how their data will be stored and used, and obtain their consent before collecting and storing any data.
I have seen your issue it can be done by
Yes, it is possible to save the data in a file so that it persists even if the plugin is uninstalled and then reinstalled later. One approach is to use a database to store the data. You could create a table in the database to store the data, and then the plugin could read and write to this table as needed. Dinar Updates
Another approach is to save the data in a file on the server. You could use PHP's file handling functions to read and write to a file. One way to do this is to save the data as a JSON object and then use PHP's file_put_contents function to save the data to a file. When the plugin is reinstalled, it can then read the data from the same file using PHP's file_get_contents function and then parse the JSON data.
However, please keep in mind that saving user data has privacy and security implications, so you should take the necessary precautions to protect the data, such as encrypting it and implementing appropriate access controls. Additionally, you should inform your users about how their data will be stored and used, and obtain their consent before collecting and storing any data.
Last edit: 8 months 3 weeks ago by Jenkins.
Please Log in or Create an account to join the conversation.
Ryan Minnig
New Member
Posts: 10
8 months 3 weeks ago #10071
by Ryan Minnig
Replied by Ryan Minnig on topic data loss if I uninstall the plugin
If you are referring to your development process, SQL data dumps and Akeeba backup are extremely helpful.
Please Log in or Create an account to join the conversation.
liam justin
New Member
Posts: 1
1 week 6 days ago #10265
by liam justin
Replied by liam justin on topic data loss if I uninstall the plugin
It is such an informative post and helps me a lot. Currently I am working on trubridgepaystubs, you can also visit page trubridgepaystubs.com/
Please Log in or Create an account to join the conversation.
Time to create page: 0.162 seconds