Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] .sh files...
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] .sh files...
PostPosted: 03/17/2007 9:01 AM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 6:11 AM
blank.gif
Warning: ftp_put() [function.ftp-put]: Filetype not allowed. File post_process.sh won't be saved. in /***/************/*/*/*/***********/*****/*****/admin/mods/easymod/em_ includes/em_ftp.php on line 1167

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]

^ I keep getting the above error...I e-mailed the hosting site, and they said that they cannot enable the .sh extension because of reliability...

Is there any way to get around this error? Any help would be great.
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: .sh files...
PostPosted: 03/17/2007 9:20 AM Reply with quote
Site Admin
rb2d2
Site Admin
Posts 49593
Word Cnt. 2,756,445
BDay Apr 22
Sign Taurus
Sex Sex:Female
Joined: Sep 25, 2004
Local time: 5:11 AM
Location: Texas
texasC.gif
Hi lakeccrunner, welcome to RCF.

Nightrider is off line right now and well be until this afternoon, however, I'm sure as soon as he reads your message he will respond.  



Back to Top
View all pictures posted by this userView user's profile Find all posts by rb2d2 Send private message   Visit poster's website Phoogle Map
Re: .sh files...
PostPosted: 03/17/2007 4:27 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:11 AM
Location: St Pete, FL
peace.gif
Welcome to RCF lakeccrunner...

I have heard of only one other person with this problem, so I don't have a lot of experience with it.  I believe the solution was to change the file extension that EM assigns to the post_process.sh file.  I am surprised that you are having this problem since you had EM previously installed on your board with this host...

There are several things we could try.  If your host really doesn't allow files with the sh file extension, then we can modify the EM code so that it uses a file type that is allowed by your host, perhaps txt.  You could also bypass the EM installation code and manually install EM and see if EM will work correctly as is after it is successfully installed.  I will include the steps necessary to manually install EM.  I will also begin to investigate what it would take to use a different file type other than sh...

Manually Installing EM

  1. #
    #-----[ COPY ]------------------------------------------------
    #
    copy easymod/em_includes/*.* to admin/em_includes/*.*
    copy easymod/includes/admin_easymod.php.txt to admin/admin_easymod.php
    copy easymod/includes/sql/*.* to includes/sql/*.*
    copy easymod/languages/lang_easymod_english.php to languages/lang_english/lang_easymod.php
    copy easymod/includes/*.tpl to templates/subSilver/admin/*.tpl
    copy easymod/includes/emc.gif to templates/subSilver/images/emc.gif
    copy easymod/easymod.gif to templates/subSilver/images/easymod.gif

    *.* means to move ALL files in the designated folder to the destination folder.  *.tpl means to move ONLY files with the tpl extension from the source to the destination folders...

    You will want to be careful to rename the lang_easymod_english.php file lang_easymod.php and the admin_easymod.php.txt to admin_easymod.php...

  2. Once you have all the files in the correct destination folders, you would want to update your database.  You can download the following file, extract the db_update_easymod.php, then upload ti to your phpBB forum folder and run it from your browser:

    db_update_easymod.zip

    The path could look something like this in your browser:

    Code:
    http://yourdomian.com/phpBB2/db_update_easymod.php

    Once your database is successfully updated, you can delete the db_update_easymod.zip file from your phpBB forum folder...

    If you prefer to manually apply the SQL queries to your database, you can use the following:

    Code:
    #
    #-----[ SQL ]-------------------------------------------------
    #
    CREATE TABLE phpbb_easymod(
       mod_id mediumint(8) NOT NULL auto_increment,
       mod_title varchar(255),
       mod_file varchar(255),
       mod_version varchar(15),
       mod_author_handle varchar(25),
       mod_author_email varchar(100),
       mod_author_name varchar(100),
       mod_author_url varchar(100),
       mod_description text,
       mod_process_date int(11),
       mod_phpBB_version varchar(15),
       mod_processed_themes varchar(200),
       mod_processed_langs varchar(200),
       mod_files_edited mediumint(8),
       mod_tables_added mediumint(8),
       mod_tables_altered mediumint(8),
       mod_rows_inserted mediumint(8),
       PRIMARY KEY (mod_id)
    );

    CREATE TABLE phpbb_easymod_processed_files (
      mod_processed_file varchar(255) NOT NULL default '',
      mod_id mediumint(8) NOT NULL default '0',
      KEY mod_processed_file (mod_processed_file),
      KEY mod_id (mod_id)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

    INSERT INTO phpbb_easymod (mod_id, mod_title, mod_file, mod_version, mod_author_handle, mod_author_email, mod_author_name, mod_author_url, mod_description, mod_process_date, mod_phpBB_version, mod_processed_themes, mod_processed_langs, mod_files_edited, mod_tables_added, mod_tables_altered, mod_rows_inserted) VALUES (1, 'EasyMOD', 'easymod/easymod_install.php', '0.3.0', 'Nuttzy', 'pktoolkit@blizzhackers.com', 'n/a', 'http://www.blizzhackers.com', 'EasyMOD automatically perfoms in seconds which previously required the tedious task of manually editing files.', 1096879226, '2.0.21', 'subSilver', 'english', 0, 1, 0, 1);

    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_ftp_cache', '0');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_ftp_dir', '');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_ftp_host', 'localhost');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_ftp_pass', '');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_ftp_port', '21');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_ftp_type', 'ext');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_ftp_user', '');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_move', 'ftpa');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_password', 'd41d8cd98f00b204e9800998ecf8427e');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_read', 'server');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_version', '0.3.0');
    INSERT INTO phpbb_config (config_name, config_value) VALUES ('EM_write', 'ftpb');

  3. Then you would need to go into EM Settings in your ACP MOD Center and adjust the settings to work on your board.  We can deal with that when you get to that point...


Laughing
Laughing Laughing
Laughing Laughing Laughing Laughing Laughing
Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing

Welcome to RCF lakeccrunner!!!

Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing Laughing
Laughing Laughing Laughing Laughing Laughing
Laughing Laughing
Laughing


headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] .sh files...
PostPosted: 03/18/2007 9:14 AM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 6:11 AM
blank.gif
^ Thanks for the welcome! But, I'm still having the problems...

It won't accept the password that I used during the installation when I got the original error...and when I go back to install it again, it says I've already had that version installed before...
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: .sh files...
PostPosted: 03/18/2007 2:18 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:11 AM
Location: St Pete, FL
peace.gif
If you have had EM installed before, you need to decrease the EM version number before you can reinstall it.  The EM Version number is stored in your phpbb_config table.  Here are 3 different ways to decrease EM's Version number...

EM Version Change

Before you can reinstall EM, you need to decrease the EM version number in your phpbb_config table...

  • EM Version Change Option 1

    I created this DB Update file that you can run from your browser.  Download and unzip the following file, then upload it to your phpBB root and run it from your browser:

    em_db_decrease_version.zip

    The path to the unzipped file might look something like this in your browser:

    http://yourdomain.com/forum/em_db_decrease_version.php

  • EM Version Change Option 2

    If you already had EM 0.3.0 installed, then you will need to change the EM Version back so that the install will think that this is an Upgrade.  You can use this tool to change your EM Version so that you can reinstall EM on your board:

    EM_Version_Changer

    Once the EM Version Changer is installed, set the EM version to 0.1.13 or 0.2.0...

  • EM Version Change (Manual Option 3)

    If you want to manually change the EM version, you can do so in your phpbb_config table.  Just look for the record beginning with EM_version.  Then you can change the related field to 0.1.13.  You could also delete all the records in the phpbb_config table that begin with EM_ and delete the phpbb_easymod table too to have the new install recreate everything...

    phpMyAdmin -  Manually Changing the EM Version Number

    The following is how you manually modify your EM password using phpMyAdmin.  You can get into your database through your CPanel by clicking on phpMyAdmin. Follow the following instructions:

    I'm sure that every host is different. I will tell you how I run my queries manually and hopefully it will be close to what you have available to you. The following may or may not be similar to what you have...

    Log into your domain Control Panel and find the database icons. You should be able to find the phpMyAdmin icon. Click on it...



    Hopefully that will log you into your phpAdmin panel. You may need to provide a username and password...

    In the phpMyAdmin panel, click on the Databases hyperlink...



    Hopefully that should take you where you can select your database. You may only have one. Select your database hyperlink...



    That should open up the display of all the tables in your database. Ignore them. Somewhere on the page, you should see something similar to this:



    Click on the phpbb_config table in the Left column navigation bar:



    Then on the top left of the right window, click on the Browse button:



    Then to display all the records, change the row settings to 500 starting with record 0, then press the Show button:



    Scroll down to the EM version field, then click on the little pencil icon next to the record to edit it:



    Enter the following into the config_value Value editbox.  Any version less than your current version will work...

    Code:
    0.1.13



    Then press the Go button.  You should now be able to reinstall EM...


If you are still unclear on how to do this, send me a PM and I can probably reset your EM version for you...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] .sh files...
PostPosted: 03/18/2007 4:13 PM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 6:11 AM
blank.gif
^ Ok, I changed the version...but it still dosnt work. I've been looking at the error:

Warning: ftp_put() [function.ftp-put]: Filetype not allowed. File post_process.sh won't be saved. in /***/************/*/*/*/***********/*****/*****/admin/mods/easymod/em_ includes/em_ftp.php on line 1167

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]



And I was wondering, is there any way that I could get into one of the files and have it write the file as a .txt, or something?
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: .sh files...
PostPosted: 03/18/2007 4:48 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:11 AM
Location: St Pete, FL
peace.gif
First, did you try deleting the post_process.bat and post_process.sh files and try the EM install again?  I doubt that will work since your host has told you that it doesn't allow the sh file type, but it is worth a try if you haven't already done so...

lakeccrunner wrote:
And I was wondering, is there any way that I could get into one of the files and have it write the file as a .txt, or something?

Yes, since EM is Open Source, you can modify anything in the code to get it to work on your board.  I've had to change the code for many sites such as Awardspace and Lycos, where they require the file permissions to be set to 755.  EM sets them to 644...

The other guy who had the same problem was able to change the sh file extension to txt and that seemed to work for him.  So do a replace all of post_process.sh with post_process.txt in the following EM files:
  1. easymod_install.php
  2. admin_easymod.php.txt
I don't know if anything else needs to be modified, so try this and see what happens...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] .sh files...
PostPosted: 03/18/2007 4:50 PM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 6:11 AM
blank.gif
Ok, I'll try that...I think I was looking in the wrong file for the file before...
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: .sh files...
PostPosted: 03/18/2007 4:58 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:11 AM
Location: St Pete, FL
peace.gif
I did a search through all of the EM files and those two are the only ones that I could see that need to be modified.  Time will tell...

Good Luck lakeccrunner!!!

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] .sh files...
PostPosted: 03/18/2007 5:08 PM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 6:11 AM
blank.gif
^ Do you know approximately where in the php files the lines are located?
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.129s (PHP: 73% - SQL: 27%) - SQL queries: 58 - GZIP disabled - Debug on