Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: S.T.A.R.S on June 16, 2011, 05:35:07 PM

Title: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 05:35:07 PM
On every version of SMF i have ever installed, i can never install mods.

I had just installed SMF 2.0 RC5, i go through the installation process and use the default theme.

I go to admin > packages > upload. Install.

This error appears:

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.


every single mod i install this happens, its like no mods even work. whats going on?

I was trying to install Facebook Like mod at http://custom.simplemachines.org/mods/index.php?mod=2543

Title: Re: Can NEVER install mods, no matter what
Post by: Dzonny on June 16, 2011, 05:46:52 PM
Hello there.

That is error which says that there is some errors in installation, and in your case that is probably coused by too many mods installed.
Can you please give us list of your installed mos?
Can you also post where error is during installation, in which file (that is colored red during installation)?

Regards.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 05:52:12 PM
I have no mods installed.

Installations actions for "Facebook Sharer Mod 1.3"
Installing this package will perform the following actions:
      Type    Action    Description
   1.    Execute Code    installfbsharer.php    
   2.    Execute Modification    fb_sharer.xml    Modification parse error
   3.    Execute Modification    fb_sharer.xml    Modification parse error
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 06:08:27 PM
nah i cant even install any mod. its not my side its smf side. error on every single mod
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 06:18:29 PM
Sorry, what do you mean by Emulate Version. Ia m running SMF 2.0 RC5 if thats what you mean.

thx for ur help
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 06:22:49 PM
My  emulate version is:

SMF 2.0 RC5
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 06:26:21 PM
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.

I do not have any other mods installed. I am currently on the default smf theme. I just recently install SMF.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 06:40:55 PM
Look at the attachment.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 06:53:07 PM
Yes, every single mod :(

I dont know why it does this, would loveto get mods working :( been trying for days
Title: Re: Can NEVER install mods, no matter what
Post by: live627 on June 16, 2011, 06:54:21 PM
Check the file permissions
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 06:58:35 PM
check attachment

if there is anything i need to change please tell me :)

thanks for ur help i appreciate it
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 07:00:58 PM
What kind of host system is SMF installed on? Also, curious why you would install RC5 when SMF 2.0 Final is out? Almost every mod for RC5 I have seen will work in Final.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 07:02:42 PM
No mod had worked for me on SMF 2.0. So i decided to move to RC5, and none work on this either :/
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 07:06:36 PM
From your screen shot your permissions are not correct. It may depend on your host but on mine all folders need to be 0755 and all files 0644.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 07:14:05 PM
just doesnt seem to work.

Looks like i gota go back to PHPBB :/
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 07:26:20 PM
Well, it works for hundreds of thousands of web sites...but whatever. Good luck with phpBB.
Title: Re: Can NEVER install mods, no matter what
Post by: lord alibaski on June 16, 2011, 07:27:05 PM
Try this option m8

Make sure you put your forum in maintenance mode.

Right click on httpdocs -  change the permission to 777 and make sure the Recurse into subdirectories is ticked and the Apply to all files and directories is ticked and click ok.

This will set every single file to 777 then try to install a mod.

If this works install all the mods you want then soon as all your mods are installed just go through each folder setting the folders back to 755 then go inside each folder and set each file to 644.

Yes it will take some time but this is the only way round it for me so it might work for you also.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 07:29:54 PM
sorry im a noob at the moment with SMF, how do i change my forum to maintenance mode?

thx for ur help!
Title: Re: Can NEVER install mods, no matter what
Post by: lord alibaski on June 16, 2011, 07:35:15 PM
If you go to admin - configuration - server settings thats where you will see how to put your forum into maintenance mode.

Though before you can do this you need to set the Settings.php & Settings.bak.php permissions to 777.

Once you've done this then set all the files and folders to 777.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 08:04:19 PM
that doesnt work :/

seems like smf is ******ed itself seeming as for the past 3 weeks its happend. Installed on fresh servers and even moved to different companies and no change
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 08:09:54 PM
It will never work until you get your file permissions set correctly.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 08:11:03 PM
once i set them all to 777 under httpdocs and set maintenace it still says and error once i click "Install Now"
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 08:13:38 PM
So from your earlier screenshot showing permissions they are all green now and say writable?
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 08:14:56 PM
yes
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 08:23:51 PM
As a test, I downloaded it to my SMF 2.0 Final site, set the package manager to emulate RC5, and clicked the install button with this result.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 08:30:38 PM
Can you go through the steps with me please?

- You install SMF 2.0?

etc etc
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 08:52:21 PM
did you use the maintenace method?
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 08:55:21 PM
No, I don't put the forum into Maintenance mode to install mods....


Download the large upgrade for SMF 2.0 Final...

Copy all files to your web servers folder where SMF is installed. Run upgrade.php from your SMF folder...

Go into your admin panel and delete the mod you are having problems with...

Go to the SMF mod site and re-download the zip file for that mod to your computer...

Go back to the SMF package manager and click "Download Packages". Scroll to the bottom and click the browse button, find the mod you downloaded earlier, select it and upload it. Do not click the install button yet. Go back to the download manager, scroll to the bottom. On the bottom right side click the "Advanced" link. In the text box type SMF 2.0 RC5 and click "Apply". Then click on the "Install Mod" link and see if it will work.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 09:02:51 PM
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.

This is by installing SMF 2.0 Full installation at http://download.simplemachines.org/

Uploading the package in a zip file from my desktop.

Changing emulate version to SMF 2.0 RC5/

and clicking install now
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 09:06:45 PM
After installing SMF, does everything work okay. You can make new posts, reply, etc...?

Go back into your admin panel and do another screen grab of your permissions page. Can you post a link to your site or PM it to me if you don't want to make it public?
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 09:15:34 PM
Yep, everything works fine.

Thanks for helping me by the way, i appreciate it. Ill throw it as an attachment.
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 09:17:27 PM
Your sources folder is still not writable.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 09:20:33 PM
Still shows error now Sources are 777
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 09:23:31 PM
How about files and folders inside those folders on the permissions page? For example, click the Sources folder and it will show file permissions for all folders and files within the Sources folder
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 09:26:00 PM
All non writable. Shall i set everything under http docs to 777?
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 09:27:28 PM
It's worth a shot at this point. Just don't leave them at that once you take your site live.
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 09:31:51 PM
You should be able to set your file permissions to the "Standard" settings as shown here, fill in your admin FTP credentials and set all the files up in one shot.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 09:38:36 PM
Hmm. Now i seem to get a message of "You cannot download or install new packages because the Packages directory or one of the files in it are not writable!".

All files in te Packages directory are 777. :/
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 09:45:06 PM
Is there a folder in your packages directory named "temp"? If not create it and make it writable.
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 09:46:52 PM
Oh, there should also be one named "backups" in there too.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 09:49:27 PM
Jesus. When i added "temp" and made it writable it worked. I think! ha :P

Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 09:53:09 PM
Thanks so much :)

