Advertisement:

Author Topic: The Packages directory or one of the files in it are not writable!  (Read 4593 times)

Offline infinitywraith

  • Semi-Newbie
  • *
  • Posts: 22
Here's what happens.

I install a clean installation of SMF 1.1.11. I try to install the Treasury mod. I enter my FTP credentials, and the page loads for a while before stopping at a white page. When I go back, I see that the package was never applied. If I try to install or uninstall any other packages after that point, it says this:

Quote
An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I have no idea how to fix this problem, and I would really like to be able to install/uninstall packages again.  :(

I don't think this is Treasury specific, I believe I have this problem with any modification that requires FTP to install.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,136
  • Master of BBC Abuse
Re: The Packages directory or one of the files in it are not writable!
« Reply #1 on: January 04, 2010, 12:26:46 AM »
So if you go into ftp directly and set the permissions does that work? I mean straight from an ftp client rather than via SMF.

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,906
  • Gender: Male
    • N3RVE.COM
Re: The Packages directory or one of the files in it are not writable!
« Reply #2 on: January 04, 2010, 12:28:56 AM »
Create a directory (./Packages/temp), using FTP or your Server's File Manager, chmod both the Packages and temp directories to 0777 and attempt to install the package.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote
“Somewhere, something incredible is waiting to be known.” - Carl Sagan

Offline infinitywraith

  • Semi-Newbie
  • *
  • Posts: 22
Re: The Packages directory or one of the files in it are not writable!
« Reply #3 on: January 04, 2010, 12:33:49 AM »
I run Windows 2003, no chmod.

Not even sure how to set permissions through FTP myself, but through explorer I made everything not read-only.

Also, the installation of modifications that don't require FTP work fine.

Here's the .htaccess of /packages... Is it fine this way?
Code: [Select]
<Files *>
Order Deny,Allow
Deny from all
Allow from localhost
</Files>

EDIT: I'm pretty sure it's okay. Maybe using Windows is a problem?
« Last Edit: January 04, 2010, 12:38:13 AM by infinitywraith »

Offline infinitywraith

  • Semi-Newbie
  • *
  • Posts: 22
Re: The Packages directory or one of the files in it are not writable!
« Reply #4 on: January 04, 2010, 12:40:28 AM »
Also, "Cleanup Permissions" goes to a white page too.

Error log, copied from mysql database
Code: [Select]
1, 1262581148, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./DonationBlock.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
2, 1262581148, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./DonationBlock.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
3, 1262581148, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./Treasury.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
4, 1262581149, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./Treasury.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
5, 1262581149, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryAdmin.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
6, 1262581149, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryAdmin.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
7, 1262581149, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryUpdate.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
8, 1262581149, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryUpdate.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
9, 1262581149, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryReadme.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
10, 1262581150, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryReadme.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
11, 1262581150, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./Treasury.english.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
12, 1262581150, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./Treasury.english.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
13, 1262581150, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./Treasury.english-utf8.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
14, 1262581151, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./Treasury.english-utf8.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
15, 1262581151, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryHelp.english.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
16, 1262581151, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryHelp.english.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
17, 1262581151, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryHelp.english-utf8.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
18, 1262581151, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryHelp.english-utf8.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
19, 1262581151, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./Treasury.template.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
20, 1262581152, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./Treasury.template.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
21, 1262581152, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryAdmin.template.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
22, 1262581152, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./TreasuryAdmin.template.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
23, 1262581152, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./ts_picker.js) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
24, 1262581153, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./ts_picker.js) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
25, 1262581153, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./calnext.gif) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
26, 1262581153, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./calnext.gif) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
27, 1262581153, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./calprev.gif) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
28, 1262581154, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./calprev.gif) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
29, 1262581154, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./cal.gif) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
30, 1262581154, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./cal.gif) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
31, 1262581154, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./x-click-but04.gif) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
32, 1262581154, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./x-click-but04.gif) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
33, 1262581154, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./x-click-but21.gif) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
34, 1262581155, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./x-click-but21.gif) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
35, 1262581155, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./treasury_drop.png) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
36, 1262581155, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./treasury_drop.png) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
37, 1262581155, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./treasury_edit.png) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
38, 1262581156, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./treasury_edit.png) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
39, 1262581156, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./treasury.gif) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
40, 1262581156, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./treasury.gif) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
41, 1262581156, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./ipntreas.php) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1824', 'a054d95491f468c243af68832bea50c1'
42, 1262581157, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: copy(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./ipntreas.php) [&lt;a href='function.copy'&gt;function.copy&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Subs-Package.php<br />Line: 1025', 'a054d95491f468c243af68832bea50c1'
43, 1262581157, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: file_get_contents(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./install.xml) [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Packages.php<br />Line: 548', 'a054d95491f468c243af68832bea50c1'
44, 1262581157, 1, '98.155.29.204', '?action=packages;sa=install2;package=treasury_v1.01.zip', '2: require(C:\ANDRE\Tools\apache\htdocs\smf/Packages/temp/./install.php) [&lt;a href='function.require'&gt;function.require&lt;/a&gt;]: failed to open stream: No such file or directory<br />File: C:\ANDRE\Tools\apache\htdocs\smf\Sources\Packages.php<br />Line: 556', 'a054d95491f468c243af68832bea50c1'

Offline infinitywraith

  • Semi-Newbie
  • *
  • Posts: 22
Re: The Packages directory or one of the files in it are not writable!
« Reply #5 on: January 04, 2010, 12:47:53 AM »
I think that the problem is related to my FTP account and settings, however the only place I can find to change settings is in Packages>Options, and that doesn't even have a password box.

I really don't understand where I'm supposed to change my FTP credentials. The error just say that the file isn't found.

Offline infinitywraith

  • Semi-Newbie
  • *
  • Posts: 22
Re: The Packages directory or one of the files in it are not writable!
« Reply #6 on: January 04, 2010, 01:37:15 AM »
Okay I added a /temp folder anyways (no chmod) and it says that my modifications are now installed, however none of them take effect anymore :(

Any module I install now takes no effect, even though it says it was installed. There is a bunch of stuff lying in the temp folder now...

Offline Joey Smith™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,356
  • Gender: Male
Re: The Packages directory or one of the files in it are not writable!
« Reply #7 on: January 04, 2010, 02:39:42 AM »
Please link to us to a phpinfo file.

What is a phpinfo() file?

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,906
  • Gender: Male
    • N3RVE.COM
Re: The Packages directory or one of the files in it are not writable!
« Reply #8 on: January 04, 2010, 03:28:13 AM »
Indeed. A phpinfo() sheet will help. Seems you're on a pretty restrictive server and the actual changes aren't been made.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote
“Somewhere, something incredible is waiting to be known.” - Carl Sagan

Offline infinitywraith

  • Semi-Newbie
  • *
  • Posts: 22
Re: The Packages directory or one of the files in it are not writable!
« Reply #9 on: January 04, 2010, 11:37:36 AM »
http://sn1pe.com/info.php [nofollow]

Definitely not a restriction problem, I run a dedicated server. The changes not being made is probably because i created a /temp folder in packages. If that folder is not there, and I don't try to ever install Treasury or another FTP-requiring mod, then everything works fine and pacakges install.

Once I try installing Treasury, I can no logner do anything to packages do to the error mentioned in thsi thread. All adding a /temp folder does is make it appear that I can install and uninstall packages, but in reality it seems to just be dumping files into the /temp folder.

I think I might've entered some of my FTP information wrong, but there is no where for me to change it. The logs basically say that it can't find any files that it needs. Previously, I had custom action mod and a smiley set both installed without problem.

Thanks.
« Last Edit: January 04, 2010, 11:41:34 AM by infinitywraith »

Offline infinitywraith

  • Semi-Newbie
  • *
  • Posts: 22
Re: The Packages directory or one of the files in it are not writable!
« Reply #10 on: January 04, 2010, 11:07:27 PM »
Still having this problem, does anyone know?

Offline Joey Smith™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,356
  • Gender: Male
Re: The Packages directory or one of the files in it are not writable!
« Reply #11 on: January 05, 2010, 02:36:56 AM »
From your phpinfo sheet.

Quote
upload_tmp_dir   C:\WINDOWS\Temp   C:\WINDOWS\Temp

That will most likely be what is causing the problem. You will have to set the folders/files writable.

How do you connect to your server?

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,906
  • Gender: Male
    • N3RVE.COM
Re: The Packages directory or one of the files in it are not writable!
« Reply #12 on: January 05, 2010, 08:04:33 AM »
Definitely not a restriction problem, I run a dedicated server. The changes not being made is probably because i created a /temp folder in packages.
All adding a /temp folder does is make it appear that I can install and uninstall packages, but in reality it seems to just be dumping files into the /temp folder.

It's not just dumping the files there, SMF extracts the content of all packages to ./Packages/temp on your server. By doing this it enables the Package Manager read the content of the plugin by searching relevant files at the temp directory for the required changes. Upon completion, SMF attempts to delete the temp directory. Feel free to examine ./Sources/Packages.php to see how the Package Manager does this.
In addition to that, I'll encourage you to install install a little hack that removes the Package Manager's ability to delete the \temp\ dir after which you should create the dir one more time and chmod it accordingly.

Quote
I think I might've entered some of my FTP information wrong, but there is no where for me to change it. The logs basically say that it can't find any files that it needs. Previously, I had custom action mod and a smiley set both installed without problem.

This is not a problem. Open the Admin Control Panel - Packages - Options, there you can set the default value for the fields, after that, Open "File Permissions" and you can chmod your files and directories to your needs. You may also need to enter your FTP details there.

Quote
upload_tmp_dir   C:\WINDOWS\Temp   C:\WINDOWS\Temp

Hmmm.. What is the value for upload_tmp_dir = in your configuration file (php.ini), perhaps there's nothing set and PHP is automatically using C:\Windows\temp which isn't writable?

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote
“Somewhere, something incredible is waiting to be known.” - Carl Sagan

Offline swoodie

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
  • Mad Hatter
Re: The Packages directory or one of the files in it are not writable!
« Reply #13 on: February 01, 2010, 11:40:18 PM »
Hi did you get this resolved as i am having the same prob i also run this off a windows 2003 box

my error once applying

 mod Fatal error: require() [function.require]: Failed opening required 'C:\xampp\htdocs\webpage\forum/Packages/temp/./install.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\webpage\forum\Sources\Packages.php on line 556

Offline Joey Smith™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,356
  • Gender: Male
Re: The Packages directory or one of the files in it are not writable!
« Reply #14 on: February 02, 2010, 05:16:25 PM »
That, error means that the file was not present or for some other reason the script can not access the file.

Offline swoodie

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
  • Mad Hatter
Re: The Packages directory or one of the files in it are not writable!
« Reply #15 on: February 04, 2010, 02:52:08 AM »
That, error means that the file was not present or for some other reason the script can not access the file.

thanks any suggestions on how to get this installed, how to resolve the issue?

Offline Joey Smith™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,356
  • Gender: Male
Re: The Packages directory or one of the files in it are not writable!
« Reply #16 on: February 04, 2010, 03:29:42 AM »
Create a folder inside the packages folder called temp and make sure it is writable.

Offline swoodie

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
  • Mad Hatter
Re: The Packages directory or one of the files in it are not writable!
« Reply #17 on: February 04, 2010, 09:53:26 PM »
i tried that, that is the error i got  what i posted above

Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,980
  • Gender: Male
    • Southern Spirit Hunters
Re: The Packages directory or one of the files in it are not writable!
« Reply #18 on: February 07, 2010, 01:29:45 PM »
C:\xampp\htdocs\webpage\forum/Packages/temp/./install.php

                                                                       ^ shouldn't be there. 
Jim "JimM" Moore
Former Support Specialist

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods