Skip to main content
MPAAP: Modify Posts At Anytime Permissions Started by ahrasis · · Read 17871 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Re: MPAAP: Modify Posts At Anytime Permissions

Reply #30

Hi @ahrasis ,
i already use your addon but today i tried to install it on my test forum and i can't download it in the packages manager : i get an error message "Although the package has been uploaded to the server, it appears to be empty...".
I don't remember i need to install the addon by hand. I'm wrong ?
To complete your addon the very small translation file to french.

Re: MPAAP: Modify Posts At Anytime Permissions

Reply #31

I am not sure why because I just tried uploading and installing it via package manager and that went well. Anyway, thank you for the french translation, I upgraded to v103 adding it in and uploaded to the first post as usual.

Re: MPAAP: Modify Posts At Anytime Permissions

Reply #32

You are welcome. It's a very very small tranlation file.
It's not your addon. I made some tests and i have this problem with other packages : some packages can be downloaded and some not.
I open a specific post.

Re: MPAAP: Modify Posts At Anytime Permissions

Reply #33

Hi @ahrasis,
I made a new install today ans i got an error :

Unknown Error: Invalid characters passed for attempted conversion, these have been ignored
https://augras.eu/elkatest/index.php?action=admin;area=packages;sa=install;package=mpaap.v103.sahabat.ahrasis.com.zip
Fichier: /home/augras/public_html/augras.eu/elkatest/sources/subs/Package.subs.php
Ligne: 2932

Everything seems to work.
Philippe

Re: MPAAP: Modify Posts At Anytime Permissions

Reply #34

That is more related to ElkArte Package.subs.php rather than this package. What is your ElkArte version? Or what that line and its 10 lines above and below says?

Re: MPAAP: Modify Posts At Anytime Permissions

Reply #35

Hi @ahrasis ,
nice to see you back.
I'm with Elkarte 1.1.8.
It's at the end of the files :
Code: [Select]
/**
 * Simple wrapper around chmod
 *
 * - Checks proper value for mode is supplied
 * - Consolidates chmod error suppression to single function
 *
 * @param string $file
 * @param string|int|null $mode
 *
 * @return bool
 */
function elk_chmod($file, $mode = null)
{
$result = false;

$mode = trim($mode);
if (empty($mode) || !is_numeric($mode))
{
if (is_dir($file))
{
$mode = 0755;
}
else
{
$mode = 0664;
}
}

// Make sure we have a form of 0777 or '777' or '0777' so its safe for intval '8'
if (($mode % 10) >= 8)
$mode = decoct($mode);
line 2932 if ($mode == decoct(octdec($mode)))
$result = @chmod($file, intval($mode, 8));

return $result;
}


I made the test today, but on the same elkarte when i got the error the first time, and i can't reproduce.

 

Re: MPAAP: Modify Posts At Anytime Permissions

Reply #36

I know about reported issues on that 'line' ... but I thought those had been addressed.