Save As Copy Not Working

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Save As Copy Not Working

Post by rpierce » 2022-04-14 18:12

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.
Capture-local.JPG
Local computer indexes
Capture-local.JPG (37.01 KiB) Viewed 3808 times
Capture_server.JPG
Server indexes
Capture_server.JPG (34.23 KiB) Viewed 3808 times

Moh Youba
Veteran Member
Posts: 228
Joined: 2017-03-12 09:31

Re: Save As Copy Not Working

Post by Moh Youba » 2022-04-16 14:41

Hello

I found the same issue today

rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Re: Save As Copy Not Working

Post by rpierce » 2022-04-26 21:47

Does anyone have a suggestion??

G Scott
Posts: 18
Joined: 2018-02-25 00:02

Re: Save As Copy Not Working

Post by G Scott » 2023-06-21 11:13

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?

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Save As Copy Not Working

Post by a.gneady » 2023-06-23 18:58

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.
:idea: 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
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

Re: Save As Copy Not Working

Post by D Oliveira » 2023-06-24 13:17

a.gneady wrote:
2023-06-23 18:58
...please go to the admin area > Utilities menu > Server status. From there, check ...
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

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Save As Copy Not Working

Post by a.gneady » 2023-06-24 18:34

D Oliveira wrote:
2023-06-24 13:17
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)
You can enable it in your AppGini project:
Screenshot 2023-06-24 213335.png
Screenshot 2023-06-24 213335.png (34.43 KiB) Viewed 3239 times
:idea: 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
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Re: Save As Copy Not Working

Post by rpierce » 2023-10-24 16:29

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?
php-curl.JPG
php-curl.JPG (51.41 KiB) Viewed 2378 times
Settings for children are set to Copy = Yes (the ones we need to have copied to the new record)
child-settings.JPG
child-settings.JPG (55.76 KiB) Viewed 2378 times
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

rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Re: Save As Copy Not Working

Post by rpierce » 2023-10-25 00:08

UPDATE:

I re - FTP'd the app to the server and now Save as Copy is working!! A ghost in the machine....

mysh_eireannach
Veteran Member
Posts: 35
Joined: 2016-02-16 22:31

Re: Save As Copy Not Working

Post by mysh_eireannach » 2024-02-08 14:01

Hi All

I have same issue with Save As Copy Stop Working.

Presume after server update

Checked my server

Image

Contacted my provider, customers service said switch off ModSecurity at cPanel

Image

I switched off ModSecurity, but no changes

My AG version 23.11

Thanks

cmalimoglou
Posts: 4
Joined: 2020-10-26 16:04

Re: Save As Copy Not Working

Post by cmalimoglou » 2024-02-21 21:31

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....

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: Save As Copy Not Working

Post by onoehring » 2024-03-09 11:17

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.
ag_err_copychildren.png
ag_err_copychildren.png (71.33 KiB) Viewed 103 times
cURL IS enabled (though I am nut sure, why it's needed. Just copying a record could be handled in a different way.

Olaf

Post Reply