No packages working

Started by AndySV1K, February 10, 2009, 04:54:15 AM

Previous topic - Next topic

AndySV1K

Hi all.

I hope this is the right area, i know this is about mods, but i cant seem to get any working so i dont think my issue is with a mod itself but my install of SMF.

I need help from the SMF wizards!

I upgraded from 1.1.8 to 2.0RC1  all went ok.  Ive put a theme on that i wanted to use.  all ok

I decided to add on Ezportal, so went about installing it, i had a few probs with file permissions, but eventually got to the point now where mods install fine with no errors.  however i cant seem to see any settings for mods and they dont seem to be there.

they appear in the installed packages list and seem to have installed ok, but i cant find them in the admin menus at all.

I should point out that i have never installed any mods before, so it doesnt help that im not too sure where i should be looking, i assumed i would see an extra menu option or something.

other mods i have tried are: -

simpleportal
smf gallery
meesage preview on mouse hover (cant remember the exact name)

all seem to install and uninstall ok, but none seem to actually work.

any help would be greatly appreciated.

Andy.

aED

Since you have said that you are using a custom theme you might want to compare your default and custom theme language templates.

Sometimes mods do not add those strings to modifications.english.php so you need to add them manually or check the install to other themes when installing.

AndySV1K

Thanks for your reply aED.

are you saying i should look at the files mentioned in the mod's instructions to see if they have been altered?

i will do this and check, if not i guess the easiest thing would be to manually cut and paste the mods into the relevant PHP files then re-upload?

Andy.

AndySV1K

just an update on this,

i have gone back to the default theme and i still cant get any packages to work.

they seem to install ok but just dont work or show any signs of being installed other than they appear on the installed packages list. no menus or added features though.

Andy.

N3RVE

Perhaps, code insertion has no effect, the changes aren't made? Can you confirm by opening a file one of the modules modify to see if anything gets modified?

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

AndySV1K

hmm, ive just downloaded to random files to check...

index.php
and
sources/admin.php

neither appear to have had any changes made to them so i think you are right, it doesnt seem to be modifying any files.

so what now?  :D

Andy.

N3RVE

You're up for manual modification, too bad as the package manager would have made things so easy.
How do I modify files?

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

bullbreedluverz

this is a problem ive had and a few others by some of the posts ive seen,  that the package manager wont install mods after upgrade, everything seems fine and it says its installed then when you check they arent and when click to uninstall it shows every file has failed test and no modifications have been made to any files-  ive had 3 attempts at upgrading a clone of my site and each time it has happened

AndySV1K

yeah the thing about the fails when uninstalling also happens, although when you just say continue it does seem to install ok.

i guess i'll have to try manually altering the code, i'll read your link n3rve, thank you.

one question though,  the instructions for manual code insertion refer to themes/default/** i assume thats the core theme.  do i just ignore that and do the code alteration to the same filename but in the theme thats in use.

The reason i ask is that the theme im using doesnt have all the same files as the default theme.

its a little confusing!  :)

Andy.

bullbreedluverz

in simple terms custom themes only use partial files of the default theme  e.g. index.template, board.template, display.template so if you install a mod to a custom theme and in its manual install instructions it says a file needs editing that is contained in your custom theme then you will have edit them & if it says there needs to be edits made on files not contained in your custom theme then thos need to be edited in default theme

custom themes basically use most of the files from the default and a few of its own files to create the overall appearance of the custom theme


AndySV1K

that makes perfect sense.

thanks for the help people,  off to open filezilla and dreamweaver and go make my fingers sore!

Andy.

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

bullbreedluverz

#12
OK ive come to find a fix for this issue but it is a long 1......

I exported a partial database from my live site;

`smf_boards`
`smf_board_permissions`
`smf_categories`
`smf_collapsed_categories`
`smf_membergroups`
`smf_members`
`smf_permissions`
`smf_personal_messages`
`smf_pm_recipients`
`smf_settings`
`smf_topics`


then created a clean install of 1.1.8
dumped the same tables as i exported above from its database
imported the above tables exported from my live site
upgraded from 1.1.8 to 2 RC1
all works fine now, packages install

bit of a pain in the arse especially as this was the 5th attempt to upgrade and ive had to go such a long way about it.......

oh and this was just a test and not good enuff for my live site as database was 3 hours old when i uploaded it

AndySV1K

do you think that fix would be reliable enough to warrant doing it?

the forum i have the issue with is pretty new so very few members or posts on it, but it is a live site.

your description above seems pretty straightforward to follow, so i think its perfectly do-able (even for someone as hamfisted as me!)

so, is it a go-er then?   :D

Andy.

bullbreedluverz

#14
well its the only way ive found to do it and its working, ive been waiting a few days for other people to come up with an answer

heres my live (clone) site with a few mods added http://www.bullbreedluverz.com/smf/index.php

the different colours of members names on the board is a mod installed through package manager and theres a couple more lurking about

genix

Hey, guys, I have the same prolblem with mods!
But to install full forum second time - there is no way! =) It should be easier way, we need to fing it! =) I will try for a couple days maybe and tell you results)
- All that don't kill me can only make me stronger - F.Nicshe, Karandash, Kanye West

genix

Hey, guys, I worked hard two days all day long, but I hope I found a solution for my problem =)

I will make a mod of it, and give you, ok? =) HAHA, I'm kidding - you couldn't install mods at all))))

So, here is my description:

At first, the problem with error message about CHMOD:

Find in Sources/Package.php
if (!mktree($boarddir . '/Packages/temp', 0777))
{
deltree($boarddir . '/Packages/temp', false);
if (!mktree($boarddir . '/Packages/temp', 0777))
{
deltree($boarddir . '/Packages/temp', false);
create_chmod_control(array($boarddir . '/Packages/temp/delme.tmp'), array('destination_url' => $scripturl . '?action=admin;area=packages;sa=' . $_REQUEST['sa'] . ';package=' . $_REQUEST['package'], 'crash_on_error' => true));

deltree($boarddir . '/Packages/temp', false);
if (!mktree($boarddir . '/Packages/temp', 0777))
fatal_lang_error('package_cant_download', false);
}
}


Replace it with
mkdir($boarddir . '/Packages/temp', 0777);
/*
if (!mktree($boarddir . '/Packages/temp', 0777))
{
deltree($boarddir . '/Packages/temp', false);
if (!mktree($boarddir . '/Packages/temp', 0777))
{
deltree($boarddir . '/Packages/temp', false);
create_chmod_control(array($boarddir . '/Packages/temp/delme.tmp'), array('destination_url' => $scripturl . '?action=admin;area=packages;sa=' . $_REQUEST['sa'] . ';package=' . $_REQUEST['package'], 'crash_on_error' => true));

deltree($boarddir . '/Packages/temp', false);
if (!mktree($boarddir . '/Packages/temp', 0777))
fatal_lang_error('package_cant_download', false);
}
}
*/

I don't know why they do so hard manipulation with this directory, maybe I miss smth, but for me it works.


Next, if packages installed OK but nothing changed, try this manipulations:
Find in Sources/Subs-Package.php
if ($search['position'] === 'before')
{
$actual_operation['searches'][$i]['preg_search'] = '(' . $actual_operation['searches'][$i]['preg_search'] . ')';
$actual_operation['searches'][$i]['preg_replace'] = '$1' . $actual_operation['searches'][$i]['preg_replace'];
}
// After, after what?
elseif ($search['position'] === 'after')
{
$actual_operation['searches'][$i]['preg_search'] = '(' . $actual_operation['searches'][$i]['preg_search'] . ')';
$actual_operation['searches'][$i]['preg_replace'] .= '$1';
}

Replace with
if ($search['position'] === 'before')
{
$actual_operation['searches'][$i]['preg_search'] = '(' . $actual_operation['searches'][$i]['preg_search'] . ')';
$actual_operation['searches'][$i]['preg_replace'] = '\\1' . $actual_operation['searches'][$i]['preg_replace'];
}
// After, after what?
elseif ($search['position'] === 'after')
{
$actual_operation['searches'][$i]['preg_search'] = '(' . $actual_operation['searches'][$i]['preg_search'] . ')';
$actual_operation['searches'][$i]['preg_replace'] .= '\\1';
}


And one more:
Find
// Finally, we're doing some replacements.
$working_data = preg_replace('~' . $actual_operation['searches'][$i]['preg_search'] . '~s', $actual_operation['searches'][$i]['preg_replace'], $working_data);

And replace with
$working_data = ereg_replace($actual_operation['searches'][$i]['preg_search'], $actual_operation['searches'][$i]['preg_replace'], $working_data);


I think that's it... Maybe I missed something because I did so many edition till I was trying and now I don't remember maybe there was one more))

And one more thing - make files wich need to be changed permissions 666 =)

I even don't know maybe it will not work with many file operations in mod, but with the simple mod it was ok =)
- All that don't kill me can only make me stronger - F.Nicshe, Karandash, Kanye West

JimM

@AndySV1K - Did any of the above suggestions solve your issue? 
Jim "JimM" Moore
Former Support Specialist

Advertisement: