• Welcome to Simple Machines Community Forum. Please login or sign up.
September 18, 2021, 09:28:13 PM

News:

SMF 2.0.18 has been released! Please update. Read more.


SMFPacks.com Shoutbox, Chat

Started by Nibogo, October 19, 2008, 11:41:06 AM

Previous topic - Next topic

Finn_958

Hi,
I would like to buy the pro version but the free version does not work. I does not shows messages long than about 62 characters. I changed permissions with no results:
https://www.coscienzamaschile.com/index.php
Thanks

Steve

I'm not understanding you. Are you wanting to buy the pro version but are afraid to because you're having trouble with the free version?

The pro version (which I have) installs easily and just works. It does all it says it can do. :)
Please do not PM me for support.

Finn_958

Indeed. I would buy the pro version if the free one worked

aegersz

After moving to PHP 7.1 on SMF 2.0.18, this is a bug fix in ./Sources/Subs-Shoutbox.php for:

2: strtolower() expects parameter 1 to be string, array given
/var/www/html/Sources/Subs-Shoutbox.php - Line: 33


find:
// Verify
                if (!in_array(strtolower($action), $actions) && !in_array('everywhere', $actions))
                        return $action;


add before:
                if (is_array($action)) return $action;

The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

efk

July 01, 2021, 05:20:30 AM #2844 Last Edit: July 01, 2021, 01:53:33 PM by Steve
8: Trying to access array offset on value of type null
Apply Filter: Only show the errors from this file
File: /home/xxxx/public_html/Sources/Subs-Shoutbox.php
Line: 93

92: // we need this be faster...
==>93: if (!empty($_SESSION['shoutbox_lastget']) && $_SESSION['shoutbox_lastget'] > $shoutbox['banUpadte'])
94: return false;


Should it be instead of banUpadte - banUpdate ? I just saw it and that might be the reason for error?

Dzonny

You should probably write in mods support topic regards that, as it's not core SMF feature. :)
But yeah, looks like a typo.

Steve

Please do not PM me for support.

shadav

not sure which mod this is from but  :laugh: it looks like something I would do  :P
dang dyslexia


Steve

Quote from: Shambles on July 01, 2021, 01:05:15 PMThis topic title could do with some work...  ::)

Merged with mod support topic.
Please do not PM me for support.

efk

Quote from: efk on July 01, 2021, 05:20:30 AM
8: Trying to access array offset on value of type null
Apply Filter: Only show the errors from this file
File: /home/xxxx/public_html/Sources/Subs-Shoutbox.php
Line: 93

92: // we need this be faster...
==>93: if (!empty($_SESSION['shoutbox_lastget']) && $_SESSION['shoutbox_lastget'] > $shoutbox['banUpadte'])
94: return false;


Should it be instead of banUpadte - banUpdate ? I just saw it and that might be the reason for error?
Ok update is fixed but now there are 2 errors, previous above and new one bellow:


8: Undefined index: banUpdate
File: /home/xxxx/public_html/Sources/Subs-Shoutbox.php
Line: 93

Shambles

I don't think it's as easy as just changing "banUpadte" to "banUpdate".

Look inside Shoutbox.php:


// last ban update
$smcFunc['db_query']('', "
UPDATE {db_prefix}shoutbox_settings
SET value = {int:time}
WHERE variable = 'banUpadte'
LIMIT 1",
array(
'time' => time()
)


// last ban update
$smcFunc['db_query']('', "
UPDATE {db_prefix}shoutbox_settings
SET value = '" . time() . "'
WHERE variable = 'banUpadte'
LIMIT 1");


Kindred

lol... in other words, even though it was spelled incorrectly for grammar -- it was consistently used in that spelling as a variable.

Change it back -- otherwise, you'll have to change the DATABASE as well as all instances where the variable is called.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shambles

^ yep, what he said.

I believe the check should be made using "isset" rather than "!empty", for the $_SESSION check, as "isset" checks against null values:

// we need this be faster...
if (isset($_SESSION['shoutbox_lastget']) && $_SESSION['shoutbox_lastget'] > $shoutbox['banUpadte'])
return false;



Advertisement: