This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
2.0g -> 2.2 Upgrade Trouble in manage_form.php
Started 15 years ago by kingworks | 4 posts |
-
I've been trying to get our installation of v2.0g upgraded to v2.2, but I'm can't seem to fix the following set of PHP errors:
Warning: mkdir(./data/form_22) [function.mkdir]: File exists in /www/dev/pmk899/machform/machform_v2.2/manage_form.php on line 555
Warning: mkdir(./data/form_22/css) [function.mkdir]: File exists in /www/dev/pmk899/machform/machform_v2.2/manage_form.php on line 556
Warning: mkdir(UPLOAD_DIR/form_22) [function.mkdir]: No such file or directory in /www/dev/pmk899/machform/machform_v2.2/manage_form.php on line 558
Warning: mkdir(UPLOAD_DIR/form_22/files) [function.mkdir]: No such file or directory in /www/dev/pmk899/machform/machform_v2.2/manage_form.php on line 560
Here are the v2.2 lines from manage_form.php (with line numbers):
553 //create form folder
554 $old_mask = umask(0);
555 mkdir(DATA_DIR."/form_{$new_form_id}",0777);
556 mkdir(DATA_DIR."/form_{$new_form_id}/css",0777);
557 if(DATA_DIR != UPLOAD_DIR){
558 mkdir(UPLOAD_DIR."/form_{$new_form_id}",0777);
559 }
560 mkdir(UPLOAD_DIR."/form_{$new_form_id}/files",0777);
561 umask($old_mask);Here is the 2.0g code from manage_form.php for comparison:
399 //create form folder
400 $old_mask = umask(0);
401 mkdir(DATA_DIR."/form_{$new_form_id}",0777);
402 mkdir(DATA_DIR."/form_{$new_form_id}/files",0777);
403 mkdir(DATA_DIR."/form_{$new_form_id}/css",0777);
404 umask($old_mask);Can anyone tell me what I'm doing wrong? Many thanks in advance.
Posted 15 years ago # -
Have you updated your old config.php file with the new config.php file from the 2.2 package?
MachForm Founder
Posted 15 years ago # -
Actually, that was under the previous 2.0g config.php file. When I use the latest v2.2 config.php file (which, oddly enough, defines the current Machform version as 2.1), I am left with the following errors:
Warning: mkdir(./data/form_24) [function.mkdir]: File exists in /www/dev/pmk899/machform/machform_v2.2/manage_form.php on line 555
Warning: mkdir(./data/form_24/css) [function.mkdir]: File exists in /www/dev/pmk899/machform/machform_v2.2/manage_form.php on line 556
Warning: mkdir(./data/form_24/files) [function.mkdir]: File exists in /www/dev/pmk899/machform/machform_v2.2/manage_form.php on line 560
Thanks for your help!
Posted 15 years ago # -
It seems there is something wrong there. Is it possible for me to have temporary FTP login to your machform? I'll check and fix it.
Please send the login info to: customer.service [at] appnitro.com
MachForm Founder
Posted 15 years ago #
Reply
You must log in to post.