I couldnt have done it without you, i appreciate all thetime youve put into helping me ! thank you.

Also will these mods work with other themes?
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 09:56:02 PM
There ya go. I told you it was a permissions problem.  :P

Here is a handy little script to change your folder and file permissions very quickly. Copy and paste into a new file, change the value for $dirModes and $fileModes to value you want in line 3 and on line 12 enter the path you want it to perform the changes in. Save as "change_permissions.php". As it is, it will do all files and folders plus recurse through subfolders in the current directory where you place this file. Then just run the "change_permissions.php" from your web browser.

<?php

function rChmod$dir "./"$dirModes 0755$fileModes 0644 ){
$d = new RecursiveDirectoryIterator$dir );
foreach( new 
RecursiveIteratorIterator$d) as $path ){
if( 
$path->isDir() ) chmod$path$dirModes );
else if( 
is_file$path ) ) chmod$path$fileModes );
echo 
$path."<br />\n";
}
}

rChmod"./" );

?>


It may or may not work with other themes. When you install a theme, if it needs to make changes to other theme files it will test and see if it can or not. If all tests are successful just click the checkbox for that theme and it will apply to that theme.

And you are welcome. Glad you got it working.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 10:06:20 PM
******.

I completely screwed it up.

I installed a shoutbox, everything was fine. And now everytime i enter my site


Fatal error: Call to undefined function: shoutbox_load() in /var/www/vhosts/mmogamer.co.uk/httpdocs/index.php on line 155


Appears :O
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 10:12:33 PM
Which shoutbox is it?
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 10:14:15 PM
Ah, its back.

I thought id be smart and change emulate version to 2.0 RC3, as it was only for RC3

I got the default index.php back now. :O :)

thanks for ur help bud i appreciate it
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 10:17:56 PM
While im at it.

May i ask if you know any other Decent Mods?

thx
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 10:20:33 PM
Quote from: S.T.A.R.S on June 16, 2011, 10:14:15 PM
Ah, its back.

I thought id be smart and change emulate version to 2.0 RC3, as it was only for RC3

I got the default index.php back now. :O :)

thanks for ur help bud i appreciate it

You can do that but you don't want to try installing it if it shows errors. Usually if it doesn't show errors it will work okay. User beware though.

There a lot of great mods. If you want a combo chat/shoutbox checkout the AJAX Chat mod.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 16, 2011, 10:26:41 PM
Also this simple portal, to design your own homepage.

This is compatible with 2.0 right?
Title: Re: Can NEVER install mods, no matter what
Post by: b4pjoe on June 16, 2011, 10:53:26 PM
I haven't tried it but with version emulation it would probably work. You might want to have a quick read of the Simple Portal Support Topic.
Title: Re: Can NEVER install mods, no matter what
Post by: S.T.A.R.S on June 17, 2011, 12:17:15 PM
Any idea why the "temp" folder keeps getting deleted automatically?
Title: Re: Can NEVER install mods, no matter what
Post by: Digharatta on June 18, 2011, 02:15:44 AM
Hello,

The simplest mod packages that don't require the change of themes are installed OK.

However when I try yo install the packages (or languages) that require the change of themes, I get the notification (in Russian):

"Necessary FTP information

Some files which the package manager should change, don't have the rights to be writable. Change these rights using FTP

FTP server ..."

However I don't have FTP access to my forum, only the protected connection.
I've checked and changed all the access rights.

What can I do?

Thanks in advance!