Skip to main content
Recent Posts
2
Addons / Re: [addon] Flarum Style
Last post by augras -
Hi,
I just try it and i like : thank you.
Is there a simple way to translate the addon ?
Philippe
3
Addons / Re: Download System Lite
Last post by vbgamer45 -
3.0.4
+Added check for upload url to be sure it is http:// or https://
!Permission fixes stats page and search results when using category level permissions
!Fixes for remote filesize function more checks added. Requires allow_url_fopen to be set
4
General ElkArte discussions / Re: ElkArte 1.1.7 Patch Testing
Last post by Spuds -
Thanks @ahrasis I've seen some of those errors during the uninstall as well but they only showed up right after the uninstall of 1.1.7 and all seem related to php 7.4 compatibility (that 1.1.7 fixes)

I'm not sure what I can do about those, it almost seems like the error display is set to allow them to display during uninstall and then goes back to normal don't display warnings. 

Are you also only seeming these on the first uninstall screen from 1.1.7 -> 1.1.6 ?  and then no more (well other than the server error log)

Maybe @emanuele has an idea.
5
General ElkArte discussions / Re: ElkArte 1.1.7 Patch Testing
Last post by ahrasis -
Various errors while uninstalling the old package and reinstalling new one. I was using php7.4, custom theme.

Code: [Select]
Type of error: General
Unknown Error: Invalid characters passed for attempted conversion, these have been ignored
index.php?action=admin;area=packages
File: /var/www/clients/client2/web1/web/sources/subs/UnTgz.class.php
Line: 390


Type of error: General
Notice: Trying to access array offset on value of type null
index.php?action=admin;area=packages;sa=showoperations;operation_key=652;package=ElkArte_117_patch.zip;filename=modifications.xml
File: /var/www/clients/client2/web1/web/sources/subs/BBC/BBCParser.php
Line: 285


Type of error: General
Notice: Trying to access array offset on value of type null
index.php?action=admin;area=packages;sa=showoperations;operation_key=651;package=ElkArte_117_patch.zip;filename=modifications.xml
File: /var/www/clients/client2/web1/web/sources/subs/BBC/BBCParser.php
Line: 285


Type of error: General
Notice: Trying to access array offset on value of type null
index.php?action=admin;area=packages;sa=showoperations;operation_key=640;package=ElkArte_117_patch.zip;filename=modifications.xml
File: /var/www/clients/client2/web1/web/sources/subs/BBC/BBCParser.php
Line: 285


Type of error: General
Notice: Trying to access array offset on value of type null
index.php?action=admin;area=packages;sa=showoperations;operation_key=631;package=ElkArte_117_patch.zip;filename=modifications.xml
File: /var/www/clients/client2/web1/web/sources/subs/BBC/BBCParser.php
Line: 285


Type of error: General
Notice: Trying to access array offset on value of type null
index.php?action=admin;area=packages;sa=showoperations;operation_key=630;package=ElkArte_117_patch.zip;filename=modifications.xml
File: /var/www/clients/client2/web1/web/sources/subs/BBC/BBCParser.php
Line: 285


Type of error: General
Notice: Trying to access array offset on value of type null
index.php?action=admin;area=packages;sa=showoperations;operation_key=628;package=ElkArte_117_patch.zip;filename=modifications.xml
File: /var/www/clients/client2/web1/web/sources/subs/BBC/BBCParser.php
Line: 285


Type of error: General
Unknown Error: Invalid characters passed for attempted conversion, these have been ignored
index.php?action=admin;area=packages;sa=install;package=ElkArte_117_patch.zip
File: /var/www/clients/client2/web1/web/sources/subs/Package.subs.php
Line: 2929


Type of error: General
Unknown Error: Invalid characters passed for attempted conversion, these have been ignored
index.php?action=admin;area=packageservers;sa=upload2
File: /var/www/clients/client2/web1/web/sources/subs/UnTgz.class.php
Line: 390


Type of error: General
Unknown Error: Invalid characters passed for attempted conversion, these have been ignored
index.php?action=admin;area=packages;sa=browse
File: /var/www/clients/client2/web1/web/sources/subs/UnTgz.class.php
Line: 390


