Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
General Error: Could not open...
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
General Error: Could not open...
PostPosted: 04/29/2007 8:43 PM Reply with quote
Hummingbird
Rabidfire
Hummingbird
Posts 6
Word Cnt. 264
BDay Nov 5
Sign Scorpio
Sex Sex:Male
Joined: Apr 29, 2007
Local time: 6:22 PM
blank.gif
I get the following error when trying to install any mods (this is one example):

General Error
Could not open [./mods/redirect_anon/redirect_annonymous_users_to_login_mod_1.0.8.txt  ] for reading.

Any ideas on what could be causing this?

Thanks

PS: Thanks Nightrider for directing me here.
Back to Top
View user's profile Find all posts by Rabidfire Send private message  
Re: General Error: Could not open...
PostPosted: 04/29/2007 9:11 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 3:22 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
If it comes for every MOD while installation than I THINK it's the permission problem. Well, I am new to this too but may be. What's the permission set for the folder mods
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: General Error: Could not open...
PostPosted: 04/30/2007 12:44 AM 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:22 PM
Location: St Pete, FL
peace.gif
Welcome to RCF, Rabidfire!!!

Who is your host?  This often occurs on sites hosted by Awardspace and Lycos and other sites that require file permissions to be set to 755 rather than the standard 644.  If you are on one of those sites, you will need to install a modified version of EM to work on your site.  If you have already modified all of your file permissions and aren't sure what the default file permissions were, you can simply upload a file to your server and your host software will correctly set the permissions on the file...

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

Welcome to RCF Rabidfire!!!

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: General Error: Could not open...
PostPosted: 04/30/2007 5:40 PM Reply with quote
Hummingbird
Rabidfire
Hummingbird
Posts 6
Word Cnt. 264
BDay Nov 5
Sign Scorpio
Sex Sex:Male
Joined: Apr 29, 2007
Local time: 6:22 PM
blank.gif
Permissions are set correctly at 755.

I have my hosting at Network Solutions.  I don't think its a permissions issue though.  Ill normally get a different error.  Something like "access denied" or something similar.  Ive never seen this error.

Brick wall
Back to Top
View user's profile Find all posts by Rabidfire Send private message  
Re: General Error: Could not open...
PostPosted: 04/30/2007 5:44 PM Reply with quote
Hummingbird
Rabidfire
Hummingbird
Posts 6
Word Cnt. 264
BDay Nov 5
Sign Scorpio
Sex Sex:Male
Joined: Apr 29, 2007
Local time: 6:22 PM
blank.gif
I actually uninstalled it temporarily while I was waiting for an answer ::brushes off the cobwebs:: from that "other board".  I installed a new template since.  Will that be a problem for me if I re-install EasyMod?
Back to Top
View user's profile Find all posts by Rabidfire Send private message  
Re: General Error: Could not open...
PostPosted: 04/30/2007 6:00 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 12:22 AM
Location: Birmingham, UK.
greatbrE.gif
I just had the same problem with a mod of mine, well sort of - I couldn't restore a backup of a mod because the text file was missing, going by the error message I got that was similar to yours. So I replaced the install text file into the mod folder on the host and it worked again after that. So, is the install text file missing perhaps...
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: General Error: Could not open...
PostPosted: 04/30/2007 11:01 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:22 PM
Location: St Pete, FL
peace.gif
Rabidfire wrote:
Permissions are set correctly at 755.

If your host REQUIRES that your file permissions be set to 755, then you will need to install the modified version of EM.  When EM was created, the industry standard file permissions were 644 so that's what EM uses for hardcoded file permissions.  If you are on a server that REQUIRES the file permissions to be set to 755, then that is a problem and EM needs to be adjusted to work correctly on your server.  So that's why I needed to know what your file permissions are set to.  Your error message is consistent for sites that REQUIRE the file permissions be set to 755, so that"s why I asked...

Try installing this version.  You will need to decrease the EM Version before you can reinstall this version of EM.  You should be able to decrease the EM Version number in EM Settings in your ACP MOD Center.  If not, I can give you options on how to do that too.  Just decrease the EM Version number to 0.2.0...

Awardspace Instructions w/Download

You can download this EM version that I have modified to work on Awardspace sites and other sites that require file permissions be set to 755.  The file can be found in the  downloads/phpBB/EasyMod section at the top of the page.  Make sure that all uploaded file permissions are set to 755:

easymod_awardspace.zip

Here are the instructions for modifying your EM installation files if you choose to do it yourself rather than use the modified EM version that I supplied above:

Awardspace Modifications

Your board requires script file permissions to be set to 755 instead of 644 like most other boards.  So even if EM installs correctly, the EM file permissions would be set to 644...

Unfortunately for sites like your's, EM sets the file permissions to 644 when it modifies them.  So go into the following files to set all matches of 0644 to 0755 before you install EM:

  1. easymod/em_includes/em_modio.php
  2. easymod/em_includes/em_ftp.php


Also, modify the check_file_scope function in your easymod/includes/admin_easymod.php.txt file by copying and pasting the code:

OPEN
easymod/includes/admin_easymod.php.txt

FIND
Code:
if( !@file_exists(phpbb_realpath($filename)) || !strstr(phpbb_realpath($filename), phpbb_realpath($expected_scope)) )

REPLACE WITH
Code:
//if( !@file_exists(phpbb_realpath($filename)) || !strstr(phpbb_realpath($filename), phpbb_realpath($expected_scope)) )
   if( !@file_exists(phpbb_realpath($filename)) )

The check_file_scope function should now look like this:

Code:
function check_file_scope($filename, $expected_scope, $simply_die = false)
{
   global $db, $lang;

   // make sure a file is located somewhere inside the specified directory
   //if( !@file_exists(phpbb_realpath($filename)) || !strstr(phpbb_realpath($filename), phpbb_realpath($expected_scope)) )
   if( !@file_exists(phpbb_realpath($filename)) )
   {
      $message = sprintf($lang['EM_modio_open_read'], $filename);
      if( $simply_die )
      {
         $db->sql_close();
         die($message);
      }
      message_die(GENERAL_ERROR, $message);
   }
}

Save all the modified files and upload them to their proper sub-folders in the admin/mods/easymod folder.  Then go ahead and try the EM install again...

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: General Error: Could not open...
PostPosted: 05/01/2007 6:59 AM Reply with quote
Hummingbird
Rabidfire
Hummingbird
Posts 6
Word Cnt. 264
BDay Nov 5
Sign Scorpio
Sex Sex:Male
Joined: Apr 29, 2007
Local time: 6:22 PM
blank.gif
What are the file permissions supposed to be set to?  

I can change them to whatever I want.  Its a unix platform.  The windows platforms at NetSol have hard coded permissions.
Back to Top
View user's profile Find all posts by Rabidfire Send private message  
Re: General Error: Could not open...
PostPosted: 05/01/2007 10:10 AM Reply with quote
Hummingbird
Rabidfire
Hummingbird
Posts 6
Word Cnt. 264
BDay Nov 5
Sign Scorpio
Sex Sex:Male
Joined: Apr 29, 2007
Local time: 6:22 PM
blank.gif
The modified version worked.  I am getting the following errors when I install a mod, but I am guessing that is because the modified version wont allow chmod changes...

Warning: chmod() [function.chmod]: Operation not permitted in /phpBB2/admin/em_includes/em_modio.php on line 546

Warning: chmod() [function.chmod]: Operation not permitted in /phpBB2/admin/em_includes/em_modio.php on line 546

Warning: chmod() [function.chmod]: Operation not permitted in /phpBB2/admin/em_includes/em_modio.php on line 546


Thanks a bunch guys.  I appreciate the help.
Back to Top
View user's profile Find all posts by Rabidfire Send private message  
Re: General Error: Could not open...
PostPosted: 05/01/2007 2:13 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:22 PM
Location: St Pete, FL
peace.gif
Ok, we are on the right track.  Not only does your Host REQUIRE that your file permissions be set to 755, but it won't allow any program to try to change file and folder permissions.  So you will want to upload the em_includes files from the following to the admin/em_includes folder.  What I have done is comment out all the code where EM attempts to set file and folder permissions...

em_includes_no_chmod.zip

In this archive, there are three files:

  • em_ftp.php
  • em_functions.php
  • em_modio.php

After extracting them, simply upload them to your phpBB forum admin/em_includes folder, overwriting the files that are currently there.  Then test EM to make sure that it is still working correctly minus the chmod error messages...

Here is a good MOD to try a Test of EM.  I think you will like it.  The DHTML Menu for ACP usually installs easily without any need to modify the MOD script, so it makes a good testing MOD, plus it adds a very nice navigation panel to your ACP...

dhtml_menu_for_acp_mod_v1_0_0.zip

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
 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

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0657s (PHP: 79% - SQL: 21%) - SQL queries: 58 - GZIP disabled - Debug on