EasyMOD alpha3 v0.0.9 released

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Thu Jun 05, 2003 7:39 pm

The author must have just put it in there. There is nothing to stop people from adding the compliant tag. But eventually when EMC has real standards, the MOD DB will correctly regulate which MODs have or do not have the EMC labels ;)

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

Questions
Registered User
Posts: 705
Joined: Mon Sep 30, 2002 11:06 pm
Location: Cyberspace Learning: PHP & MySQL
Contact:

Post by Questions » Thu Jun 05, 2003 7:43 pm

Nuttzy99 wrote:
GPHemsley wrote:
The Error wrote: FTP ERROR: could not write tmp file [/tmp/cfguPuuDh] to [/home/sicclyri/public_html/war_zone2/admin/
mods/EasyMOD/./processed/language/lang_english/lang_admin.php.txt]
Looks like the tmp file was created (but not positive) and that the FTP test worked fine. I see that no dirs were created. I would like to find out why. Before I go off writing a special little debugger, could you please first make sure that the mods/EasyMOD dir is owned by the same user that he is FTP'ing as. If it is the same user then I will write you up a quick little debugger to see where exactly it is failing.

Thanks,
-Nuttzy :cool:



if your talking about me....then yeah...its me...
thanks nuttzy.....

. . . un0 . . .
I will Install MODs to your forum, or install a fresh phpBB 2.0.10 to your host for reasonable prices.
Contact me via AIM @: Gam LDub


(Please note: I use paypal as my money transaction, so before you contact me to do any work to your site, make sure you have one. Thank you.)

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Thu Jun 05, 2003 7:54 pm

K, creating the ftp debugger now.

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

LLivingLarge
Registered User
Posts: 37
Joined: Mon May 19, 2003 3:20 am

Post by LLivingLarge » Thu Jun 05, 2003 7:55 pm

File Access Info
read access :: OK
write access :: OK
root path write :: OK
chmod access :: failed
unlink access :: OK
mkdir access :: OK
tmp path write :: failed
FTP extension :: module not loaded
copy access :: OK


Same problems... (Is there anything that MUST be chmodded before installing?)
Official Guinea Pig of Nuttzy99...

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Thu Jun 05, 2003 7:58 pm

What problems? If you get an error then there should be an error message with much more info than this. But from what you've posted, I'm a bit leary of the chmod access fail though.

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

GrMa
Registered User
Posts: 1
Joined: Thu Jun 05, 2003 7:52 pm

Post by GrMa » Thu Jun 05, 2003 8:14 pm

LLivingLarge wrote:
File Access Info
read access :: OK
write access :: OK
root path write :: OK
chmod access :: failed
unlink access :: OK
mkdir access :: OK
tmp path write :: failed
FTP extension :: module not loaded
copy access :: OK


Same problems... (Is there anything that MUST be chmodded before installing?)


I had the same problem. Worked it out as follows:
OPEN
admin_easymod_functions.php
FIND (LINE 758)
if (mkdir( 'EM_test_dir', 0777))
REPLACE WITH
if ( dir('EM_test_dir') || mkdir( 'EM_test_dir', 0777))
# my provider has rmdir disabled

FIND (LINE 1675)
$dir_path .= trim($splitarray[$idir]) . '/' ;
REPLACE WITH
$dir_path .= trim($splitarray[$idir]);
FIND (LINE 1685)
$emftp->ftp_mkdir( getcwd() . "/$dir_path") ;
}
}
AFTER, ADD
$dir_path .= '/' ;

FIND (LINE 1696)
$dir_path .= trim($splitarray[$idir]) . '/' ;
REPLACE WITH
$dir_path .= trim($splitarray[$idir]);
FIND (LINE 1712)
$emftp->ftp_mkdir( getcwd() . "/$dir_path") ;
}
}
AFTER, ADD
$dir_path .= '/' ;

SAVE - CLOSE


Comment: My provider did not like the slash at the end of the directory name with the mkdir command.
:wink: (this code is not EMC, but I hope it helps you...)

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Thu Jun 05, 2003 8:33 pm

Wow, that looks useful. Much appreciated! I'm going to do some tests to pull it apart and make sure it works 100% like I would expect. Thanks again!!

FYI, I'm working with the FTP people right now, and when I work with the people with write problems, then I'll be sure to check this out ;)

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

libertate
Registered User
Posts: 79
Joined: Tue Jul 30, 2002 11:13 pm
Location: Kiritimati
Contact:

Post by libertate » Thu Jun 05, 2003 8:34 pm

Nuttzy99 wrote:
GPHemsley wrote:
The Error wrote: FTP ERROR: could not write tmp file [/tmp/cfguPuuDh] to [/home/sicclyri/public_html/war_zone2/admin/
mods/EasyMOD/./processed/language/lang_english/lang_admin.php.txt]
Looks like the tmp file was created (but not positive) and that the FTP test worked fine. I see that no dirs were created. I would like to find out why. Before I go off writing a special little debugger, could you please first make sure that the mods/EasyMOD dir is owned by the same user that he is FTP'ing as. If it is the same user then I will write you up a quick little debugger to see where exactly it is failing.

Thanks,
-Nuttzy :cool:


FYI : After the failure I created the directory structure (processed/langauge/lang_english and chmod 777 the whole thing. Still the same error

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Thu Jun 05, 2003 9:05 pm

libertate and Questions: (my people with the FTP problems) I've completed the first debugger to try and shed light on the problem. Not saying this will absolutely reveal the problem though. Once I hear back then we can do another round of debugging.

Go ahead and right click and save: http://users.bicnet.net/~pktoolkit/down ... ug_ftp.txt

Then, change the .txt to .php and throw it in the EM directory. After running it, select ALL and paste into a forum post. FYI, I don't think any sensitive info will be revealed, but you should make sure!!!

Thanks and good luck!
-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Thu Jun 05, 2003 9:35 pm

@GrMa: Oh, misunderstood what you were doing there. I'll see trailing if a / is causing a problem on the FTP people.

Thanks,
-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

libertate
Registered User
Posts: 79
Joined: Tue Jul 30, 2002 11:13 pm
Location: Kiritimati
Contact:

Post by libertate » Thu Jun 05, 2003 10:22 pm

Nuttzy99 wrote: libertate and Questions: (my people with the FTP problems) I've completed the first debugger to try and shed light on the problem. Not saying this will absolutely reveal the problem though. Once I hear back then we can do another round of debugging.

Go ahead and right click and save: http://users.bicnet.net/~pktoolkit/down ... ug_ftp.txt

Then, change the .txt to .php and throw it in the EM directory. After running it, select ALL and paste into a forum post. FYI, I don't think any sensitive info will be revealed, but you should make sure!!!

Thanks and good luck!
-Nuttzy :cool:


The directory structure is there, but no file. 550, isn't that no file or no permissions?

Here she is :
My server, after running em_debug_ftp wrote: DEBUG FTP
Testing FTP access...
connect to server
Trying to localhost:21 ...
220 chaos FTP server ready.
Connected to remote host "localhost:21"
----------------------------


login
> USER libertate
331 Password required for libertate.
> PASS ********
230 User libertate logged in.
Authentication succeeded
----------------------------


change to EM dir
> CWD /www/phpBB/admin/mods/EasyMOD
250 CWD command successful.
----------------------------


get dir
> PWD
257 "/www/phpBB/admin/mods/EasyMOD" is current directory.
----------------------------


get dir listing
> PASV
227 Entering Passive Mode (127,0,0,1,17,126).
> LIST
Trying to 127.0.0.1:4478 ...
150 Opening ASCII mode data connection for file list
Connected to remote host
drwxr-xr-x 3 libertate libertate 4096 Jun 6 05:50 .
drwxrwxrwx 4 libertate libertate 4096 Jun 5 09:52 ..
-rw-r--r-- 1 libertate libertate 55163 Jun 5 09:51 admin_easymod_functions.php
-rw-r--r-- 1 libertate libertate 6578 Jun 5 09:51 easymod.gif
-rw-r--r-- 1 libertate libertate 80842 Jun 5 09:51 easymod_install.php
-rw-r--r-- 1 libertate libertate 27411 Jun 6 05:50 em_debug_ftp.php
drwxr-xr-x 2 libertate libertate 4096 Jun 5 09:51 includes
-rw-r--r-- 1 libertate libertate 19017 Jun 5 09:51 lang_easymod.php
Disconnected from remote host
226 Transfer complete.
----------------------------


make processed dir and get listing
> MKD processed
257 "/www/phpBB/admin/mods/EasyMOD/processed" - Directory successfully created.
> PASV
227 Entering Passive Mode (127,0,0,1,17,128).
> LIST
Trying to 127.0.0.1:4480 ...
150 Opening ASCII mode data connection for file list
Connected to remote host
drwxr-xr-x 4 libertate libertate 4096 Jun 6 05:50 .
drwxrwxrwx 4 libertate libertate 4096 Jun 5 09:52 ..
-rw-r--r-- 1 libertate libertate 55163 Jun 5 09:51 admin_easymod_functions.php
-rw-r--r-- 1 libertate libertate 6578 Jun 5 09:51 easymod.gif
-rw-r--r-- 1 libertate libertate 80842 Jun 5 09:51 easymod_install.php
-rw-r--r-- 1 libertate libertate 27411 Jun 6 05:50 em_debug_ftp.php
drwxr-xr-x 2 libertate libertate 4096 Jun 5 09:51 includes
-rw-r--r-- 1 libertate libertate 19017 Jun 5 09:51 lang_easymod.php
drwxr-xr-x 2 libertate libertate 4096 Jun 6 05:50 processed
Disconnected from remote host
226 Transfer complete.
----------------------------


make lang dir and get listing
> MKD processed/language
257 "/www/phpBB/admin/mods/EasyMOD/processed/language" - Directory successfully created.
> PASV
227 Entering Passive Mode (127,0,0,1,17,130).
> LIST processed
Trying to 127.0.0.1:4482 ...
150 Opening ASCII mode data connection for file list
Connected to remote host
drwxr-xr-x 3 libertate libertate 4096 Jun 6 05:50 .
drwxr-xr-x 4 libertate libertate 4096 Jun 6 05:50 ..
drwxr-xr-x 2 libertate libertate 4096 Jun 6 05:50 language
Disconnected from remote host
226 Transfer complete.
----------------------------


lang_english dir and get listing
> MKD processed/language/lang_english
257 "/www/phpBB/admin/mods/EasyMOD/processed/language/lang_english" - Directory successfully created.
> PASV
227 Entering Passive Mode (127,0,0,1,17,132).
> LIST processed/language
Trying to 127.0.0.1:4484 ...
150 Opening ASCII mode data connection for file list
Connected to remote host
drwxr-xr-x 3 libertate libertate 4096 Jun 6 05:50 .
drwxr-xr-x 3 libertate libertate 4096 Jun 6 05:50 ..
drwxr-xr-x 2 libertate libertate 4096 Jun 6 05:50 lang_english
Disconnected from remote host
226 Transfer complete.
----------------------------


write to lang_english normal way
> TYPE A
200 Type set to A.
> PASV
227 Entering Passive Mode (127,0,0,1,17,134).
> STOR /home/libertate/www/phpBB/admin/mods/
EasyMOD/processed/language/lang_english/admin_easymod_functions.php.txt
Trying to 127.0.0.1:4486 ...
550 /home/libertate/www/phpBB/admin/mods/
EasyMOD/processed/language/lang_english/admin_easymod_functions.php.txt: No such file or directory
Error : Cannot connect to remote host
Error : PUT command failed
> QUIT
221 Goodbye.
Disconnected from remote host
FTP ERROR: could not write to phpBB root

Kazer0
Registered User
Posts: 876
Joined: Sun Nov 10, 2002 2:05 am
Location: {postrow.POSTER_FROM}
Contact:

Post by Kazer0 » Thu Jun 05, 2003 10:38 pm

Well, you still have issues with php Safe mode. Look at this when I try and install a mod (I figured it out... stupid me):
Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in effect. The script whose uid is 32050 is not allowed to access /home/shiftxd/public_html/try/admin/mods/Custom_Title_Aexoden/processed owned by uid 99 in /home/shiftxd/public_html/try/admin/admin_easymod_functions.php on line 1670

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 32050 is not allowed to access /home/shiftxd/public_html/try/admin/mods/Custom_Title_Aexoden/processed owned by uid 99 in /home/shiftxd/public_html/try/admin/admin_easymod_functions.php on line 1675

Warning: chmod() [function.chmod]: Unable to access ./mods/Custom_Title_Aexoden/processed/admin/ in /home/shiftxd/public_html/try/admin/admin_easymod_functions.php on line 1676

Warning: chmod() [function.chmod]: No such file or directory in /home/shiftxd/public_html/try/admin/admin_easymod_functions.php on line 1676

Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in effect. The script whose uid is 32050 is not allowed to access /home/shiftxd/public_html/try/admin/mods/Custom_Title_Aexoden/backups owned by uid 99 in /home/shiftxd/public_html/try/admin/admin_easymod_functions.php on line 1696

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 32050 is not allowed to access /home/shiftxd/public_html/try/admin/mods/Custom_Title_Aexoden/backups owned by uid 99 in /home/shiftxd/public_html/try/admin/admin_easymod_functions.php on line 1701

Warning: chmod() [function.chmod]: Unable to access ./mods/Custom_Title_Aexoden/backups/admin/ in /home/shiftxd/public_html/try/admin/admin_easymod_functions.php on line 1702

Warning: chmod() [function.chmod]: No such file or directory in /home/shiftxd/public_html/try/admin/admin_easymod_functions.php on line 1702
Andrew Charron || alexis support forum || Specializing in phpBB website template integration
Hurry up, my feash is siek.
AndrewCharron.com version 5 released!

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Thu Jun 05, 2003 11:15 pm

Kazer0, for most people FTP is going to elminate that problem unless they don't have /tmp access (like you). However, in the initial tests your output shows that dirs are successfully being made and files created. I'm not sure if EM will actually be able to do all it needs to do on your system, but I intend on finding out why the tests work and the actual program does not ;) Gives me hope that we might be able to get it going for you. I'll be working on a debugger for your situation once I'm done with the FTP folks.

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Thu Jun 05, 2003 11:17 pm

libertate: Interesting. I wonder if it is just b/c it doesn't like using the full path. Maybe if I made it just relative to your login point then it would work. When I get some time I'll send you another version to test.

Thanks!
-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

LLivingLarge
Registered User
Posts: 37
Joined: Mon May 19, 2003 3:20 am

Post by LLivingLarge » Fri Jun 06, 2003 12:08 am

I had the same problem. Worked it out as follows:
OPEN
admin_easymod_functions.php
FIND (LINE 758)
if (mkdir( 'EM_test_dir', 0777))
REPLACE WITH
if ( dir('EM_test_dir') || mkdir( 'EM_test_dir', 0777))
# my provider has rmdir disabled

FIND (LINE 1675)
$dir_path .= trim($splitarray[$idir]) . '/' ;
REPLACE WITH
$dir_path .= trim($splitarray[$idir]);
FIND (LINE 1685)
$emftp->ftp_mkdir( getcwd() . "/$dir_path") ;
}
}
AFTER, ADD
$dir_path .= '/' ;

FIND (LINE 1696)
$dir_path .= trim($splitarray[$idir]) . '/' ;
REPLACE WITH
$dir_path .= trim($splitarray[$idir]);
FIND (LINE 1712)
$emftp->ftp_mkdir( getcwd() . "/$dir_path") ;
}
}
AFTER, ADD
$dir_path .= '/' ;

SAVE - CLOSE


Comment: My provider did not like the slash at the end of the directory name with the mkdir command.
:wink: (this code is not EMC, but I hope it helps you...)

Doesn't work... :([/quote]
Official Guinea Pig of Nuttzy99...

Locked

Return to “[2.0.x] MOD Writers Discussion”