Type of error: General
Unknown Error: Invalid characters passed for attempted conversion, these have been ignored
index.php?action=admin;area=packages
File: /var/www/clients/client2/web1/web/sources/subs/UnTgz.class.php
Line: 390


Guest
Type of error: General
Unknown Error: Array and string offset access syntax with curly braces is deprecated
index.php?action=login
File: /var/www/clients/client2/web1/web/sources/subs/Compat.subs.php
Line: 36


Guest
Type of error: General
Unknown Error: Array and string offset access syntax with curly braces is deprecated
index.php?action=login
File: /var/www/clients/client2/web1/web/sources/subs/Package.subs.php
Line: 2420


Type of error: General
Unknown Error: Invalid characters passed for attempted conversion, these have been ignored
index.php?action=admin;area=packages
File: /var/www/clients/client2/web1/web/sources/subs/UnTgz.class.php
Line: 390

Code related to line 390 /sources/subs/UnTgz.class.php
Code: [Select]
	private function _read_current_header()
{
$octdec = array('mode', 'uid', 'gid', 'size', 'mtime', 'checksum', 'type');

// Each file object is preceded by a 512-byte header record on 512 boundaries
$this->_header = substr($this->data, $this->_offset << 9, 512);

// Unpack
$this->_current = unpack('a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155path', $this->_header);

// Clean the header fields, convert octal to decimal as needed
foreach ($this->_current as $key => $value)
{
if (in_array($key, $octdec))
$this->_current[$key] = octdec(trim($value));
else
$this->_current[$key] = trim($value);
}
}

Code related to line 285 /sources/subs/BBC/BBCParser.php
Code: [Select]
			// The only special case is 'html', which doesn't need to close things.
if ($tag[Codes::ATTR_BLOCK_LEVEL] && $tag[Codes::ATTR_TAG] !== 'html' && empty($this->inside_tag[Codes::ATTR_BLOCK_LEVEL]))
{
$this->closeNonBlockLevel();
}

Code related to line 2420 /sources/subs/Package.subs.php
Code: [Select]
function package_crypt($pass)
{
$n = strlen($pass);

$salt = session_id();
while (strlen($salt) < $n)
$salt .= session_id();

for ($i = 0; $i < $n; $i++)
$pass[$i] = chr(ord($pass[$i]) ^ (ord($salt[$i]) - 32));

return $pass;
}


Code related to line 2929 /sources/subs/Package.subs.php
Code: [Select]
function elk_chmod($file, $mode = null)
{
$result = false;

if (!isset($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 == decoct(octdec("$mode")))
$result = @chmod($file, intval($mode, 8));

return $result;
}


Code related to line 36 /sources/subs/Compat.subs.php
Code: [Select]
function sha1_smf($str)
{
// If we have mhash loaded in, use it instead!
if (function_exists('mhash') && defined('MHASH_SHA1'))
return bin2hex(mhash(MHASH_SHA1, $str));

$nblk = (strlen($str) + 8 >> 6) + 1;
$blks = array_pad(array(), $nblk * 16, 0);

$str_len = strlen($str);
for ($i = 0; $i < $str_len; $i++)
$blks[$i >> 2] |= ord($str[$i]) << (24 - ($i % 4) * 8);

$blks[$i >> 2] |= 0x80 << (24 - ($i % 4) * 8);

return sha1_core($blks, $str_len * 8);
}
6
Addons / Re: Simple Audio Video Embedder - 90+ Sites
Last post by vbgamer45 -
Major update!

6.0
+Added a setting to show the original link after the embed is added.
+Added a setting to set the maximum number of emdeds to display per page load.
+Redid the entire replacement function with a callback. Allowed more control for the new setting features added and provides a better way to count number of embeds loaded.

+Added support for Reddit posts
+Added support for twitch clips thanks to  tjbalon
+Added support for github gists thanks to  tjbalon
+Updated spotify entry (now supports artist, track, playlists, and albums) tjbalon
+Added support for codepen.io
+Added back support for ustream.tv
+Added support for Gfycat