Advertisement:

Updating SMF 1.1.8

Aloittaja Midnight Caller, toukokuu 14, 2011, 03:31:30 IP

« edellinen - seuraava »

Midnight Caller

Hi All

I have tried Searching SMF forum but I can not find the answer to my problem so here go's

I am wanting to update my forum it is running SMF 1.1.8 what is out of date

I am getting Error messages wen trying to update the forum Software

Lainaa
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 Change file permissions to:
All files are writable.

I can Delete Packages, but not install Packages

Modification Packages:
Auto Email Inactive Users
Export Personal Messages
Visual Verification Options

Please remember that I am Dyslexic wen replying and using a text reader to read for me!

Midnight Caller

Can any one help me?  Please

MrPhil

Please do not "bump" a topic until at least 24 hours have passed. Everyone here volunteers their time to help others, and it's rude to demand service.

"Writable" means that PHP itself can write to the files and directories. That may be a different set of permissions than "owner" (you) being able to write. Depending on how your Linux server is set up, directory permissions 755, 775, or 777 may be needed (644, 664, or 666 for files). For Windows, I can't tell you.

Midnight Caller

@MrPhil, I am sorry that I came across as demanding service I did not meen to, I appreciate any help that you or any of the other volunteers can give me!

Ok Back to the problem that I am having

The Packages Folder is: 777, the installed.list File is: 777, the index.php is: 444, the backups Folder is: 777, backups index.php File is: 444, Temporary Folder is: 777, There is no Temporary index.php File

MrPhil

When you say the "index.php" file is 444, are you talking about the one in your forum's root (the one that's actually run, not a new one brought in with the mod). If SMF wants to overwrite or modify index.php, it will fail because it's Read-Only (444). Change it to 644 and retry (then 664, and as a last resort, 666). You should start with 755 for all folders, and only change to 775 (and as last resort, 777) if SMF complains that it can't write to that folder.

Midnight Caller

Lainaus käyttäjältä: MrPhil - toukokuu 15, 2011, 12:36:14 IP
When you say the "index.php" file is 444, are you talking about the one in your forum's root
No, I was talking about the one in the Packages Folder, and the one in the backups Folder.

I did try changing the one in root to: 777, and got:

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

MrPhil

Your host may be blocking access to 'world writable' directories and files. Try 644 for files and 755 for directories. If this is still 'unwritable', try 664 and 775 respectively. As a last resort, 666 for files and 777 for directories, but change them back to 644 and 755 as soon as you're done installing the mod. These permissions are for the file or directory being written to or modified. They should also work fine for whatever files were brought in by the mod. You don't need to change every file and directory -- just the ones that SMF is trying to update.

I would suggest restoring permissions to what they were before you started fooling with them (usually 755 for directories and 644 for files). It's possible that SMF will give you the "unwritable" error, in which case you start by adding group write permission (add +020) to whatever specific files or directories SMF is complaining about. If it still complains about a specific file or directory being unwritable, add world write permission (+002) on top of the group write permission (ending up with +022). If that doesn't do it, something is very strange about your system.

Midnight Caller

SMF does not tell me what it is complaining about precisely, all I get is the standard error message.

What Files and directories is SMF trying to update?

I may not be giving the correct permissions to the Files and directories that SMF wants to update!

This is my first time of updating SMF


Illori

you say you have a "temporary folder" what is the exact name of this folder? it should be temp and should be 777 or 755 etc as explained above.

Midnight Caller

It's name is "Temporary" as shown it is a cut and paste, should I change the name to: "temp" ?

Illori

yes please rename the folder to temp, that is what the code is looking for not temporary.

Midnight Caller

Done but now this:

Lainaa
Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Lainaa
Install Actions

Installations actions for "SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Display.php Test successful
3. Execute Modification ./Sources/Load.php Test successful
4. Execute Modification ./Sources/ManageAttachments.php Test successful
5. Execute Modification ./Sources/PackageGet.php Test successful
6. Execute Modification ./Sources/Post.php Test successful
7. Execute Modification ./Sources/Profile.php Test successful
8. Execute Modification ./Sources/QueryString.php Test successful
9. Execute Modification ./Sources/Security.php Test successful
10. Execute Modification ./Sources/Subs.php Test failed
11. Execute Modification ./Sources/Subs-Graphics.php Test successful
12. Execute Modification ./Sources/Subs-Members.php Test successful
13. Execute Modification ./Sources/Subs-Post.php Test successful
14. Execute Modification ./Themes/default/ManageAttachments.template.php Test successful
15. Execute Modification ./Themes/default/Recent.template.php Test successful
16. Execute Modification ./Themes/babylon/Recent.template.php Test successful
17. Execute Modification ./Themes/classic/Recent.template.php Test successful
18. Execute Modification ./Themes/default/languages/index.english.php Test successful
19. Execute Modification ./attachments/.htaccess Skipping file
20. Execute Modification ./index.php Test successful
21. Execute Modification ./Sources/Display.php Test successful
22. Execute Modification ./Sources/Load.php Test successful
23. Execute Modification ./Sources/Post.php Test successful
24. Execute Modification ./Sources/Profile.php Test successful
25. Execute Modification ./Sources/Security.php Test successful
26. Execute Modification ./Sources/Subs.php Test successful
27. Execute Modification ./Sources/Subs-Graphics.php Test successful
28. Execute Modification ./Sources/Subs-Members.php Test successful
29. Execute Modification ./Sources/Subs-Post.php Test successful
30. Execute Code updateDatabase.php



Illori

if you have other mods installed sometimes they modify the same files needed to be edited for an upgrade, you could try uninstalling the mods first then doing the upgrade and using version emulation to reinstall the mods, or you will need to manually edit the failing file. Manual Installation of Mods

Midnight Caller

I uninstalled "Auto Email Inactive Users" then got this:

Fatal error: Call to undefined function aeiou() in /var/www/vhosts/dhea-forum.org.uk/httpdocs/index.php on line 168

Now what do I do to solve this problem?

Illori

you will need to edit that file and remove that call

Midnight Caller

Now getting:


Warning: require_once() [function.require-once]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /var/www/vhosts/dhea-forum.org.uk/httpdocs/Settings.php owned by uid 10004 in /var/www/vhosts/dhea-forum.org.uk/httpdocs/index.php on line 51

Warning: require_once(/var/www/vhosts/dhea-forum.org.uk/httpdocs/Settings.php) [function.require-once]: failed to open stream: Success in /var/www/vhosts/dhea-forum.org.uk/httpdocs/index.php on line 51

Fatal error: require_once() [function.require]: Failed opening required '/var/www/vhosts/dhea-forum.org.uk/httpdocs/Settings.php' (include_path='.:') in /var/www/vhosts/dhea-forum.org.uk/httpdocs/index.php on line 51

Now what do I do to solve this problem?

Illori

looks like your chmod on your settings.php file got changed, but i am not sure as i have not seen that error message before. How do I chmod? / what is chmod?

gordo

could you install the mod again to see if that would set it back again

Midnight Caller

Hi all

I reinstalled "Packages" plus "Sources" and "index.php" so my forum is back up and running, but I am Back to Square one.

gordo

But for now it better to have a forum, than not.  while something else can be worked out...

Advertisement: