Repeat steps disappear from steps in server actions

OS info

Problem description

Repeat steps disappear from steps in server actions. I’m trying to figure out some server actions with custom php files (using FPDF). However, every now and then, the steps from within my repeat just totally disappear in the steps overview, and I can’t edit them with the interface anymore. Inspecting a php file where this occurs doesn’t bring up any specific things. Two action files both with repeats steps look totally the same in VSCode, but not in the Wappler interface.

Steps to reproduce

  1. work with action file and fiddle around because you don’t know exactly how to use FPDF to create a batch of personalized pdf’s with dynamic data from your database
  2. use repeat to do some stuff for every row in your database query
  3. find out after a while that your repeat steps are gone
  4. I attached two files in a zip. The file called create_multiple_pdf_copy.php has the steps visible in Wappler. The file called create_multiple_pdf_copy_copy.php has no steps visible in the repeat on my Wappler instance.

pdf_creation.zip (3.3 KB)

Any help is greatly appreciated.
ps: any advice on how to create a pdf for each row in my database using FPDF is also very welcome (I think I am almost there in the called create_multiple_pdf_copy_copy.php. I use this to open a custom php file that has the FPDF instructions to create the pdf. It works, but only for one row. Once I query more than one it doesn’t seem to create multiple files. (file names for created pdf’s in the FPDF php file are dynamically set to some name in the database rows).

Community Page
Last updated: