## [0.2.1a]path errors like: admin/./mods/ and .../easymod//...

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

### [0.2.1a]path errors like: admin/./mods/ and .../easymod//...

This is all not needed any more - it has been fixed in the latest EM:
viewtopic.php?p=127968#127968

It should solve errors like here
or here

Note: If you didn't installed EM yet (or you want to reinstall) then the changes should be done to the file: admin/mods/easymod/em_includes/em_modio.php
If you somehow managed to install EM then the changes should be done to the file: admin/em_includes/em_modio.php

Code: Select all

#
#-----[ OPEN ]--------------------------------------------------
#
# when you install EM the file is &#58 admin/mods/easymod/em_includes/em_modio.php
#

#
#-----[ FIND ]--------------------------------------------------
#
// determing the destination path and filename
if ($create_command) {$to_dir = $script_path . '/' .$install_path . $this->path ;$to_file = $this->filename ; } else {$to_dir = $script_path . '/' .$install_path . 'processed/' . $this->path ;$to_file = $this->filename . '.txt' ; } # #-----[ REPLACE WITH ]-------------------------------------------------- # // determing the destination path and filename$ipath = strpos($install_path, './')===0 ? substr($install_path, 2) &#58 $install_path ; if ($create_command)
{
$to_dir =$script_path . $ipath .$this->path ;
$to_file =$this->filename ;
}
else
{
$to_dir =$script_path . $ipath . 'processed/' .$this->path ;
$to_file =$this->filename . '.txt' ;
}

All this was because FTP couldn't change to correct directory.

If anyone want to now the details:
In easymod_install.php
$script_path = 'admin/mods/easymod/'$install_path = ''
$script_path = 'admin/'$install_path = ./mods/dir_of_the_MOD_to_be_installed/'' (depends on the MOD that is to be installed)
And if you will notice this line:

Code: Select all

$to_dir =$script_path . '/' . $install_path . 'processed/' .$this->path ;
Then you will know what was wrong.

Good luck, and happy MODing .

PS: Changes are:
after this line

Code: Select all

// determing the destination path and filename

Code: Select all

$ipath = strpos($install_path, './')===0 ? substr($install_path, 2) &#58$install_path ;
this:

Code: Select all

$to_dir =$script_path . '/' . $install_path .$this->path ;
was changed to this:

Code: Select all

$to_dir =$script_path . $ipath .$this->path ;
and this:

Code: Select all

$to_dir =$script_path . '/' . $install_path . 'processed/' .$this->path ;
was changed to this:

Code: Select all

$to_dir =$script_path . $ipath . 'processed/' .$this->path ;
Last edited by Nux on Fri Nov 11, 2005 10:22 am, edited 5 times in total.

solentover
Registered User
Posts: 2
Joined: Sun Sep 04, 2005 7:34 pm

### Re: Fix for path errors like: admin/./mods/ and .../easymod/

Nux - THANKYOU! It worked

One point that might need stressing - it is necessary to remove the old installation first before reloading the files and then modifying admin/em_includes/em_modio.php

I say this because I tried this first on the old install and it didn't work, re0installed and made changes and it was fine

Obvious to seasoned pros but a simple newbie mistake that might cause a lot of unnecessary support messages unless pointed out

Best regards, Rob

Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

### Re: Fix for path errors like: admin/./mods/ and .../easymod/

You're right! Added a comment in the OPEN .

imrich
Registered User
Posts: 38
Joined: Tue Aug 02, 2005 1:42 pm

### Re: [0.2.1a]path errors like: admin/./mods/ and .../easymod/

This seemed to solve this problem which I was having.

THANK YOU VERY MUCH!

The strange part of this error was that easymod would function OK sometimes in a random manner before this fix was installed.

Errr
Registered User
Posts: 2
Joined: Sat Oct 08, 2005 4:43 pm

### Re: [0.2.1a]path errors like: admin/./mods/ and .../easymod/

sweet it sixed it tyvm ^.^

StormKnight
Registered User
Posts: 7
Joined: Mon Oct 10, 2005 6:28 pm

### Re: [0.2.1a]path errors like: admin/./mods/ and .../easymod/

HEhe.. ah to be me.. I must ask what may be a stupid question but alas I have been unable to fix my plight even with this fix that others seem to have successfully done..

First I will post my error messages and debug info followed what I perhaps "stupidly" did.. ;~)

Installing EasyMOD beta 1 (0.2.1a)

Step 4 (of 5): Depending on your selection, the modified files have been automatically moved into place or prepared for you to move them manually. If there are no errors, click the "Confirm" button to update your database and complete the installation process.

Progress :: Done - The table was previously created

Completing Post-Process
Making Backups in [backups/]

Copy From [processed/] To Status
languages/lang_easymod_english.php ../../../language/lang_english/lang_easymod.php completed
easymod.gif ../../../templates/subSilver/images/easymod.gif completed
includes/emc.gif ../../../templates/subSilver/images/emc.gif completed

Warning: ftp_put(): Unable to access C:\WINNT\TEMP\txtE01.tmp in E:\darkoceans.net\kaytonplace.net\forum\admin\mods\easymod\em_includes\em_ftp.php on line 1168

Error

Critical Error: Unable to complete writing of post process file.
Function Trace: main[4]->modio_close[2]

FTP ERROR: could not write file [admin/mods/easymod/post_process.sh]

EM installer v0.2.1a wrote: phpBB version: 2.0.17
Install Step: 4
Mode:
The Error wrote: Critical Error: Unable to complete writing of post process file.
Function Trace: main[4]->modio_close[2]

FTP ERROR: could not write file [admin/mods/easymod/post_process.sh]
Permissions: (including system errors)
write access :: No
root path write :: No
chmod access :: unattempted
mkdir access :: unattempted
tmp path write :: OK
FTP extension :: OK
Safe Mode :: ON
copy access :: No

Recommendations:
write: buffer & ftp
move: automated FTP

Selected settings:
write: ftpb
move: ftpa
ftp dir: /forum
ftp host: localhost
ftp port: 21
ftp debug: false
ftp ext: ext
ftp cache: false

CWD Listing:

Code: Select all

drwxrwxrwx .
drwxrwxrwx ..
-;rw-rw-rw- easymod.gif
-;rw-rw-rw- easymod_display_functions.php
-;rw-rw-rw- easymod_install.php
-;rw-rw-rw- easymod_install.php~
drwxrwxrwx em_includes
drwxrwxrwx includes
drwxrwxrwx languages
drwxrwxrwx templates

Testing FTP access...
1) Logged in successfully
PWD: /
Dir listing: (2 files being listed)
[forum]
[images]
2) CD to EasyMOD path successfully
3) wrote to phpBB root successfully

FTP access test :: successful
After looking and looking around.. I found the support posts here in Area51 and saw the error that Err had.. which seemed frighteningly close to mine.. and saw the fix by Nux.

I assumed that I hadn't installed EM and modified

and ftp'd it up overwriting the original one. I attempted a re-install and same debug error output as above.

I then ftp'd em_modio.php into

overwriting what was the same sized file. Still no go and same debug error as above.

Then here is where I get real bright.. I see the post about needing to remove the old installation in order to successfully install a new one. Not being too sure what that meant and being a little rash I go and just outright delete

thinking that I can now attempt this "fresh" install.

Same debug error info as above.

;~)

I can see there isn't much tolerance for stupidity and to a degree I can certainly understand that from yalls respective points of view.. I consider myself a fairly intelligent person myself.. and am utterly frustrated and angry with myself for not doing what seems so many others have no problems with.. I mean hell what am I going to do when I want to install an actual mod?!?! ;0 ;~)

I may have included to much info but I am sincerely hoping there is no such thing.. hehe..

Thank you for any time spent on my plight.

Edit: Oh and I also want to include that I have PHP version is 4.4 and MySQL is 4.0.25 and I have full ftp admin priviledges. And it is a Windows 2000 Server based machine that my site is on.
Last edited by StormKnight on Mon Oct 10, 2005 7:38 pm, edited 1 time in total.
Join the TechCafe.Net IRC Network!
irc.techcafe.net:6667
http://www.techcafe.net" target="_blank goto WebChat
/join #TechCafe (the main gathering channel)
- WarKnight

StormKnight
Registered User
Posts: 7
Joined: Mon Oct 10, 2005 6:28 pm

### Re: [0.2.1a]path errors like: admin/./mods/ and .../easymod/

Hmm.. I was thining.. (oh oh..) ..do I need to manually keep track of all the files that were copied or moved and delete them as well in order to have "removed" the old installation..?
Join the TechCafe.Net IRC Network!
irc.techcafe.net:6667
http://www.techcafe.net" target="_blank goto WebChat
/join #TechCafe (the main gathering channel)
- WarKnight

Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

### Re: [0.2.1a]path errors like: admin/./mods/ and .../easymod/

Your probem is different. You've got Safe Mode On, which may cause problems for certain file functions to work... Though I belive that FTP should work, but there may be some other restrictions on your server that would prevent it...

If your server is not some company serwer and/or there would be no threat from other pepole that has the ability to access the files of your forum, then you may change all files permissions (chmod) to 777.

PS: In future, please do not use this topic for problems other then the topic says.

StormKnight
Registered User
Posts: 7
Joined: Mon Oct 10, 2005 6:28 pm

### Re: [0.2.1a]path errors like: admin/./mods/ and .../easymod/

I understand and am sorry for mis-posting my problem.. it seemed close enough but true enough it is a different one. ..I'd like to ask a few more questions here since I can't split and make it a different topic..

This is a Windows 2000 Server with a HSP (Hosting Service Provider) called http://www.sectorlink.com. The chmod command that you speak of pertains to a Linux based system correct..?

But none the less this Safe Mode is On apparently.. suffice to say I should ask my HSP about turning it off or something else I should inquire about/ask them to do..?

Thanks.
Join the TechCafe.Net IRC Network!
irc.techcafe.net:6667
http://www.techcafe.net" target="_blank goto WebChat
/join #TechCafe (the main gathering channel)
- WarKnight

Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact: