News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

install package

Started by Cottelletje, December 17, 2005, 11:52:35 AM

Previous topic - Next topic

Cottelletje

i made a mod for a avatar pack and zipped it than with easyphp i installed the package but when i want to do this i get this error

2: opendir(c:\program files\easyphp1-8\www\forum/Packages/temp/charming): failed to open dir: Invalid argument
File: c:\program files\easyphp1-8\www\forum\Sources\Subs-Package.php
Line: 949

what did i do wrong? :-[
|| Leonardo Dicaprio is the Hottest Man Alive Believe Me ||

Oldiesmann

SMF doesn't have anything in that particular function to automatically detect whether you're on a Windows server or not, so the slashes are wrong (it should be \Packages\temp\charming instead of /Packages/temp/charming).

Make the following changes to Subs-Package.php:

Find
$temp_path = $boarddir . '/Packages/temp' . (isset($context['base_path']) ? $context['base_path'] : '');

Replace
$temp_path = $boarddir . '\Packages\temp' . (isset($context['base_path']) ? $context['base_path'] : '');

Find
$this_action['source'] = $temp_path . '/' . $this_action['filename'];

Replace
$this_action['source'] = $temp_path . '\' . $this_action['filename'];

That should fix the problem for you.
Michael Eshom
Christian Metal Fans

Advertisement: