Skip to main content
ElkArte 2.0 Beta 1 Issues Started by ScottJB · · Read 5 times 0 Members and 1 Guest are viewing this topic.

Re: ElkArte 2.0 Beta 1 Issues

Reply #1

Quote from: Burke Knight – Found something, @Spuds

Attachments > File Maintenance

An Error Has Occurred
Undefined array key "results"
Should be additional details in the admin error log as well ... including a backtrace option.  If you could add those details I'd appreciate that.

Re: ElkArte 2.0 Beta 1 Issues

Reply #2

As requested, @Spuds

Code: [Copy]
 Type of error: Undefined
 Warning: Undefined array key "results"
 /index.php?action=admin;area=manageattachments;sa=maintenance
 File: /sources/ElkArte/AdminController/ManageAttachments.php—Line:721 Backtrace


Warning: Undefined array key "results"
#0: {closure:ElkArte\Errors\ErrorHandler::__construct():53}()
Called from: /sources/ElkArte/AdminController/ManageAttachments.php line: 721
#1: action_maintenance()
Called from: /sources/ElkArte/Action.php line: 167
#2: dispatch()
Called from: /sources/ElkArte/AdminController/ManageAttachments.php line: 134
#3: action_index()
Called from: /sources/ElkArte/Action.php line: 167
#4: dispatch()
Called from: /sources/ElkArte/AdminController/Admin.php line: 98
#5: action_index()
Called from: /sources/ElkArte/SiteDispatcher.php line: 421
#6: dispatch()
Called from: /index.php line: 143
#7: elk_main()
Called from: /index.php line: 71

Re: ElkArte 2.0 Beta 1 Issues

Reply #3

Found another thing for people to look at.
Board visibility is set to Members only, you'll need to reset them by modifying the boards.

Found this out after updating a site and seeing guests could not see anything.... LOL

Re: ElkArte 2.0 Beta 1 Issues

Reply #4

Fixed the Undefined array key "results" just change line 721 from

Code: [Copy]
			$context['results'] = implode('<br />', $this->_req->session->results);

to

Code: [Copy]
			$context['results'] = implode('<br />', $_SESSION['results']);

Re: ElkArte 2.0 Beta 1 Issues

Reply #5

Quote from: "Burke Knight" – Board visibility is set to Members only, you'll need to reset them by modifying the boards.
Not sure why that happens .... have to ponder on that for a bit!

Re: ElkArte 2.0 Beta 1 Issues

Reply #6

@Spuds
That edit worked, thank you!

Why can't regular members like posts in this board?

Re: ElkArte 2.0 Beta 1 Issues

Reply #7

Quote from: "Burke Knight" – Why can't regular members like posts in this board?
Had to go look.  This board is using the built in reply only profile which does not have likes enabled.  I think technically it should allow likes as its a form of reply, so I'll update the installer to do that.

Looking at that a bit more, a fresh 2.0 would allow that, so that issue is a left over from 1.x ... I've updated the profile here so you should be allowed to like now.  I could "fix" that during an upgrade but changing permissions is not an expected behavior of an upgrade so it has to stay that way.
Last Edit: July 30, 2026, 09:41:34 am by Spuds

Re: ElkArte 2.0 Beta 1 Issues

Reply #8

@Spuds

Using 2.0 default Darktonian theme.
Could you tell me the edits I'll need to fix the top menu to the top of page and sticky it?
I know I did this on 1.x, but with all the changes done, I'd like fresh instructions.

Thank you, my friend.

Re: ElkArte 2.0 Beta 1 Issues

Reply #9

If I am right, just edit or add your css at the bottom of your custom_dark.css to overwrite default.

Re: ElkArte 2.0 Beta 1 Issues

Reply #10

Quote from: ahrasis – If I am right, just edit or add your css at the bottom of your custom_dark.css to overwrite default.
100% correct  :smiley:

The gold theme has that fixed menu feature ... to add it to the dark theme edit your custom_dark.css file.  It will be located in themes/default/css/_dark  In that file after the body {} section add (mostly taken from the custom_gold.css).

Code: [Copy]
/* ========================================
   NAVIGATION - FIXED POSITIONING
   ======================================== */

/* Menu nav sticky positioning */
#menu_nav.sticky {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 100;
border-top-color: var(--top_section_top_border);
border-bottom-color: var(--top_section_bottom_border);
background-image: linear-gradient(to bottom, var(--top_section), var(--top_section_compliment));
box-shadow: 0 1px 4px var(--opacity30), 0 1px 0 var(--top_section_bottom_border) inset;
}

That should provide what you want.

Re: ElkArte 2.0 Beta 1 Issues

Reply #11

@Spuds

Found a bug while trying to get to a board on my site:

Code: [Copy]
Type of error: Undefined
 Warning: Undefined array key "num_replies"
 /index.php?board=8
 File: /sources/ElkArte/TopicUtil.php—Line:62


Code: [Copy]
Warning: Undefined array key "num_replies"

Re: ElkArte 2.0 Beta 1 Issues

Reply #12

Quote from: "ScottJB" – Found a bug while trying to get to a board on my site:
This should be fixed with: https://github.com/elkarte/Elkarte/pull/3862/changes/981539ea6c5f24ed65fc11e41a2f30b7794c9bb1

which is nothing more than moving the } after the $request->free_result(); to instead be just before the $request = $db->fetchQuery('

Re: ElkArte 2.0 Beta 1 Issues

Reply #13

@Spuds

Couple things found:

1. When try to do select via checkbox and remove anything, it will not remove. It just refreshes the screen
In order to remove post, topic, draft, etc., you need to remove one at a time.


2. On mobile device, it seems trying to insert attachment into the post does not work. You can upload and post, but can't insert the item into the post itself.

Re: ElkArte 2.0 Beta 1 Issues

Reply #14

Quote from: "ScottJB" – When try to do select via checkbox and remove anything, it will not remove. It just refreshes the screen
In order to remove post, topic, draft, etc., you need to remove one at a time.
I see what that is .... at least for drafts.  Need to decide what I want to do about that one.
Quote from: "ScottJB" – On mobile device, it seems trying to insert attachment into the post does not work. You can upload and post, but can't insert the item into the post itself.
Have not checked that one yet, still stuck on the first one:laughing: