Forum Activity for @michael

michael
@michael
06/19/25 09:31:56PM
7,816 posts

Unrecognized error in timeline and profile


Using Jamroom

Right, it looks like something like this:
* the user created a forum topic,
* then commented on the forum topic
* then deleted the forum topic

and we're looking at the activity stream for that user which if they were not deleted would show something like
user
* created a forum topic "what chocolate do you like"
* added a reply to that topic "I like gilico kobe baked chocolate"

and now that the base is deleted the the activity timeline entry cant be shown properly.

something like that. Needs a check around it added into the template to check that the variable is a number greater than zero before trying to retrieve the info. or just delete those activity entries.
michael
@michael
06/18/25 03:04:59PM
7,816 posts

Unrecognized error in timeline and profile


Using Jamroom

Need more info to figure out the issue.

Most likely its some passed in parameter that's breaking call, like a username with an emoji in it or something else weird.

Need to see the page that when opened causes the error to occur and the full error with the ? parameters if necessary.

Send it to support at jamroom dot net if you don't want to show it publicly.

--edit--
The error itself is saying: "you asked me to get an item out of the datastore but didn't tell me the number of the item you wanted"
updated by @michael: 06/18/25 03:05:49PM
michael
@michael
06/13/25 06:12:24PM
7,816 posts

smarty_function_jrTracker_status_select no longer processes the classes parameter


Using Jamroom

here's the full function in case you don't want to wait for it to pass testing:
function smarty_function_jrTracker_status_select($params, $smarty)
{ if (!isset($params['item_id']) || !jrCore_checktype($params['item_id'], 'number_nz')) { return jrCore_smarty_invalid_error('item_id'); } if (empty($params['status'])) { return jrCore_smarty_missing_error('status'); } if (empty($params['type'])) { return jrCore_smarty_missing_error('type'); } $stt = $params['status']; $_as = jrTracker_get_tracker_statuses(); if (!isset($_as[$stt])) { return jrCore_smarty_invalid_error('item_id'); } $cls = ''; if (!empty($params['class'])) { $cls = $params['class']; } $iid = (int) $params['item_id']; $out = '<select id="tracker-status-sel" class="status_section status_section_' . str_replace(' ', '_', $stt) . ' ' . $cls . '" onchange="var v=$(this).val(); jrTracker_set_status(' . $iid . ', v)">'; $out .= '<option value="' . $stt . '" selected="selected">' . $_as[$stt] . '</option>'; $out .= '<optgroup label="Change Status To:">'; foreach ($_as as $k => $v) { if ($k == $stt) { continue; } // If our tracker is not a FEATURE REQUEST turn off "complete" if ($params['type'] != 'feature' && $k == 'completed') { continue; } $out .= "\n<option value=\"{$k}\">&raquo; {$v}</option>"; } $out .= '</optgroup></select>'; if (!empty($params['assign'])) { /** @noinspection PhpUndefinedMethodInspection */ $smarty->assign($params['assign'], $out); return ''; } return $out; }
michael
@michael
06/13/25 01:05:42AM
7,816 posts

smarty_function_jrTracker_status_select no longer processes the classes parameter


Using Jamroom

I see it. Back in 2022 the $class was added in. I'll get it added back in.
michael
@michael
06/13/25 01:03:09AM
7,816 posts

smarty_function_jrTracker_status_select no longer processes the classes parameter


Using Jamroom

Got some setup steps to look at, I'll try to debug.
michael
@michael
06/13/25 01:01:35AM
7,816 posts

smarty_function_jrTracker_status_select no longer processes the classes parameter


Using Jamroom

What are you seeing, it should do.

the smarty function is defined as:
function smarty_function_jrTracker_status_select($params, $smarty)
then its called as:
{jrTracker_status_select item_id=$item._item_id status=$item.tracker_status type=$item.tracker_type class="form_select status_section_`$class_status`"}

All the ???= should be in the $params as $params['class'] or $params['whatever']
michael
@michael
05/23/25 04:30:09PM
7,816 posts

Broken images and failed system check


Installation and Configuration

Try disabling modules that show up in the integrity check where it gets stuck, then re-run the integrity check. That will allow you to isolate where the issue is.

Try checking the server error logs for any error messages.

To fix the issue the first step is to locate the issue.
michael
@michael
05/19/25 01:09:10AM
7,816 posts

Broken images and failed system check


Installation and Configuration

My guess: Have you changed any code in the default modules? What happens when modules update is the old version gets removed and the new version gets put in place.

So for example, jrAudio.

Initially it is found at:
/modules/jrAudio

Then when you update it it gets moved to
/modules/jrAudio-1.0.0
and the new version gets put at
/modules/jrAudio-1.0.1

and
/modules/jrAudio turns into a symlink pointing to the newest version.

So if you've changed any module files to make your system work, you'll find those changes in the old module directory.

The correct/intended way to adjust a module's output is via the. "events and listeners" system that uses hooks in your own module to tap into data from other modules.

Since you have a module called jrImageOptim which 'jr' seems like it was made by 'the jamroom network' team but its not our module makes me guess that's a custom module (that really should be either your prefix spImageOpim or just 'xx' xxImageOptim). And maybe you've made some alterations to core modules to make that work possibly.
michael
@michael
05/15/25 01:11:39AM
7,816 posts

Broken images and failed system check


Installation and Configuration

jrImageOptim this looks like a custom module that's opening a queue but not saving or clearing properly.

You should see the queue at
ACP -> DASHBOARD -> QUEUE VIEWER

Find the offending queue and empty it.
empt.jpg empt.jpg - 260KB
1