 | General Error: Could not open... |  |
Posted: 04/29/2007 8:43 PM |
|
|
|
|
|
| Hummingbird |
| Posts |
6 |
| Word Cnt. |
264 |
| BDay |
Nov 5 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Apr 29, 2007
Local time: 6:22 PM
|

|
|
|
|
 |
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 |
|
|
 | Re: General Error: Could not open... |  |
Posted: 04/29/2007 9:11 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 3:22 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
| 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 |
|
|
 | Re: General Error: Could not open... |  |
Posted: 04/30/2007 12:44 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:22 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
Welcome to RCF Rabidfire!!!
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: General Error: Could not open... |  |
Posted: 04/30/2007 5:40 PM |
|
|
|
|
|
| Hummingbird |
| Posts |
6 |
| Word Cnt. |
264 |
| BDay |
Nov 5 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Apr 29, 2007
Local time: 6:22 PM
|

|
|
|
|
 |
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.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: General Error: Could not open... |  |
Posted: 04/30/2007 5:44 PM |
|
|
|
|
|
| Hummingbird |
| Posts |
6 |
| Word Cnt. |
264 |
| BDay |
Nov 5 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Apr 29, 2007
Local time: 6:22 PM
|

|
|
|
|
 |
| 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 |
|
|
 | Re: General Error: Could not open... |  |
Posted: 04/30/2007 6:00 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 12:22 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
| 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 |
|
|
 | Re: General Error: Could not open... |  |
Posted: 04/30/2007 11:01 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:22 PM
Location: St Pete, FL
|

|
|
|
|
 |
| 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:
- easymod/em_includes/em_modio.php
- 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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: General Error: Could not open... |  |
Posted: 05/01/2007 6:59 AM |
|
|
|
|
|
| Hummingbird |
| Posts |
6 |
| Word Cnt. |
264 |
| BDay |
Nov 5 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Apr 29, 2007
Local time: 6:22 PM
|

|
|
|
|
 |
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 |
|
|
 | Re: General Error: Could not open... |  |
Posted: 05/01/2007 10:10 AM |
|
|
|
|
|
| Hummingbird |
| Posts |
6 |
| Word Cnt. |
264 |
| BDay |
Nov 5 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Apr 29, 2007
Local time: 6:22 PM
|

|
|
|
|
 |
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 |
|
|
 | Re: General Error: Could not open... |  |
Posted: 05/01/2007 2:13 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 7:22 PM
Location: St Pete, FL
|

|
|
|
|
 |
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
 |
|
|
 |
 |
| Back to Top |
|
|
 |
 | Information |  |
|