Save As Copy Not Working
Save As Copy Not Working
Hello,
I have an app set up to Save Child Records when the Parent record is "Saved As Copy". The functionality works great on my Local computer but does not work on the server. The databases are identical except for the "Cardinality", which I have no idea about. Images Below. I need the "Save As Copy" functionality. I hope someone can help.
I have an app set up to Save Child Records when the Parent record is "Saved As Copy". The functionality works great on my Local computer but does not work on the server. The databases are identical except for the "Cardinality", which I have no idea about. Images Below. I need the "Save As Copy" functionality. I hope someone can help.
Re: Save As Copy Not Working
Hello
I found the same issue today
I found the same issue today
Re: Save As Copy Not Working
Does anyone have a suggestion??
Re: Save As Copy Not Working
I'm having the same issue.
I've been using a shared server for a few years now, and suddenly last week, child records are no longer copying when I Save As Copy.
I have not updated my app or changed any code. I have not changed any settings in the webhosting cPanel either.
I believe the webhost has changed server settings/configuration which has caused the issue.
Unfortunately, there are no errors in the php error log. So I'm a bit stumped as to identifying the problem.
I have raised a support ticket with the web host, but so far they have not been much help.
Does anyone have any suggestions on what could be causing this or how I can identify the cause?
I've been using a shared server for a few years now, and suddenly last week, child records are no longer copying when I Save As Copy.
I have not updated my app or changed any code. I have not changed any settings in the webhosting cPanel either.
I believe the webhost has changed server settings/configuration which has caused the issue.
Unfortunately, there are no errors in the php error log. So I'm a bit stumped as to identifying the problem.
I have raised a support ticket with the web host, but so far they have not been much help.
Does anyone have any suggestions on what could be causing this or how I can identify the cause?
Re: Save As Copy Not Working
Save as copy feature depends on the
php_curl
extension. If that extension has been removed during a server upgrade, the feature would stop working. To check this, please go to the admin area > Utilities menu > Server status. From there, check if Curl
extension is enabled under the 'PHP Info' section. AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
- Need personalized consulting on your specific app and customizations? Book an online call with me here.
- D Oliveira
- AppGini Super Hero
- Posts: 351
- Joined: 2018-03-04 09:30
- Location: David
Re: Save As Copy Not Working
I don't have this problem but I'm curious about this server status page location, it doesnt show in my utilities menu (appgini 22.14)
https://pasteboard.co/su4gtIFO16KR.png
Re: Save As Copy Not Working
You can enable it in your AppGini project:D Oliveira wrote: ↑2023-06-24 13:17I don't have this problem but I'm curious about this server status page location, it doesnt show in my utilities menu (appgini 22.14)
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
- Need personalized consulting on your specific app and customizations? Book an online call with me here.
Re: Save As Copy Not Working
Hello Again,
This issue with Save As Copy keeps resurfacing. It is a very important function for our app but seems very unstable. I have made some minor changes to the app and it works great in Xampp. When I upload it to the server Save As Copy ceases to work. I have the old version of the app still on the server and the Save As Copy functions as expected. I must revert to the old version of the app until I can get this figured out. The images below are from the new version of the app where Save As Copy is not working.
I'm using AppGini Version 23.14.
PHP curl is enabled - is there a curl setting that might be the culprit? Settings for children are set to Copy = Yes (the ones we need to have copied to the new record) This unpredictable nature of the Save As Copy function is very frustrating. We depend on it working. Can someone please help me to understand why this continually happens? Please and thank you!
Ray
This issue with Save As Copy keeps resurfacing. It is a very important function for our app but seems very unstable. I have made some minor changes to the app and it works great in Xampp. When I upload it to the server Save As Copy ceases to work. I have the old version of the app still on the server and the Save As Copy functions as expected. I must revert to the old version of the app until I can get this figured out. The images below are from the new version of the app where Save As Copy is not working.
I'm using AppGini Version 23.14.
PHP curl is enabled - is there a curl setting that might be the culprit? Settings for children are set to Copy = Yes (the ones we need to have copied to the new record) This unpredictable nature of the Save As Copy function is very frustrating. We depend on it working. Can someone please help me to understand why this continually happens? Please and thank you!
Ray
Re: Save As Copy Not Working
UPDATE:
I re - FTP'd the app to the server and now Save as Copy is working!! A ghost in the machine....
I re - FTP'd the app to the server and now Save as Copy is working!! A ghost in the machine....
-
- Veteran Member
- Posts: 35
- Joined: 2016-02-16 22:31
Re: Save As Copy Not Working
Hi All
I have same issue with Save As Copy Stop Working.
Presume after server update
Checked my server
Contacted my provider, customers service said switch off ModSecurity at cPanel
I switched off ModSecurity, but no changes
My AG version 23.11
Thanks
I have same issue with Save As Copy Stop Working.
Presume after server update
Checked my server
Contacted my provider, customers service said switch off ModSecurity at cPanel
I switched off ModSecurity, but no changes
My AG version 23.11
Thanks
-
- Posts: 4
- Joined: 2020-10-26 16:04
Re: Save As Copy Not Working
Dear all,
I face the same problem with the "Save as Copy" and the children records, dispite the fact that cURL is enabled (version: 7.87.0).
Any suggestion for the problem solving??
Thanks in advance....
I face the same problem with the "Save as Copy" and the children records, dispite the fact that cURL is enabled (version: 7.87.0).
Any suggestion for the problem solving??
Thanks in advance....
Re: Save As Copy Not Working
Hi,
in conjunction with my previous bug report ( viewtopic.php?f=11&t=5342 ) I also noticed, that the option "copy child records when copying parent" does not seem to work (AG: 24.10 rev 1579). I have an attached child table that holds only links to attached files. Not a single child record is being duplicated - the parent record is duplicated correctly.
Initially I did not have this enabled but after reporting the previous bug I got curious. I checked the box, regenerated the app and flushed my browser cache.
cURL IS enabled (though I am nut sure, why it's needed. Just copying a record could be handled in a different way.
Olaf
in conjunction with my previous bug report ( viewtopic.php?f=11&t=5342 ) I also noticed, that the option "copy child records when copying parent" does not seem to work (AG: 24.10 rev 1579). I have an attached child table that holds only links to attached files. Not a single child record is being duplicated - the parent record is duplicated correctly.
Initially I did not have this enabled but after reporting the previous bug I got curious. I checked the box, regenerated the app and flushed my browser cache.
cURL IS enabled (though I am nut sure, why it's needed. Just copying a record could be handled in a different way.
Olaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Re: Save As Copy Not Working
Hi Folks,
Again, I'm struggling with the "Save as Copy" function. I have a Parent table named Daily Report. This table has 7 child tables. When I use the save as copy function, 6 of the 7 tables copies fine. I've run it locally and on the server. cURL is active, obviously since 6 of the child records copy.
I've upgraded to the latest AppGini version (24.17 revision 1725) to see if that helps but with no success. I've checked and rechecked the settings for the problem table and everything appears to be set up correctly. I've installed the app in a new directory with no success. I hope someone can help.
Thanks,
Ray
Again, I'm struggling with the "Save as Copy" function. I have a Parent table named Daily Report. This table has 7 child tables. When I use the save as copy function, 6 of the 7 tables copies fine. I've run it locally and on the server. cURL is active, obviously since 6 of the child records copy.
I've upgraded to the latest AppGini version (24.17 revision 1725) to see if that helps but with no success. I've checked and rechecked the settings for the problem table and everything appears to be set up correctly. I've installed the app in a new directory with no success. I hope someone can help.
Thanks,
Ray
- Attachments
-
- daily rpt settings.JPG (44.8 KiB) Viewed 248 times
-
- children settings.JPG (62.17 KiB) Viewed 248 times
Re: Save As Copy Not Working
Hi,
just a suggestion: Could there be a field definition in the "remarks" table that does not allow duplication of a record? Maybe you have define a field to be unique. As copying would create a new record with that exact field, it would seem logical to me that the copy would fail.
If this is not the reason, we would need more input about your table design.
Olaf
just a suggestion: Could there be a field definition in the "remarks" table that does not allow duplication of a record? Maybe you have define a field to be unique. As copying would create a new record with that exact field, it would seem logical to me that the copy would fail.
If this is not the reason, we would need more input about your table design.
Olaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Re: Save As Copy Not Working
@BigProf:
Apart from problems* which seem to occur from time to time when cURL-cloning sub-records:
We should get more influence over the new data set that is created when duplicating.
I suggest that we should get a new hook function
This would have the following advantages:
AppGini could give us some extra info in
---
Note to myself
In
---
* I know, this will not solve the issue reported here.
Apart from problems* which seem to occur from time to time when cURL-cloning sub-records:
We should get more influence over the new data set that is created when duplicating.
I suggest that we should get a new hook function
TABLENAME_before_duplicate(&$data, $memberInfo, &$args) : bool
for this, in which we can change $data
according to our own requirements. This would have the following advantages:
- We can modify any field, for example build custom unique id's, update timestamps, make use of currently logged in user etc.
- We could prevent duplication by returning
FALSE
. - We could set certain values that we could evaluate in the
_after_insert
hook, later on. - It remains 100% backwards compatible: if this hook function does not exist, everything remains in the standard
AppGini could give us some extra info in
$args
-array for us to see if this is a (new/blank) insert or a record-duplication.---
Note to myself
In
before_insert
-hook we can check for any data, breaking constraints, and then change $data
accordingly before AppGini inserts it. Also, we can return FALSE
there to deny insert.---
* I know, this will not solve the issue reported here.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools
Re: Save As Copy Not Working
Hi Jan,
thank you for your great input. I admire how structured your suggestions (always) are. Thanks
Olaf
thank you for your great input. I admire how structured your suggestions (always) are. Thanks
Olaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Re: Save As Copy Not Working
Thank you Olaf, I am happy when my contributions are valued by the community.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.14 Revision 1665 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.14 Revision 1665 + all AppGini Helper tools