Server Layout Plugin for unRAID v6


Recommended Posts

Getting this on the 6.4 RC8 release.

Warning: Illegal string offset 'PK1334PEKDAGZS' in /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php on line 187

Fatal error: Uncaught Error: Cannot use string offset as an array in /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php:187 Stack trace: #0 /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php(86): Get_JSON_Config_File() #1 /usr/local/emhttp/plugins/serverlayout/php/serverlayout_layout.php(2): require_once('/usr/local/emht...') #2 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(378) : eval()'d code(1): include('/usr/local/emht...') #3 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(378): eval() #4 /usr/local/emhttp/plugins/dynamix/template.php(62): require_once('/usr/local/emht...') #5 {main} thrown in /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php on line 187

Not sure if that's a 6.4 beta issue, or something else, but thought I would mention it in case it's a 6.4 related issue.

Link to comment
  • 2 weeks later...
  • 1 month later...
  • 1 month later...

I'm getting the same stream of errors on the layout page as mentioned previously..

 

(starts with Warning: array_key_exists() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php on line 126 Warning: array_key_exists() expects parameter 2 to be array,...)

 

I'm running 6.4.0_rc16b and have unassigned devices installed.  Has a source been found for this issue?

 

The data tab also contains errors (can list if required), and Chrome's console has the following errors...

 

serverlayout:1932 Uncaught SyntaxError: Unexpected token <
serverlayout:2416 Uncaught ReferenceError: StartUp is not defined at serverlayout:2416

I'm running the latest version of the plugin in from CA.

Link to comment
13 hours ago, itimpi said:

I have a feeling this plugin is going to need updating to make it compatible with the latest 6.4 release.

I've tagged the app as being incompatible with 6.4 since this issue has existed and been reported since July.  I've issued a PR to @theone with the fix.  But, in the meantime you can add this either to your go file or as a user script set to run at array start to fix the problem

 

sed -i 's/\"DISK_DATA\" => \"\"/\"DISK_DATA\" => array()/' /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php

 

Edited by Squid
  • Like 3
  • Upvote 4
Link to comment
4 hours ago, redeuxx said:

I have a 20 bay case. But in addition to those 20 bays, I have two 2.5" mounts that are placed elsewhere in the case. Is it possible to create a separate layout for these two mounts?

You use an empty row or column to create space between different parts of the layout.

Link to comment
  • 3 weeks later...

Just upgraded to unRAID 6.4 and now getting error when trying to access Server Layout.

 

Quote

Warning: Illegal string offset 'WD-WCC4M0484703' in /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php on line 187

Fatal error: Uncaught Error: Cannot use string offset as an array in /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php:187 Stack trace: #0 /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php(86): Get_JSON_Config_File() #1 /usr/local/emhttp/plugins/serverlayout/php/serverlayout_layout.php(2): require_once('/usr/local/emht...') #2 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(379) : eval()'d code(1): include('/usr/local/emht...') #3 /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(379): eval() #4 /usr/local/emhttp/plugins/dynamix/template.php(62): require_once('/usr/local/emht...') #5 {main} thrown in /usr/local/emhttp/plugins/serverlayout/php/serverlayout_constants.php on line 187

 

So am no longer able to access the layout at all.

 

Was working OK yesterday on 6.3.5. Any suggestions?

Edited by lewcass
Link to comment
  • 2 weeks later...
19 hours ago, CorneliousJD said:

Any update on getting this integrated into the actual plugin and updated in CA? Would like to avoid the patch provided as I know I'll forget that it's there and stumble on it in 6 months asking myself "what the heck is this..."

The apply the patch via the user scripts plugin so you can also have a description.  I've had the PR sitting there for @theone to approve since I posted the patch in December.

Link to comment
2 hours ago, michael123 said:

Hello

 

I have m.2 flash used as a cache drive, it is internal mounted to the motherboard via pci adapter

 

I see it listed together with other SATA devices

 

I think it might be better to show it separately, similar to the way unraid usb stick is pictured

 

On 12/29/2017 at 1:50 PM, trurl said:

You use an empty row or column to create space between different parts of the layout.

 

Not an ideal workaround, but it's what other people are doing.  I have my parity and cache disks inside the case (the caches on PCI mounts).

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.