File manager problem

domel

New member
Joined
Sep 18, 2014
Messages
2
Hi,
file manager have a problem with a wordpress file admin-options.php, it can't be saved. DA reports only two lines "Command Returned" and "Details".
Log:
Code:
2014:12:10-16:43:44: Execl error on /usr/local/directadmin/scripts/custom/all_pre.sh 2>&1
The problem dissapear when I remove or move all_pre.sh, but even an empty file generate the error.

admin-options.php: http://pastebin.com/Asaa1i7h#
 
What is the content of the /usr/local/directadmin/scripts/custom/all_pre.sh file? You might have an error with your script there.
 
Hi forum - same problem here with exactly same issues as noted above.
Our all_pre.sh script includes:
Code:
#!/bin/sh
USERTYPE=`grep usertype= /usr/local/directadmin/data/users/${username}/user.conf | cut -d= -f2`

if [ "${USERTYPE}" = "admin" ]; then
   if [ "$caller_ip" = "XXX.XXX.XXX.XXX" ]; then        # comment
       exit 0;
   fi

   if [ "$caller_ip" = "XXX.XXX.XXX.XXX" ]; then          # comment
       exit 0;
   fi

   if [ "$caller_ip" = "XXX.XXX.XXX.XXX" ]; then         # comment
       exit 0;
   fi

   if [ "$caller_ip" = "XXX.XXX.XXX.XXX" ]; then        # comment
       exit 0;
   fi

   if [ "$caller_ip" = "XXX.XXX.XXX.XXX" ]; then           # comment
       exit 0;
   fi

   if [ "$caller_ip" = "XXX.XXX.XXX.XXX" ]; then          # comment
       exit 0;
   fi

   if [ "$caller_ip" = "XXX.XXX.XXX.XXX" ]; then         # comment
       exit 0;
   fi

   if [ "$caller_ip" = "XXX.XXX.XXX.XXX" ]; then         # comment
       exit 0;
   fi

   echo "IP $caller_ip is not allowed to be logged in as an Admin";
   exit 1;
fi
exit 0;
Principally same code as official script on examples...
Many users already reporting this - (php, html etc files containing over 100k characters)
All filemanager functions with those files are not possible...
 
For forum admins - please move this thread under technical support topic/forum. (As I did not want to make separate thread there)
 
Back
Top